A Test Data Case (GCase or G-Case) modifies the components within a Scenario, thus allowing the same Scenario to generate many different permutations of test data for any number of test cases.
Test Data Cases are a key part of GenRocket's Self-Service Test Data Portal. We organize all the Test Data Case functionality into a part of the GenRocket platform we call "G-Cases."
Users can create a G-Case Suite that contains one or more Test Categories (Beta, Unit, Load). Each Category may contain multiple G-Cases.
In This Article
- G-Cases Overview Video
- Self Service Test Data Portal Diagram
- What are the Benefits of G-Cases?
- Three Ways to Create G-Cases
- Can Domain Relationships be Defined at the G-Case Level?
- What Prerequisite Steps Are Required?
- How to Access G-Cases
- How Do Test Data Case Suites Work?
- Video and Use Case Examples
- Additional "How To" Articles
G-Cases Overview Video
Please take a minute to view the following videos showing how Test Data Cases work in GenRocket:
Self Service Test Data Portal Diagram
Can Domain Relationships be Defined at the G-Case Level?
- No, they must be defined at the Domain (Template) level for a Domain to reference Attributes within another Domain.
- If a Domain Attribute is referenced by another Domain within a G-Case and these relationships have not been defined, a runtime error will occur when attempting to generate test data.
What Prerequisite Steps Are Required?
Users must perform the following steps before G-Cases can be set up in the GenRocket web platform:
- A Project must be set up with at least the default Project Version.
- Domains must be imported or created.
- Each Domain will need to have a Receiver and a Scenario.
- Domain Relationships must be set up at the Domain (Template Level).
- Users generating data must set up GenRocket Runtime on their local machine.
How to Access G-Cases
- Select a Project and Project Version within the Project Dashboard.
- Select G-Cases within the Self Serve Menu Options.
How Do Test Data Case Suites Work?
- Add a G-Case Suite.
- Add one or more Categories.
- Add G-Cases to each Category.
- Set up each G-Case (e.g., add Domains, set Loop Counts, add Rules, modify Attributes, etc.).
- Download the G-Case Suite or an Individual G-Case
- This step is not necessary when using G-Repository.
- Copy the Command Line
- Download the Scenario, Scenario Chain, or Scenario Chain Set
- Run the Command with the Scenario Name at the Command Line to Generate Test Data
Video and Use Case Examples
To view more examples, click on one of the links below:
|G-Cases Use Case Video Training Series||Learn more by watching a series of use case videos.|
|G-Cases Example: Unit and Load Testing||See a complete step-by-step Unit and Load Testing example.|
Additional "How To" Articles
|How to Add and Set Up Test Data Cases||Learn more about creating and managing G-Cases.|
|How to Add New Attributes to a Case Domain||Learn more about adding new Attributes to a Case Domain. Users can add a new Attribute to the case that is not present at the Domain (Template) level for test data generation.|
|How to Make Changes to Existing Attributes in a Case Domain||Learn how to add an existing Attribute to the Case Domain. Users can assign different Generators and modify Parameters after doing so.|
|How to Remove Attributes from a G-Case Domain||Learn how to remove new or existing Attributes from a Case Domain. When removed, the Domain (Template) level configuration will be used for test data generation.|
|How to Add Rules to a Test Data Case||Learn more about adding G-Rules to a G-Case.|
|How to Add Queries to a Test Data Case||Learn more about adding G-Queries to a G-Case.|
|How to Download and Run Test Data Cases||Learn more about generating test data with G-Cases.|
|How to Toggle Domain Attributes On/Off Within the G-Case Editor||Learn more about toggling Domain Attributes on and off within the G-Case Editor.|
|How to Use the Domain Tree View in G-Cases||Learn more about the Domain Tree View. This feature can be used to enable/disable Domains and their child hierarchy or specific Attributes within a Domain for test data generation.|