- Print
- DarkLight
All about the Data Feature
You can test multiple data patterns in one scenario by using this function.
At the top of your scenario you should see a place where it says "Data". Clicking on that will bring up our data tab.
Procedure
You will first need to prepare a CSV that describes the pattern you want to execute.
FirstName,LastName,email,CompanyName,Position,CompanySize
John,Smith,test@autify.com,"Autify, Inc.",QA,1-15
Liam,Smith,test@test.com,"Test, Inc.",SET,"5,000+"
Olivia,Smith,test@burning.com,"Burning, Inc.",Engineer,201-500
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.