The goal of automated process testing is to develop an AI agent capable of thoroughly evaluating a process.
Here are some scenarios to consider:
- The starting point could be the process.
- Begin with a form; once it is submitted, start the process.
- The process can take many paths.
What do we want the AI agent to accomplish?
- Assess the flow and develop a testing plan.
- Complete the forms and submit them.
- Keep track of tasks, choose options, and complete them.
- Explore different routes and try all options.
- Identify problems.
This example demonstrates the following workflow.

This example uses the following form.

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

On the Configuration page, select the Form Definition from the drop-down list. Then select the Process Definition from the drop-down list. Choose the process variable to store the Form Instance ID. Select the language to render the Form from the drop-down list. Set “AI Agent” as the test mode. Check the box 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 create a new process instance with a single click. Finally, click the “Execute” button to start a new process execution.

The form opens on a new page. Enter the required information, then click Submit to finish.

The process instance invokes the “AI Agent Test” to validate the workflow by exploring various paths. It monitors tasks, makes decisions, and completes both regular and form tasks. A pop-up window appears when the test completes.
This example demonstrates a successful test of the agent. Click the “View Instance link” to view the result.

The process instance is shown below. All workflow paths have been tested, and the steps have been completed without errors.

This example shows that an agent test has failed because one of the steps returned an error. Click the “View Instance” link to view the result.

The process instance is shown below. All workflow paths have been tested, and one step has failed. Click the error step to view its properties.

The step properties appear on a new page. Select “View > Errors” to view the details.

The error message is shown below. In this example, the process step encountered an error due to incorrect configuration. Click the “AI - How to fix” button for assistance.

The "AI - How to fix" advice might not always be accurate. It offers potential solutions to the step-return error as follows:

Return to the Process Instances page and note that the instance has completed with a “AgentTested” status.
