What are Parameterized tests in TestNG?

Imran Khan
Imran Khan

Posted On: Apr 06, 2020

 

Parameterized testing is an exciting feature with the TestNG which lets you run the same test over and over again with different values. The values to the tests are passed as parameters in two different ways such as with testng.xml, and data providers.

The first way uses the testng.xml configuration file to define simple parameters and reference them in the source files.

In a second way, you can use the Data provider annotation to pass complex parameters.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    TestNG Interview Questions

    What is TestNG?

    TestNG is a testing framework written in Java to cover a wide array of test categories like unit testing, functional testing, end-to-end test, integration test, etc. It is inspired from JUnit and NUni...

    TestNG Interview Questions

    List some features of TestNG Framework?

    Some of the important features of TestNG framework are,Support for Annotation. Support for data-driven-testing and parameters. Support for multiple instances in the same test class. Has a good ...

    TestNG Interview Questions

    What is Testng full form?

    The full form of TestNG is Test Next Generation....