Create a Policy Integrity Test
Create a Policy Integrity Test when you want to test that given inputs will produce known outputs. This is useful for example during calculation engine steps where a user may submit input data which are then used by mathematical results included in output documents. These outputs are often part of policy validation and testing. By recording this, the test can later be attached to a policy which can skip manual validation in the future.
Prerequisites
Introduced in Guardian 3.6.0
Steps
Set your policy to be in dry run mode
Open the policy and start recording
Navigate within the policy to a form that includes inputs you want to capture as part of your test
Click the 'Test' drop down to open the menu and check the box to capture the input of the next form submission as part of the test
Submit the form
Inspect the 'Test' drop down to see which verifiable credential document outputs have been created
Navigate within the UI or click the view document link in the drop down to inspect the values of the document to confirm that they are correct
Open to the 'Test' drop drop and check the box beside the document output that you confirmed as correct and want to include in the test
Repeat to include additional form submissions and/or document outputs
Stop the recording
Enter a title for the record file and include a description that describes what is included in this test
Result
You now have saved a policy integrity test record file.
Troubleshooting
None
Related
Related issues
Last updated