The goal of automated process testing is to have a computerized AI agent that can thoroughly test a process. Here are the scenarios to think of:
- The starting point could be just the process
- Start from a Form; once the Form is submitted, start the process
- The process can take many different paths
What do we want the AI agent to do?
- Analyze the flow and come up with a testing plan
- Fill out the Forms and submit
- Monitor for tasks, make selections, and complete the tasks
- Take different paths, test all paths
- Find issues
This example uses the following process workflow.

This example uses the following Form.

On the Form Definitions page, select the Form and click the View - Execute with params menu option. We are instantiating a new process instance by submitting a Form.

On the Configuration page, select the Form Definition from the drop-down list. Select the Process Definition from the drop-down list. Select the process variable to hold the Form Instance ID. Select the language to render the Form from the drop-down list. Select “AI Agent” as the test mode. Click the checkbox to save the process instance. Select the user to run this test mode from the drop-down list. Click the “Save Form URL” button to execute a new process instance as a single-click event. Click the Execute button to instantiate a new process execution.

The Form is rendered on a new page. Provide the necessary input. Click the Submit button to complete the Form.

The process instance invokes the “AI Agent Test” to validate the process workflow by taking many different paths. The process monitors tasks, makes selections, and completes tasks (both regular and Form tasks). A popup window is displayed upon test completion.
This example demonstrates a successful test for the agent. Click the View Instance link to see the result.

The process instance is displayed below. You will notice that all workflow paths have been tested and the steps have been completed without errors.

This example demonstrates that an agent testing has failed, as one of the steps has returned an error. Click the View Instance link to see the result.

The process instance is displayed below. You will notice that all workflow paths have been tested, and one of the steps has returned an error. Click the error step to view the properties.

The step properties are rendered in a new page. Select the View - Errors menu option to see the details.

The error message is displayed as below. In this example, the process step has returned an error for an incorrect configuration. You may click the “AI - How to fix” button for advice.

The "AI - How to fix" advice may not be accurate at times. It suggests possible ways to resolve the step return error as follows.

Navigate back to the Process Instances page and observe that the instance has completed with “AgentTested” status.
