| Step Details |
| Introduced in Version | 9.29 |
| Last Modified in Version | -- |
| Location | System > Advanced > Studio |
Create Unit Test generates a Unit Test for Rules and Rule Sets.
Properties
Inputs
| Property | Description | Data Type |
|---|
| JSON Payload | Enables Users to specify the JSON Payload. | String |
| Rule ID | Enables Users to specify the Rule ID. | String |
| Rule Set ID | Enables Users to specify the Rule Set ID. | String |
| Rule Type | Enables Users to specify the Rule Type. | Rule Type |
| Statements | Enables Users to specify Statements. | List of Converted Rule Statements |
| Unit Test Name | Enables Users to specify the Unit Test Name. | String |
Outputs
| Property | Description | Data Type |
|---|
| Unit Test | Generates 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
| Description | Version | Date | Developer 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.29 | July 2026 | [DT-047158] |