Creating Data
  • 24 Sep 2024
  • 1 Minute to read
  • Contributors
  • Dark
    Light

Creating Data

  • Dark
    Light

Article summary

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

  1. Click [Options] at the top of your scenario, then select [Show Data Tab].
    en-show-data-tab

  2. Move to the [Data] tab and click the [Upload (UTF-8)] button to upload the CSV file.
    en-csv-upload

  3. If the upload is successful, the values will be displayed.
    en-csv-uploaded-data

  4. 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.

DataDropdown

Then, you will need to select which column of data you would like to use for this step.

Data dropdown 2

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.

Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.