Description
After a Test Data Case Suite has been configured with Test Data Categories and Test Data Cases, you can then download the entire suite and run individual Test Data Cases with a downloaded Scenario, Scenario Chain, or Scenario Chain Set.
Note: If you have added Test Data Rule Suites or Queries to a Test Data Case, then these will also be applied when the Test Data Case is run in a Command or Terminal Window.
When should you download a Test Data Case Suite?
- A Test Data Case Suite should be downloaded any time you want to generate test data using a Test Data Case within the suite.
How do you generate data with a Test Data Case?
- Download the Test Data Case Suite
- Download the Scenario, Scenario Chain, or Scenario Chain Set
- Open a Command or Terminal Window.
- Run the Test Data Case command line.
In This Article
This article shows how to do the following:
- Step 1: Download a Test Data Case Suite
- Step 2: Download the Scenario, Scenario Chain, or Scenario Chain Set
- Step 3: Generator and Receiver Libraries
- Step 4: (Optional) Copy the Command Line from the G-Case Dashboard
- Step 5: Run the Command Line in a Command or Terminal Window
Step 1: Download a Test Data Case Suite
The Test Data Case Suite must be downloaded to your local computer in order to run a Test Data Case with a downloaded Scenario, Scenario Chain, or Scenario Chain Set.
Click on the Download (Cloud) option located on the far right of the table in the Actions Column to download a Test Data Suite to your local computer.
Step 2: Download the Scenario, Scenario Chain, or Scenario Chain Set
Remember to download the Scenario, Scenario Chain, or Scenario Chain Set as well. Click on the Download (Cloud) icon within the Project Dashboard for a Scenario, Scenario Chain, or Scenario Chain Set to do so.
Note: Test Data Case Suites may be run with any Scenario, Scenario Chain, or Scenario Chain Set within a Project that contains one or all of the specified Domains.
Note: To learn more about downloading Scenarios, please see: How Do I Download a Scenario?
Step 3: Generator and Receiver Libraries
Before you run the Test Data Case, make sure you have the Generator and Receiver Libraries in your User_Home/.genrocket folder. If you do not have these libraries and are not using an offline certificate, please run the following command:
genrocket -lib
If you are using the offline certificate, please download the Libraries manually from the Options Menu in the navigation bar and place the libraries in your .genrocket folder (the same location as your Profile).
Step 4: (Optional) Copy the Command Line from the G-Case Dashboard
A Test Data Case within a Suite can be run with a Scenario, Scenario Chain, or Scenario Chain Set using a single command line.
This command line can be found at the bottom of the Test Data Case Suite configuration and will change based on the selected Test Data Category and Test Data Case.
Tip: You can select the Test Data Category and Test Data Case and then copy the command line straight from the Test Data Case Suite. Then simply change the Scenario Name in the Command or Terminal Window.
The following values will be different depending on the name of the Test Data Case Suite and what Test Data Category/Case/Scenario are being run:
- TestDataCaseSetExample.gtdp - Name of the Test Data Case Suite to be run.
- Load.case1 - Name of the Test Data Category and Test Data Case to be run.
- <ScenarioName.grs> - Name of the Scenario or Scenario Chain to run.
Step 5: Run the Command Line in a Command or Terminal Window
Once the the command line has been run successfully, you will be able to view the output data on your local computer. The Receiver assigned to the Domain determines the output format of the generated test data. Depending on what has been assigned, your data may be saved as a file, inserted within a database, etc.
Complete the following steps to successfully run a Test Data Case Suite with a Scenario, Scenario Chain, or Scenario Chain Set:
- Open a Command Window. For this example, Windows will be used.
- Set the directory to where files are downloaded from the GenRocket web platform to your local computer.
- Enter or paste the command line. Be certain to replace the appropriate values. The Test Data Category, Test Data Case and Scenario Name can be changed accordingly.
- Press the Enter Key on your keyboard to run the command.