NanookNanook
  • [ DOCS ]
  • [ API ]
  • [ BLOG ]
  • [ GITHUB ]

›Generator commands

Quickstart

  • The 5 minute Quickstart

Tutorials

  • Overview
  • Create an equivalence class table
  • Transform into data generator
  • Create data generator
  • Create writer
  • Create filter processor

Guides

  • Nanook Table Overview
  • Equivalence class table

    • Overview
    • Section

    Matrix table

    • Overview

    Generator commands

    • Static Data
    • Generator
    • References

    Advanced

    • Instance IDs

Modules

  • Model
  • Logger
  • File Processor
  • Data Generator
  • Writer

Generator Commands

The 'generator' section is where the user defines how to generate the data for a field.

example from a decision table

Generator command

The generator is used to generate new data.

gen:<instanceId>:<generatorName>:<any Parameter>
  • instanceId
    The instance id is an internal id for creating a a instance of a given test case. If no Id is given, a uuid will be taken by the generator. The instance id allows the user to get the same data set from a generator on different fields.
    For example: Let's say we have a generator that creates personal data. It will generate a 'firstName', 'lastName' and an email address. But the data is needed in three different fields in the table. Each time the generator is called, it normally creates a new set of data. But this is not what is needed in this case.
    Let's assume the data generator is named ''AdressDataGenerator'' and it has a parameter for the data to be returned.
gen:1:AdressDataGenerator:firstName  

gen:1:AdressDataGenerator:lastName   

gen:1:AdressDataGenerator:email      
  • The first call of the generator. This will create a new set of data. The data will be stored under the instanceId ''1'' And the data for the field ''firstName'' will be returned.

  • The second call of the generator. The generator will find data for the instance id ''1'' and will not generate new data. Then, it will return the data for ''lastName''

  • The same as for 2.

The instanceId allows the user to call the same generator multiple times but also to access to the same data if needed.

← Static DataReferences →
  • Generator command
Nanook
[ DOCS ] Tutorials Guide
[ MORE ] About Imprint Privacy Policy GitHub Manage Cookies
© 2018-2026 NANOOK.XHUB.IO — An Open Source Project by BeeBack UG.
[ COOKIE PREFERENCES ]

We use cookies to analyze site usage and improve your experience. You can choose which cookies to allow below. See our Privacy Policy for details.

ESSENTIALAlways active
Provider nanook.xhub.io (First Party)
Cookies nanook-theme — Stores your theme preference (CRT/INK)
Duration Persistent (localStorage)
Purpose Remember your display preferences across visits
ANALYTICS
Provider Google LLC (Google Analytics 4)
Cookies _ga, _ga_PMNJR2G9ZH — Distinguish unique visitors and sessions
Duration _ga: 2 years, _ga_*: 2 years
Purpose Measure site usage, page views, and traffic sources to improve the site. IP addresses are anonymized.
Privacy Google Privacy Policy