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.