Data-Driven Testing with TestNG

In this chapter, we will see how to create data-driven tests using TestNG and Selenium WebDriver. We will look at the following topics:

  • What is data-driven testing?
  • Using TestNG suite parameters to parameterize tests.
  • Using TestNG data providers for data-driven testing.
  • Using the CSV and Excel file formats for storing and reading test data.

Get Selenium WebDriver 3 Practical Guide - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.