Documentation Index

Fetch the complete documentation index at: https://documentation.decisions.com/llms.txt

Use this file to discover all available pages before exploring further.

Have Questions?  Need Expert Answers?  JOIN LUNCH N' LEARNS!

Create Unit Test

Prev Next
Step Details
Introduced in Version9.29
Last Modified in Version--
LocationSystem > Advanced > Studio

Create Unit Test generates a Unit Test for Rules and Rule Sets. 


Properties

Inputs

PropertyDescriptionData Type
JSON PayloadEnables Users to specify the JSON Payload.String
Rule IDEnables Users to specify the Rule ID.String
Rule Set IDEnables Users to specify the Rule Set ID.String
Rule TypeEnables Users to specify the Rule Type.Rule Type
StatementsEnables Users to specify Statements. List of Converted Rule Statements
Unit Test NameEnables Users to specify the Unit Test Name. String

Outputs

PropertyDescriptionData Type
Unit TestGenerates a Unit Test. UnitTest


Example Inputs and Outputs

Inputs: 
{
  "Unit Test Name": 
  "Rule Id": 
  "Rule Set Id": 
  "JSON Payload": {
    "FlowStructure01": {
      "StringList01": [
        "Sample_A",
        "Sample_B",
        "Sample_C"
      ]
    }
  },
  "Statements": [
    {
      "GroupType": 0,
      "GroupStatements": [
        {
          "AnchorName": "FlowStructure01.StringList01",
          "Verb": "list contains any",
          "RuleVerbNot": false,
          "Value": null,
          "Values": [
            {
              "ValueName": "value",
              "ValueType": 2,
              "ValueData": null,
              "ListValueData": [
                "Sample_A",
                "Sample_B",
                "Sample_C"
              ]
            }
          ]
        }
      ]
    }
  ],
  "Rule Type": "Logical Rule"
}
Outputs: 

{
    "path": "Done",
    "data": {
      "Unit Test": {
        "Id": 
        "EntityName": 
        "EntityDescription": 
        "DisplayName": 
        "ForElementRegistrationId": ,
        "TestResult": 
        "Hidden": 
        "AdministratorViewOnly":
        "EntityFolderID": 
        "HistoryFolderID": 
        "AllTagsData": 
        "State": 
        "CreationDate": 
        "ModifiedDate": 
        "CreatedBy": 
        "ModifiedBy": 
        "Archived": 
        "ArchivedBy": 
        "ArchivedDate": 
        "Deleted": 
        "DeletedBy": 
        "DeletedOn": 
      }
    }
  }
]

Step Changes

DescriptionVersionDateDeveloper Task
Added the Create Unit Test Step that will create Unit Tests for Rules and Rule Sets utilizing the actual step instead of UI. 9.29July 2026[DT-047158]