Configure Test Run and Scenarios

What is Process Testing?

Test your processes easily and safely before publishing to ensure proper functionality. The process testing feature provides the following benefits:

  • Automate testing: Eliminate manual, repetitive testing and automate multiple tests runs against a series of test data. Tasks in each test are completed automatically and validation requirements within Screens for Form Task are ignored.

  • Reduce time to delivery: Greatly accelerate the time to design and deliver sophisticated, complex Processes to production.

  • Increase the quality of solution delivery: Automate multiple test runs with different sets of test data. Rapidly evaluate, identify, and debug specific behaviors in the business solution.

  • Test without starting Requests: Process Testing mocks Requests using mock Request data. Therefore, Process Testing does not trigger log events nor affect Save Search results.

  • Specify the scope of the Process Test: You have the flexibility to either run processes from start to finish, or begin and conclude testing from a midway point, based on your specific testing requirements

Test runs of a process do not count towards application counters and metrics. This ensures that your testing activities won't skew or impact the data you rely on for system analytics.

Running a process test is a two step process:

  1. Create a scenario to use for the test.

  2. Configure and run the test.

What is a Process Scenario?

A Process Scenario contains the scope of a Process Test run using mock Request data.  Create Scenarios from that Process's configuration, and then run them from the Process model in Process Modeler.

Process Testing can automate multiple runs against a series of test data in the Scenario. Tasks in each test automatically simulate completion using the mock Request data.

Scenarios can be created from current requests and test with real-time data.

View Scenarios for a Process

ProcessMaker Platform displays all saved Scenarios for a Process. See What is Process Testing? for more information about how Scenarios work in Process Testing.

Permissions

Your user account or group membership must have the following permissions to view Scenarios for a Process unless your user account has the Make this user a Super Admin setting selected:

  • Processes: Edit Processes

  • Processes: View Processes

See the Processes permissions or ask your Administrator for assistance.

Follow these steps to view all Scenarios for a Process:

  1. View your Processes.

  2. Configure general settings for the Process. The Configuration tab displays.

  3. Click the Test Run/ Scenarios tab. Testing Scenarios display.

    Testing scenarios for a selected Process

The Scenarios tab displays the following information in tabular format for the selected Process:

  • Name: The Name column displays the Scenario name for the Process.

  • Description: The Description column displays the Scenario description.

  • Created: The Created column displays the date and time the Scenario was created. The time zone setting to display the time is according to the ProcessMaker Platform instance unless your user profile's Time zone setting is specified.

  • Modified: The Modified column displays the date and time the Scenario was last modified. The time zone setting to display the time is according to the ProcessMaker Platform instance unless your user profile's Time zone setting is specified.

View Tests for a Process

ProcessMaker Platform displays all Process Tests for completed  test runs.

Permissions

Your user account or group membership must have the following permissions to view Tests for a Process unless your user account has the Make this user a Super Admin setting selected:

  • Processes: Edit Processes

  • Processes: View Processes

See the Processes permissions or ask your Administrator for assistance.

Follow these steps to view all Tests for a Process:

  1. View your Processes.

  2. Configure general settings for the Process. The Configuration tab displays.

  3. Click the Test Run/Scenarios tab, and then select the Test Run tab.

The Test Run tab displays the following information in tabular format for the selected Process:

  • Test #: The Test # column displays the test number.

  • Status: The Status column displays if the test is active, canceled, or completed.

  • Created: The Created column displays the date and time when the test was created. The time zone setting to display the time is according to the ProcessMaker Platform instance unless your user profile's Time zone setting is specified.

  • Completed: The Completed column displays the date and time the test was completed. The time zone setting to display the time is according to the ProcessMaker Platform instance unless your user profile's Time zone setting is specified.