Skip to main content
Version: legacy

Data-driven testing with Katalon Studio

Data-driven testing is a software testing method that stores test data in table or spreadsheet format. Data-driven testing allows testers to input a single test script that can execute tests for all test data from a table and expect the test output in the same table. It is also called table-driven testing or parameterized testing.

Katalon Studio allows you to conduct data-driven testing (DDT) with internal and external data sources at both test case and test suite levels.

Download the data-driven testing sample project from our GitHub repository: Shopping cart sample.

You can configure variable binding to read test data values from internal or external data files such as Excel, CSV, Internal files, and Database. To learn more about managing test data, refer to this document: Manage test data.

Manage test data

You can configure variable binding to read test data values from internal or external data files such as Excel, CSV, Internal files, and Database. To learn more about managing test data, refer to this document: Manage test data.

Set parameter for your test script

You can pass variables to your test scripts by setting parameters in test cases, test objects, or their properties:

Supported data-driven testing methods

In a test case
Important:
  • You need an active Katalon Studio Enterprise license to execute data-driven testing at the test case level.

Katalon Studio supports data-driven testing at the test case level. To learn more about executing data-driven testing in a test case, you can refer to this document: Data-driven testing at the test case level.

In a test suite/test suite collection
Important:
  • You need an active Katalon Studio Enterprise license to perform data-binding with multiple external data sources.

Alternatively, you can also conduct data-driven testing with Groovy using the findTestData method. To learn about this method, you can refer to our API documentation: TestData. By default, Katalon Studio converts variables to strings to conduct data-binding. However, from Katalon Studio version 6.3.0 onwards, you can enable or disable this function and allow Katalon Studio to read variables as their data types. See: Enhanced variable binding.
In a dynamic test suite

Katalon Studio supports data-driven testing in a dynamic test suite. To learn more about executing data-driven testing in a dynamic test suite, you can refer to this document: Data-driven testing in a dynamic test suite.

Learn in practice with our free Katalon Academy course: Katalon Studio: How to Apply Data-Driven Testing.