Data-Driven Testing in ContextQA
Last updated
Last updated
Data-driven testing allows you to run the same test case with different sets of input data, ensuring comprehensive coverage and validation. Follow these steps to set up data sources and configure test cases for data-driven scenarios in ContextQA.
Log in to your ContextQA account.
Click on the pencil icon in the sidebar to access the Test Development section.
From the dropdown menu, select 'Test Data Profiles'.
Click the 'Create' button to start a new test data profile.
Enter a descriptive name for your test data profile in the provided field.
Define the parameters you will use in your test cases, such as EMAIL, PASSWORD, etc.
Click the plus icon to add additional parameter columns as needed.
Input the values for each parameter. For example, provide details for User_1, User_2, and User_3.
Click the 'Create' button to save your test data profile.
Your test data profile is now created and ready for use in your data-driven test cases.
Ensure you are logged in to your ContextQA account.
Click on the pencil icon in the sidebar to access the Test Development section.
From the dropdown menu, select 'Test Cases'.
On the Test Cases page, click the dotted icon (usually a set of three dots) to add steps to your test case.
Choose 'For Loop' from the options to iterate through your data.
In the For Loop settings, click on the Test Data Profile Dropdown.
Select the test data profile you created from the dropdown menu.
Configure the start and end points for the data loop based on your test data profile.
Add the necessary steps to your test case that will utilize the data points. For example:
Execute the test case by clicking 'Run'.
Check the run history to view the results and ensure the test case has executed correctly with the provided data sets.
By following these steps, you can efficiently set up and manage data-driven testing scenarios in ContextQA, enabling comprehensive validation and improved test coverage.