Data driven testing
Run test against multiple scenarios
The data driven testing feature allows you to run a single test against multiple scenarios using different test data combinations. This is achieved by creating and utilizing test datasets.
Examples:
- Testing a login form with various usernames and passwords to verify authentication.
- Testing a search feature with diverse keywords to validate results and handling of invalid inputs.
- Testing a registration form with varying user inputs to ensure data validation and acceptance criteria.
- Testing a shopping cart with different product combinations and quantities to assess calculations and error handling.
- Testing a checkout process with diverse payment methods and shipping addresses to verify functionality and edge cases.
Creating Test Dataset
Upload a CSV file:
- Click on “Test Data” option from the desktop app or web page
- Click on “Upload a CSV file” button
- Select a CSV file containing your test dataset
- Ensure the file meets the following requirements:
- CSV format
- Consistent number of columns in each row
- Values not exceeding 1000 characters
- Maximum of 100 rows and 40 columns
- At least one row of data in addition to the header row
- Give the dataset a unique name
Validate Dataset
- Once the csv file is uploaded and dataset is created successfully, you can verify the data by looking at the data table
Optionally map a scenario name column:
- Once a test dataset is created successfully, you can map any column from the dataset as scenario column
- It is used in build report and other places as a label to represent the particular row
Using Test Dataset in Tests
You can import any column from dataset similar to how you import variables
- Within a test, navigate to the step details
- Click on “+” button and choose “Import a value from test data”
- Select/Link any dataset from the list. If you do not have any dataset created, you can create a new test dataset from here also by uploading a csv file
- Choose the column you want to use from all the columns in the test dataset that you chose in previous step
Note:
A test can only import variables from a single test dataset.
Test Execution with Test Dataset
Local execution:
- Local replay automatically uses the first row (excluding the header) from the dataset.
Cloud execution:
- Run the test against each row of data in the test dataset
- Build reports list each execution individually
- Multiple executions of a test are grouped in the report. Observe the highlighted text which represents the scenario column data earlier mapped corresponding to the test
- Each execution is counted towards test execution usage for billing purposes
We're sorry to hear that. Please share your feedback so we can do better
Contact our Support team for immediate help while we work on improving our docs.
We're continuously improving our docs. We'd love to know what you liked
We're sorry to hear that. Please share your feedback so we can do better
Contact our Support team for immediate help while we work on improving our docs.
We're continuously improving our docs. We'd love to know what you liked
Thank you for your valuable feedback!