Data-Driven Testing in ContextQA

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.

Setting Up Data Sources

1. Navigate to the Test Development Section

  • Log in to your ContextQA account.

  • Click on the pencil icon in the sidebar to access the Test Development section.

2. Click on Test Data Profiles

  • From the dropdown menu, select 'Test Data Profiles'.

3. Click on Create

  • Click the 'Create' button to start a new test data profile.

4. Give a Name for Your Test Data Profile

  • Enter a descriptive name for your test data profile in the provided field.

5. Enter the Parameters

  • Define the parameters you will use in your test cases, such as EMAIL, PASSWORD, etc.

6. Click on Plus Icon to Add More Parameter Columns

  • Click the plus icon to add additional parameter columns as needed.

7. Enter the Required Values

  • Input the values for each parameter. For example, provide details for User_1, User_2, and User_3.

8. Click on Create

  • 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.


Configuring Test Cases for Data-Driven Scenarios

1. Navigate to the Test Development Section

  • Ensure you are logged in to your ContextQA account.

  • Click on the pencil icon in the sidebar to access the Test Development section.

2. Click on Test Cases

  • From the dropdown menu, select 'Test Cases'.

3. Click on the Dotted Icon

  • On the Test Cases page, click the dotted icon (usually a set of three dots) to add steps to your test case.

4. Select For Loop

  • Choose 'For Loop' from the options to iterate through your data.

5. Click on Test Data Profile Dropdown

  • In the For Loop settings, click on the Test Data Profile Dropdown.

  • Select the test data profile you created from the dropdown menu.

6. Set the Start and End Loop Parameters

  • Configure the start and end points for the data loop based on your test data profile.

7. Add Steps for Data-Driven Test

  • Add the necessary steps to your test case that will utilize the data points. For example:

Enter Username 
Enter Password
Click Login

8. Run the Test Case

  • Execute the test case by clicking 'Run'.

9. View the Results

  • 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.

Last updated