Posts Tagged ‘DataProvider’

Using Selenium with Java and TestNG (2)

Using Selenium with Java and TestNG (2)

DataProvider in TestNG In this blog, I‘ll introduce how to use TestNG’s DataProvider to create a data driven test. DataProvider is a feature of TestNG which makes TestNG easier to create data driven tests than Junit. It’s pretty easy to use DataProvider. First, let’s add the DataProvider into a test annotation like this: