Currently Browsing

Posts Tagged ‘ Data-driven ’

Creating a data-driven test with JUnit

We can create data-driven Selenium WebDriver tests using the JUnit parameterization feature. This can be done by using the JUnit parameterized class runner.
In this blog, we will create a simple JUnit test case to test Facebook registration. We will specify the test data within our JUnit test case class. We will use various JUnit annotations to create a data-driven test.

Here is a sample code how to create a data-driven test using JUnit.
Do the following steps: