Description

The G-Stories platform can be used to create one or multiple suites of Test Data Stories with their own Chapters and Chapter Components. Each Chapter can have a Test Data Case and a Scenario, ScenarioChain, or a ScenarioChainSet. 


Test Data Stories can be used to package multiple Test Data Cases with defined Scenarios, Scenario Chains, and/or ScenarioChainSets. Test data can then be generated using the command line for a Test Data Story with a Scenario, ScenarioChain, or ScenarioChainSet. 


In This Article


Self Service Test Data Portal Diagram


Simple Workflow Example for Test Data Stories

Here is a tree view showing a simple workflow for a Test Data Story Suite that does not contain Test Data Cases:

  • Test Data Story Suite
    • Test Data Story 1
      • Chapter 1
        • Scenario 1
      • Chapter 2
        • Scenario 2
      • Chapter 3
        • ScenarioChain 1
    • Test Data Story 2
      • Chapter 1
        • ScenarioChain 2
      • Chapter 2
        • ScenarioChainSet 1


Here is the same tree view shown above as a workflow diagram:



Using Test Data Cases with Test Data Stories

Test Data Cases can be can be assigned and applied at these two levels within a Test Data Story Suite: 

  • Story Level - Applied to the whole story and will override any cases assigned within that story's chapters.
  • Chapter Level - Applied for that chapter only and do not impact other chapters or the story as a whole. 


Here is a sample tree view showing a simple workflow example for Test Data Stories with assigned Test Data Cases:

  • Test Data Story Suite 1
    • Story 1 (Test Data Case 1)
      • Chapter 1
        • Test Data Case 2
        • Scenario 1
      • Chapter 2
        • Test Data Case 3
        • Scenario 2
      • Chapter 3
        • ScenarioChain 1
    • Story 2
      • Chapter 1
        • Test Data Case 4
        • ScenarioChain 2
      • Chapter 2
        • Test Data Case 5
        • ScenarioChainSet 1


Here is the same tree view shown above as a workflow diagram:



Note: A Test Data Case assigned at the Story Level overrides any cases assigned to individual chapters within a story. The image above is designed to provide an overview of how Test Data Cases can be assigned within a suite of Test Data Stories. 


Generating Test Data with Test Data Stories

Test Data Story Suites and Stories can be run manually by running the corresponding command line in a Command or Terminal Window. GenRocket also offers options for automating this process. Test Data Stories can be used to generate test data in three ways:

  • Run the entire Test Data Story Suite in GenRocket Runtime
  • Run an individual Test Data Story in GenRocket Runtime
  • Disable and Enable Chapters prior to running the Test Data Story Suite or Story in GenRocket Runtime