Overview
A Scenario Chain is run in the same way as a Scenario using the genrocket -r command. Please remember that this command will be different when using G-Repository within your organization. You can view this command here: G-Repository Run Scenario Chain.
Each Scenario will be run in the order they have been placed within the Scenario Chain. If delays have been configured, then GenRocket Runtime will wait the defined number of seconds after the previous Scenario has been run before running the next Scenario in the chain.
In This Article
Project Setup Details
This Project contains three Domains:
- Department - Parent of user, generating 2 departments
- User - Parent of address, generating 10 users per department
- Address - generating 1 address per user
A Scenario Chain (called SampleScenarioChain) has been created and contains all three Scenarios with a 10 second delay after running both the DepartmentScenario and UserScenario scenarios. 
The generated output format will be Delimited Files. The expected result is three files:
- Department.txt - contains two departments
- User.txt - contains 20 users (10 per department)
- Address.txt - contains 20 addresses (1 per user)

How to Generate Data with a Scenario Chain
- Select the Download button to download the Scenario Chain.

Note: Scenario Chains may also be downloaded from the Project Dashboard by clicking on the Download (Cloud) icon within the Scenario Chains Pane.
- Open a Command Window or Terminal Session.
- Make certain the directory matches the location of the downloaded Scenario Chain.

- Enter the following command line. Replace <ScenarioChainName> with the name of your Scenario Chain.Example command:
genrocket -r <ScenarioChainName>.grsgenrocket -r SampleScenarioChain.grs
- For this example, three Scenarios are run when the Scenario Chain is run. GenRocket Runtime will wait 10 seconds after running the Department Scenario and then 10 seconds after running the UserScenario, as shown below:

- Three files are created: DepartmentScenario, UserScenario, and AddressScenario.

Sample Generated Output
Department.txt

User.txt

Address.txt
