What is a Scenario Chain Set?
A Scenario Chain Set is a set of Scenario Chains linked together to run in a sequence. A Scenario Chain Set may contain up to twenty-five Scenario Chains.
This feature is often used when building data for complex data models. A Scenario Chain Set behaves like a normal GenRocket Scenario — the user downloads a single file to generate the test data on their machine.
Scenario Chain Set Example
In the example below, two Scenario Chains have been set up for Users and Customers. Each chain has multiple Domain Scenarios:
- CustomersScenarioChain – CustomersScenario, PurchasesScenario
- UsersScenarioChain – DepartmentScenario, UserScenario, AddressScenario
Each Scenario Chain may be downloaded and run separately for the Domain Scenarios they contain.
A Scenario Chain Set may also be created to download a single file and run both Scenario Chains.
The Scenario Chain Set shown below contains both Scenario Chains and can be downloaded as one file to run locally.
All 5 Scenarios will be run when the Scenario Chain Set is run in the command terminal: