What is a GenRocket Linked Generator?
Linked Generators provide the ability to generate complex conditioned test data without the necessity of having to access another Attribute’s generated value.
Example – Generate a Person’s Full Name
Let’s say we want to generate a person’s full name as: First Name + Middle Initial + Last Name (e.g., Jane T. Doe).
You could set up four Attributes and then use the ConcatGen Generator to combine them for the fullName Attribute.
However, the firstName, middleInitial, and lastName Attributes would then need to have the visibility Parameter set to false before generating data. Otherwise, these Attributes would also be in the generated test data.
When Linked Generators are used, only one Attribute is needed: fullName Attribute. Within the fullName Attribute, we can define all four Generators as Linked Generators.
The Fourth Generator will use the ConcatGen Generator to combine the data generated by the first three Linked Generators.
Linked Generators generate their data in sequential order from the first Generator to the last Generator. Attributes may reference other Attributes that generate complex test data via Linked Generators thus yielding even more complex test data.
Below is an example of the Linked Generator configuration for the fullName Attribute discussed in this example:
Here is a preview of the data generated by each Generator. Only the fullName will be included as part of the test data generated on the user’s local computer.