TestNG is another widely used testing framework with Selenium WebDriver. It is very similar to JUnit. TestNG has rich features for testing, such as parameterization, parallel test execution, and so on.
TestNG provides the
DataProvider feature to create data-driven tests. In this recipe, we will use the
DataProvider feature to create a simple test. Creating data-driven tests in TestNG is fairly easy, when compared with JUnit.
Let's parameterize a TestNG ...