CSV File Import Overview
A Domain may be created from a CSV File by performing a CSV Import. When creating a Domain from a CSV File import, you can choose from three CSV File Generator Type options.
These options determine how data is generated for the Domain when running a Scenario, Scenario Chain, or Scenario Chain Set.
- Dynamic Data from CSV – Data in CSV is loaded dynamically when the Scenario is run. This option should be used for files with 16 or more lines of data.
- Static Data from CSV – Data in CSV is loaded statically when the Scenario is run. This option can only be used for files with less than 16 lines of data.
-
Synthetically Generated – A Generator will be assigned automatically to each Attribute within the created Domain. Data will be synthetically generated for each Domain Attribute.
Note: When uploading a CSV file that has more than 15 lines of data, you need to provide the File Name and File Path, so that it can be read dynamically by ListCSVGen generator while running a Scenario.
Dynamic Data from CSV
This Generator Type will reference the CSV file on your local machine. When you run your GenRocket Scenario, the GenRocket Runtime will pull data directly from your CSV file to generate your specified data.
This will require you to specify the CSV file name and path, so the GenRocket Runtime knows where to pull the data from. You can input your file path and name as a hardcoded string or an Organization Resource. We recommend using an Organization Resource to making sharing Scenarios easier.
When viewing the imported Domain’s Attributes, you will see that each one has a ListCSVGen assigned to it. In the list area, you will see up to 15 rows of example data being shown to give you a sense of what your generated data will look like. When your Scenario runs on your local machine, the GenRocket engine will look at the CSV file itself to generate the data from.
Static Data from CSV
This Generator type will add ListGen Generator to each of your Attributes. Each of these ListGens will have a list populated from the corresponding column in your CSV file.
Note: You can only choose this option if your CSV file has less than 16 rows of data.
When you look at your imported Domain’s Attributes, you will see each of the Attributes has a ListGen assigned to it. In the list area, you will see the data pulled directly from your CSV file.
Synthetically Generated
A Generator will be assigned automatically to each Attribute within the created Domain. Once the Domain is created, you will be able to preview the synthetic data for each Domain Attribute and make any needed Generator or Generator Parameter configuration changes.
Link:
https://genrocket.freshdesk.com/a/solutions/articles/19000000237
Search GenRocket Knowledge Base
Related Assets
How do I create a Domain from CSV?
A Domain may be created from a CSV file by performing a CSV Import.
Read More