UI Parent/Child/Sibling Relationships Sample
If you add a Domain manually to GenRocket, it only takes a few steps to set up Parent/Child/Sibling Relationships for the Domain. Each Domain in GenRocket can only have 1 parent Domain and many siblings.
Parent/Child/Sibling Relationships can be set up and managed for Domains within a Project Version through the Domain Dashboard for a selected Domain.
What is the Difference Between a Template Domain and a Scenario Domain?
A Domain created for a Project Version of a given Project is referred to as a Template Domain. When you create a Scenario, it creates a copy of the Template Domain called a Scenario Domain.
Scenario Domains can be customized to generate the exact type of data you want for that Scenario. Changes made at the Template level cascade down to the corresponding Scenario Domains unless the Scenario has been locked.
Scenario Domains can be viewed from the Scenario Dashboard, as shown below:
How to View and Manage Parent/Child/Sibling Relationships for a Domain
Navigate to the Domain Dashboard for a Domain and select the Relationship Tab. In the Relationship Tab, you can do the following:
- Add a Referential Parent
- Add Referential Siblings
- View Children for the Domain
- Remove a Referential Parent or Sibling
Below is a sample a defined Parent/Child/Sibling Relationships between three Domains: User, Account, and Address.
In this example, a User Domain has been added as the Referential Parent for the Account Domain. The Address Domain has been added as a Referential Sibling for the Account Domain.
Configured Parent/Child/Sibling Relationships can also be viewed within the Scenario Dashboard for a Scenario. Click on the Domain Scenario within the Domain Dashboard to view this configuration.
The current configuration will generate 1 Account per User and 1 Address per Account. Additionally, the Account Domain is the Primary Domain, and the User Domain is the Root Domain.
The Loop Count can be changed at the Scenario Level. When changed at the Scenario Level, it will only apply to that Scenario.
The Loop Count has been changed to 2 for the Account and Address Scenario Domains. Now, 2 Accounts will be generated per User and 2 Addresses for each Account when the Scenario is run.
If Parent/Child/Sibling Relationships have been configured, you will see additional Attributes that represent those relationships when viewing the Scenario Domain. These Attributes will appear in purple.
How to add a Referential Parent to a Domain
How to remove a Referential Parent or Sibling from a Domain