One of the important features of TestNG is parameterization. This feature allows user to pass parameter values to test methods as arguments. This is supported by using the
DataProvider annotations. There are mainly two ways through which we can provide parameter values to test-methods:
testngXML configuration file
If you need to pass some simple values such as String types to the test methods at runtime, you can use this approach of sending parameter values through TestNG XML configuration files. You have to use the
Parameters annotation for passing parameter values to the test method.
Let's write a simple example of passing parameters to test ...