Advanced

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:

usernamepasswordexpected_result
valid_usercorrect_passdashboard
valid_userwrong_passerror message
emptyemptyvalidation 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

  1. Navigate to Datasets in the sidebar
  2. Click New Dataset
  3. Define columns (each column becomes a variable name)
  4. 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:

  1. Open a test case
  2. In the test settings, attach a dataset
  3. 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.

Datasets | QAbyAI Documentation | QAbyAI Docs