Configure and manage the scenarios for a Process.
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Understand how Scenarios work within Process Testing.
Use Process Testing to evaluate runtime behavior of a Process. Process Testing provides the following benefits:
Automate testing: Eliminate manual, repetitive testing that allows Process Designers to evaluate specific behaviors and workflow. Automate multiple runs against a series of test data. Tasks in each test automatically simulate completion. Validation requirements within Screens for Form Task and Manual Task elements 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: More rapidly evaluate, identify, and debug specific behaviors in the business solution.
Test without starting Requests: Instead, 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: Testing can run either end-to-end or from a midway breakpoint. The breakpoint may be the Process model object from which to begin your evaluation: automate the test run to that object, and then manually test the remainder of that mock Request. Tests do not need to be started from the starting object in the Process. A test may be started from a selected object when preparing to run a test.
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.
View the saved 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.
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:
Configure general settings for the Process. The Configuration tab displays.
Click the Scenarios tab. Testing Scenarios display.
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.
Use the Search setting to filter which Scenario displays.
Click the +Scenario button. See Create a Scenario for a Process.
Create Scenarios in a Process.
Follow these guidelines to create a Scenario:
A method by which to create a Scenario is to provide only the specific JSON data model that contains the Process model object(s) to test. A test need not begin from the Start-type element to start a Request. Therefore, mock Request data is necessary only from the Process model object from which to begin the test.
The following table describes the advantages and disadvantage to this method.
Specify the specific JSON data model to test in one of the following ways:
Create a Scenario, and then enter the specific JSON data model in the Data setting.
Run the test:
Run the test from Process Modeler. It is not necessary to select a Scenario.
Enter the specific JSON data model in the Additional Data setting.
A method by which to create a Scenario is from a Request's data. This method does not require to know JSON, the data structure for the data model from which to test, or to build the data.
The following table describes the advantages and disadvantages to this method.
Follow these steps to create a Scenario from a Request data:
Locate a Request summary or Task summary to verify that it contains the JSON data from which to create the Scenario.
Evaluate the following about the Request's data under consideration:
The Request's workflow has proceeded to contain relevant data for the Process Test.
The values in that Request's data are those that you want for your Process Test. If not, then editing that Request's data may be necessary after creating the Scenario.
Click the Create Scenario button from that Request or Task summary. The Create Scenario screen displays from which to create the Scenario.
Your user account or group membership must have the following permissions to create 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 create a Scenario for a Process:
Configure general settings for the Process. The Configuration tab displays.
Click the Scenarios tab. Testing Scenarios display.
Click the +Scenario button. The Create Scenario window displays.
From the Name setting, enter the Scenario name for the Process. This is a required setting.
From the Description setting, enter the Scenario description for the Process.
From the Data setting, enter the JSON data model for the Process Scenario that mocks the Request data during Process Testing.
Click Save.
Search for a Scenario in a Process.
Follow these steps to search Scenarios for a Process:
Click the Scenarios tab. Testing scenarios display.
Enter in the Search setting the text to filter Scenarios.
As you enter text into the Search setting, Scenarios display that match your entered text.
If there are no search results, the following message displays: No Results.
Edit a Scenario used in a Process.
Follow these steps to edit a Scenario for a Process:
Click the Scenarios tab. Testing scenarios display.
Edit the following if necessary:
From the Name setting, edit the scenario name for the Process. This is a required setting.
From the Description setting, edit the Scenario description for the Process.
Click Save.
Click the ellipses icon, and then select the Edit Scenario option. See Edit Scenarios for a Process.
Click the ellipses icon, and then select the Delete option. See Delete Scenarios in a Process.
Advantage | Disadvantage |
---|---|
Advantage | Disadvantage |
---|---|
See the permissions or ask your Administrator for assistance.
.
. The Configuration tab displays.
See the permissions or ask your Administrator for assistance.
.
. The Configuration tab displays.
Click the ellipses icon, and then select the Edit Scenario option for the Scenario to edit. The Edit Scenario window displays.
From the Data setting, edit the JSON data model for the Process Scenario that mocks the during Process Testing.
Do not need a Scenario to run a test
Requires to know JSON to either build the JSON data model or copy from Request data
Need only the specific mock Request data from which to test
Does not require knowing JSON
Requires running real Requests from which to create the Scenario, thereby triggering logging events and data available to Saved Searches
No need to build the JSON data model
Scenario contains the JSON data model only to the last triggered object in that Request, which may not contain
Scenario may not contain exactly the mock Request data to test, so editing the Scenario may be required
Delete a testing Scenario for a Process.
Your user account or group membership must have the following permissions to delete Scenarios for a Process unless your user account has the Make this user a Super Admin setting selected:
Processes: Delete Processes
Processes: View Processes
See the Processes permissions or ask your Administrator for assistance.
Follow these steps to delete a Scenario for a Process:
Configure general settings for the Process. The Configuration tab displays.
Click the Scenarios tab. Testing Scenarios display.
Click Confirm.
Click the ellipses icon, and then select the Delete option for the Scenario. The Caution window displays to confirm the deletion of the Scenario.