O'Reilly logo

Selenium Testing Tools Cookbook by Unmesh Gundecha

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 4. Data-driven Testing

In this chapter, we will cover:

  • Creating a data-driven test using JUnit
  • Creating a data-driven test using TestNG
  • Reading test data from a CSV file using JUnit
  • Reading test data from an Excel file using JUnit and Apache POI
  • Reading test data from a database using JUnit and JDBC
  • Creating a data-driven test in NUnit
  • Creating a data-driven test in MSTEST
  • Creating a data-driven test in Ruby using Roo
  • Creating a data-driven test in Python

Introduction

Testing can be very repetitive, not only because we must run the same test over and over again, but also because many of the tests are only slightly different. For example, we might want to run the same test with different test inputs or test conditions and verify that the actual output ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required