ContextQA
  • What is ContextQA?
  • Getting Started with ContextQA
    • Setup
      • Sign-Up / Login
      • Installing ContextQA Extension
    • Test Automation
      • Automation with Recorder
      • Automation with AI Agent
    • Advance Testing
      • Cross Browser Testing
      • API Testing
      • Visual Testing
      • Performance Testing
      • Accessibility Testing
      • Mobile Testing
        • Automate Test
          • Integrating VCS
          • Integrating Device Farm
          • Linking A Repository
          • Scanning Repositories
          • Test Execution Process
          • Configuring Tests
        • Mobile Testing Report
    • Manage Test Cases
      • Test Suite
      • Test Plan
    • Quality Insights
    • Integration
      • Slack Integration
      • Jira Integration
  • Advance Features
    • Self-Healing Test Cases
    • Parallel Test Execution
    • Parameterization
    • Environment Management
    • Visual Regression Testing
    • Performance Testing
    • Accessibility Testing
    • Generate Code
    • Root Cause Analysis
  • ContextQA Extension
    • Installing ContextQA Extension
    • Logging in to ContextQA from the Extension
    • Creating a Test Case in the ContextQA Extension
    • Edit Test case in Extension
    • Editing Test Steps in the ContextQA Extension
    • Deleting a Test Case from the ContextQA Extension
    • How to Re-record Test Steps in ContextQA
  • ContextQA Portal
    • Sign-Up / Login
    • ContextQA Dashboard
    • Test Development Section
      • Create
        • Create Test Case
        • Create Manual Testcase
        • Create Test Case with the help of AI
        • Create Test Suite
        • Create Cross-Browser Test Plan
        • Creating an Element Manually
        • Creating a Step Group
        • Creating Test Data Profiles
        • Create Cross-Device Test Plan
        • Creating an Environment
      • Edit
        • Edit Test Case
        • Editing Test Steps
        • Edit Test Suite
        • Editing Test Data Profile
        • Editing Test Plan
        • Edit Step Group
        • Edit Element
        • Edit Environment
      • Delete
        • Deleting a Testcase
        • Delete Test Step
        • Delete Test Suite
        • Delete Step Group
        • Delete Elements
        • Delete Test Data Profile
        • Delete Test Plan
        • Delete Machine/Device within Test Plan
      • Call Function
        • Call/Use Step Group in Testcase
        • Call Test Data Profile in Testcase
        • Call Environment
      • Run
        • Run Testcase
        • Run Details section
        • Run History
        • Executed Test Steps with visual regression
      • Elements/Conditions/Parameters
        • Add If Condition
        • Add While Condition
        • Add Element in Test Steps
        • Add Parameter in Test Case
    • API Testing
    • Creating Workspace
    • Enable Jira & Link issues
    • Bug report
  • ContextQA Insights
  • FAQ/Others
    • Assertion
    • AI Result/ Quick Fix
    • How to add Network idle Template
    • How to upload file and how to use File upload Template
    • How to add Page Display Templates
    • How to add Test Step to Visit a Page
    • How to Switch Tabs using Template
    • How to add Wait Template
    • Test Case Screenshot
    • Timeout Template
    • Element Directory in Extension
    • Find Locater of an Element
    • TestSteps Reorder
    • Test Plan Scheduler
    • Restore Deleted Test Case
    • Search Test case
    • Clone Test Step
  • Integration
    • Slack Integration
    • Jira Integration
Powered by GitBook
On this page
  • Setting Up Data Sources
  • Configuring Test Cases for Data-Driven Scenarios
  1. Getting Started with ContextQA

Data-Driven Testing in ContextQA

Last updated 9 months ago

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.

30MB
Setting Up Data Sources and Configuring Test Cases for Data-Driven Scenarios.mp4