All about the Data Feature
At the top of your scenario you should see a place where it says "Data". Clicking on that will bring up our data tab.
You can test multiple data patterns in one scenario by using this function. You will first need to prepare a CSV that describes the pattern you want to execute.
"first name","last name","email","company name","size of company","error message" "makiko","makiko","firstname.lastname@example.org","Autify"," 1-10","This email address has too many recent signup requests" "makiko","satoh","","test"," 5,000+","Please input your email address" "satoh","satoh","email@example.com",""," 201-500","Please input your company name"
The value in the first line will be available as the variable name at each step of the [Scenario]. The character code of the file must by UTF-8.
One line is treated as one data pattern, and in the case of the above sample, three data patterns are given.
It cannot be combined with the value set on another line. If you want to execute with this pattern, please add the pattern as a new line.
Uploading your Data
Once you have created your CSV, you can upload it by clicking the "Upload (UTF-8)" button.
Below is an example of some mock data and how it will show up:
If you need to update this CSV you can do so by changing the data in your CSV and then hitting the "Update" button. You can also delete the CSV with the "Delete" button.
Using your Data in your Scenario
You can use your data anywhere in an input step. All you need to do is go to given value of that input step and select "data" from the dropdown.
Then you will need to select which column of data you would like to use for this step.
Note: If you have multiple rows of data in your CSV, it will enqueue the same number of tests as there are rows in your CSV. So in the example CSV at the beginning of this section, there would be 3 test enqueued, each with one row of data used in the test.
Next section: Step Groups and their types