Test Data
As a tester, one of the most labor-intensive stages is the interface testing execution phase.When dealing with a specific interface, there is often a large amount of test data that needs to be verified in batches. Manually changing request parameters one by one can be incredibly time-consuming and tedious. Utilizing parameterized batch processing data can greatly enhance efficiency
This guide provides a detailed explanation of how to achieve parameterized data import and verification using EchoAPI
1. Edit the interface and set the input parameters of the interface as a variable.
2. Prepare the test data file and add the values corresponding to the variables you want to test.
Each data file can contain multiple parameters. When the interface is executed, it will automatically read the corresponding values from the file where the variables are referenced.
3. Click on 'Test Data,' create new test data, and a 'Select File' upload option will appear.
For test data with the same name, you can upload different data files for different environments. This allows you to directly use the appropriate test data when switching between environments.
4. Click "Select File" and choose the txt/csv file you want to import.
5. You can preview the data in the uploaded file, and you can also modify or delete it.
6. Use the selected test data
Test data can be referenced in two ways:
Execution conditions: Select public test data that applies to the entire test case.
Partial controllers: Support selecting local test data, which applies to the current controller.