- Print
- DarkLight
The Data Feature
The Data feature allows you to test multiple data sets in one scenario.
Create a CSV file
You will first need to prepare a CSV that has the data you want to execute against.
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 be UTF-8.
- One line is treated as one data set. In the case of the above sample, there are three data sets.
- Data cannot be combined across data sets in different lines. Please add the pattern as a new line.
Uploading your Data
Click [Options] at the top of your scenario, then select [Show Data Tab].
Move to the [Data] tab and click the [Upload (UTF-8)] button to upload the CSV file.
If the upload is successful, the values will be displayed.
Click the [Save] button.
If you need to update this CSV data, you can do so by changing the data in your CSV and then hitting the [Update] button. You can also delete the CSV by clicking 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.
Notes
- The number of test runs is determined by the number of data sets in the CSV. In the above example, the CSV has three data sets, so three tests will be executed.
- When you use data, whether the scenario is run in parallel or sequentially depends on how the test is executed. For more information, please see Scope of application of parallel or sequential execution.
- The data in the first row is used during Local Replay.