O'Reilly logo

TestNg Beginner's Guide by Varun Menon

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Parameterization of tests

Earlier we saw a simple test configuration to run a simple test class. In this section we will learn about the Parameterization feature of TestNG. We have already covered Parameterization in our earlier chapters where tests are parameterized and the values to the parameters are passed through the testng XML configuration file. In this section we will see similar tests but we will learn about how to pass these parameter values to the tests through code. Let's write a sample program, which shows how to pass the parameter values to test through code.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required