--- title: "Create Unit Test" slug: "create-unit-test" updated: 2026-07-20T02:09:19Z published: 2026-07-20T02:09:19Z canonical: "documentation.decisions.com/create-unit-test" --- > ## 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. # Create Unit Test | 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 | --- ## ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2026-07-19_20h47_52.png) --- ## Example Inputs and Outputs ```none 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": } } } ] ``` ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2026-07-19_20h49_47.png) ## 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] |