The Test Data Default is a default rule that can be set up and used when a test data record does not meet any of the defined Test Data Rule's Conditions within the set.


When the record does not meet these Conditions, the Action for the Test Data Default will be taken for the record. The following applies to Test Data Defaults:

  • Only 1 Default Rule can be added for a Test Data Rule Set.
  • A Test Data Default can have several Actions. 
  • Each Action is defined for 1 Domain and 1 Attribute.


Note: If no Test Data Default is defined, then data will be generated the same as when no Test Data Rules exist.


Example: If the Default Rule is for a User Domain containing an allowedtoVote Attribute, then it could be set as User.allowedtoVote = false. This means that if no other rule conditions are met, then this attribute will be set to "false" for each record not meeting those conditions.



This article shows how to do the following: 

  • Add a Test Data Default
  • Create New Actions for a Test Data Default
  • Edit Actions for a Test Data Default
  • Delete Actions from a Test Data Default
  • Edit a Test Data Default Description
  • Delete a Test Data Default


Adding a Test Data Default


To add a Test Data Default to the set, complete the following steps: 

  • Select the Test Data Rule Set within the table by clicking on its Name.


  • Click on Add Test Data Default located at the bottom of the Test Data Rule Table.


  • Enter a Description (Optional).

  • Click Save to finish.


  • The Test Data Default will appear in the Test Data Rule Table with "default" as the name: 


Creating New Actions for a Test Data Default


Once the Test Data Default has been created, Actions can be added to determine what will happen when no other conditions are met. 


To add one or more Actions to the Test Data Default, complete the following steps: 

  • Select the Test Data Default within the Test Data Rule Table. 

  • It will be highlighted in blue when selected and is named "default".


  • Next, click on New Action.


  • The configuration window will appear as shown below:


  • Select a Domain from the drop-down menu for the Action. These are Domains within the Project the Test Data Rule Set belongs to.

  • Select an Attribute from the drop-down menu for the Action. These are Attributes within the selected Domain.


  • Two options are available for the Value Type: Constant and Generator

  • Choose an option and then follow the steps below based on that option.


  • Constant - Enter a Value to be assigned for the default rule (yes, no, true, false, etc.). 

  • If the value is a string, the Is String option will be checked automatically.


  • Generator - A Generator may be selected and used to assign a value for the default rule.

  • Enter a Generator name or click on the field to select one from a drop-down menu.


    Note: Detailed steps for setting up Actions with a constant value or selected Generator(s) can be found here: Configuring Test Data Rule Conditions and Actions.

  • Click Save to finish. In this example, Value Type is Constant has been chosen and the Value is false.


  • The new Action will appear as shown below:


  • The Pseudo Code can be previewed to the right of the Action(s).


  • Additional Actions may be created for the Test Data Default by completing the same steps again.

  • When multiple Actions exist for a Test Data Default, the order can be changed by performing a Click+Drag action.


Editing Actions for a Test Data Default


To edit an Action for the Test Data Default, complete the following steps: 

  • Click on the Edit (Pencil) Icon within the Action Column of the Default Actions Table.


  • Use the drop-down menus and input fields to make changes to one or all of the following: 
    • Domain
    • Attribute
    • Value Type
    • Value (or) Generator
    • Is String

  • Click Save to finish. For this example, the Value has been changed to "true".


  • Changes will be reflected in the Default Actions Table.


Deleting Actions for a Test Data Default


To delete an Action from the Test Data Default, complete the following steps: 

  • Click on the Delete (Trash Can) Icon within the Action Column of the Default Actions Table.


  • Click Yes in the confirmation window to delete the Action from the Test Data Default.


    Note: Click No to close the confirmation window without deleting the Action.


Editing the Test Data Default Description


To edit the Test Data Default's description, complete the following steps: 

  • Click on the Edit (Pencil) Icon within the Action Column of the Test Data Rule Table.



  • Use the input fields to change the Description for the Test Data Default.

  • Click Save to finish. Changes will be reflected in the Test Data Rules Table.


Deleting a Test Data Default


To delete the Test Data Default from the set, complete the following steps: 

  • Click on the Delete (Trash Can) Icon within the Action Column of the Test Data Rules Table.


  • Click Yes in the confirmation window to delete the Test Data Default from the Test Data Rule Set.


    Note: Click No to close the confirmation window without deleting the Test Data Default.