Description

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

Please take a minute to view the following videos showing how Test Data Cases work in GenRocket:



 

Self Service Test Data Portal Diagram


What are the Benefits of G-Cases?

  • Increased design flexibility for complex test data projects. 
  • Add related components for test data generation (e.g., Rules, Queries) to support complex needs.
  • Modify Scenarios every time the needed volume or variety changes. Instead, they can set up G-Cases. 
  • Specify Domains, Loop Counts, and the order of test data generation from G-Cases easily without altering individual Scenarios. 
  • G-Cases support multiple types of testing (e.g., beta, unit, negative, load) using the same set of Domains, etc. 

Three Ways to Create G-Cases

  1. G-Cases Management Dashboard (Continue reading to learn more)
  2. From G-Families Click here for more information.
  3. From G-Questionnaires Click here for more information.

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: 

  1. A Project must be set up with at least the default Project Version. 
  2. Domains must be imported or created.
  3. Each Domain will need to have a Receiver and a Scenario. 
  4. Domain Relationships must be set up at the Domain (Template Level).
  5. Users generating data must set up GenRocket Runtime on their local machine.  

How to Access G-Cases

  1. Select a Project and Project Version within the Project Dashboard.
  2. Select G-Cases within the Self Serve Menu Options.


How Do Test Data Case Suites Work?

  1. Add a G-Case Suite.
  2. Add one or more Categories.
  3. Add G-Cases to each Category.
  4. Set up each G-Case (e.g., add Domains, set Loop Counts, add Rules, modify Attributes, etc.).
  5. Download the G-Case Suite or an Individual G-Case 
  6. Copy the Command Line
  7. Download the Scenario, Scenario Chain, or Scenario Chain Set
  8. 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: 


TopicDescription
G-Cases Use Case Video Training SeriesLearn more by watching a series of use case videos. 
G-Cases Example: Unit and Load TestingSee a complete step-by-step Unit and Load Testing example.



Additional "How To" Articles

TopicDescription
How to Add and Set Up Test Data CasesLearn more about creating and managing G-Cases.
How to Add New Attributes to a Case DomainLearn 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 DomainLearn 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 DomainLearn 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 CaseLearn more about adding G-Rules to a G-Case.
How to Add Queries to a Test Data CaseLearn more about adding G-Queries to a G-Case.
How to Download and Run Test Data CasesLearn more about generating test data with G-Cases.
How to Toggle Domain Attributes On/Off Within the G-Case EditorLearn more about toggling Domain Attributes on and off within the G-Case Editor.
How to Use the Domain Tree View in G-CasesLearn 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.