Datasets
Run tests with different data using data-driven testing
Datasets let you run the same test case multiple times with different input data. Instead of duplicating test cases for each scenario, define a dataset with rows of data and QAbyAI executes the test once per row.
What Are Datasets?
A dataset is a table of values. Each column is a variable, and each row is a set of inputs for one test execution.
For example, a login test dataset might look like:
| username | password | expected_result |
|---|---|---|
| valid_user | correct_pass | dashboard |
| valid_user | wrong_pass | error message |
| empty | empty | validation error |
When you run the test with this dataset, it executes 3 times — once per row — using the column values as variables.
Creating a Dataset
- Navigate to Datasets in the sidebar
- Click New Dataset
- Define columns (each column becomes a variable name)
- Add rows with the data values for each test scenario
Using Datasets in Tests
Link a dataset to a test case to enable data-driven execution:
- Open a test case
- In the test settings, attach a dataset
- Reference dataset columns in your test steps using the
{{ COLUMN_NAME }}variable syntax
When the test runs, each row creates a separate test run. The column values replace the variable placeholders in your steps.
Viewing Dataset Results
On the Runs listing page, data-driven test runs show a dataset icon next to the test case name. Hover over it to see:
- The dataset name
- Which row was used for that specific run
- The row data values
This makes it easy to identify which data combination passed or failed without opening each run individually.
