Posts Tagged ‘TestNG’

Using Selenium with Java and TestNG (3)

Using Selenium with Java and TestNG (3)

EventFiringWebDriver & Listener In this blog, I‘ll introduce how we use EventFiringWebDriver and listener to create an auto-logging system for the test framework.   Why use EventFiringWebDriver and the event listener? If we use it, we can easily know what a web driver instance will do with a small listener, and what operation  it does […]

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: