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 group.


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 Group.
  • 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 group, complete the following steps: 

  • Select the Test Data Rule Group 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 Group belongs to.

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

  • Enter the Value that will be given for the Action (i.e. False, True, Yes, No, etc.).

  • If it is a String, check the Is String checkbox.

  • Click Save to finish. For this example, we will be choosing the User Domain, the allowedtoVote Attribute, and entering a Value of "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
    • 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 group, 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 Group.


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