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.
Enter a title for your data profile. Set a name for each dataset, such as Data Set one through Data Set four.
Click the plus (+) button to add parameter key fields. Add fields like username and password.
Enter values for each dataset under the parameter fields.
Click Create to save your data profile.
Go back to your test case. Hover and select the For Loop option.
Choose the data profile you just created.
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.
Click the Reorder button to reorganize test steps.
Drag all test steps under the for loop.
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.
To run the test, click Run.
Start the execution.
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.
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.
Last updated