When should you download and run a Test Data Query?
- A Test Data Query should be downloaded and run when you want to generate synthetic test data and blend it with real data queried from a database or CSV file.
How do I generate test data with a Test Data Query?
- Select the a Project and Project Version in the Project Dashboard
- Download a Scenario, Scenario Chain, or Scenario Chain Set
- Download the Test Data Query
- Open a Command or Terminal Window
- Enter the Command Line and run the Test Data Query
Note: The assigned Receiver will determine where the blended data is output during this process. For example, if the DelimitedFileV2Receiver has been assigned, then a delimited file will be created with the blended data records.
Note: In the Self-Service Test Data Portal, you also have the ability to add a Test Data Query to a Test Data Case. When a Test Data Query has been added to a Test Data Case, you do not need to download and run the Test Data Query command line. This is because it will be run automatically when the Test Data Case is run in GenRocket Runtime.
In This Article
- Step 1: Download a Test Data Query
- Step 2: (Optional) Copy the Test Data Query Command
- Step 3: Download a Scenario, Scenario Chain, or Scenario Chain Set
- Step 4: Open a Command or Terminal Window
- Step 5: Enter/Paste the Command Line and Run the Test Data Query
- Sample Output
Step 1: Download a Test Data Query
Once the Test Data Query has been configured, you will need to download the Test Data Query to your local machine.
Step 2: (Optional) Copy the Test Data Query Command
The command for a Test Data Query can be manually entered or pasted into the Command/Terminal Window. To ensure accuracy, you can select a Test Data Query and copy the command at the bottom of the G-Queries Dashboard.
Step 3: Download a Scenario, Scenario Chain, or Scenario Chain Set
A Scenario, Scenario Chain, or Scenario Chain Set can be downloaded directly from the Project Dashboard by clicking on the Download (Cloud) icon in the appropriate pane. The image below shows this for a Scenario in the Scenarios Pane.
Note: To learn more about downloading Scenarios, please see: How to Download a Scenario.
Step 4: Open a Command or Terminal Window
Step 5: Enter/Paste the Command Line and Run the Test Data Query
This real data will be combined with the following synthetically generated test data in a delimited file (shown below):