Data-Driven E2E

Data-driven testing lets you run the same test case with multiple sets of data, saving time and expanding your test coverage. In ContextQA, this feature is especially handy for scenarios like testing login functionality with different usernames and passwords without rewriting your test steps.

Let’s walk through how to set up and run a data-driven test for a sample login flow.

Go to the Data Profile section.

Click the Create button.

Image

Enter a title for your data profile. Set a name for each dataset, such as Data Set one through Data Set four.

Image
Image

Click the plus (+) button to add parameter key fields. Add fields like username and password.

Image
Image

Enter values for each dataset under the parameter fields.

Image

Click Create to save your data profile.

Image

Go back to your test case. Hover and select the For Loop option.

Image

Choose the data profile you just created.

Image

Set the loop start and end to cover the datasets you want to use (e.g., Data Set one to Data Set four). Click Create.

Image

Click the Reorder button to reorganize test steps.

Image

Drag all test steps under the for loop.

Image

Click Update to save order changes.

Edit parameterization in your test steps—replace static values with your parameter keys, like username and password, and update.

Image
Image

To run the test, click Run.

Image

Start the execution.

Image

ContextQA will execute the test once for each dataset, letting you see pass/fail results for each scenario.

To view the results, click View Detailed Report.

Image

Review all datasets and their execution status.

Data-driven testing in ContextQA streamlines repetitive work and helps you ensure your test cases behave correctly with multiple data inputs. Use this approach to increase your coverage and catch more issues—without redundant test writing.

Supporting Videoarrow-up-right

Last updated