Description

The LoopSetGen sets the value generated by another Domain Attribute as the loop count. 


Parameters

The following parameters may be configured for the LoopSetGen Generator. Items with an asterisk* are required. 

  • reference* - Defines the Attribute to reference. Example: #{User.id}


Example

For this example, the LoopSetGen Generator will reference a number Attribute, which will generate a number between 1 and 25. The first generated random number will determine the loopCount (i.e., the number of generated records).


Note: The loopCount for the User Domain has been set to 100. 



number Attribute

The RandomGen Generator has been assigned to the number Attribute.


The following Parameter changes have been made: 

  • Start Range = 1
  • End Range = 25


loopValue Attribute

The LoopSetGen Generator has been assigned to the loopValue Attribute.



The LoopSetGen Generator references the number Attribute. This means that the loopCount will be set to the first number generated by the number Attribute. 



Sample Output

In the sample output below, 11 is the first number generated by the number Attribute when the Scenario is run. The loopValue references this number, and 11 records are generated rather than 100 (e.g., loopCount value for the Domain).