Testing the Method Flow
After creating the method flow (see the steps under the category Creating the Method Flow: Adding fields to the method flow, etc.), you can create, edit, run and save test case scenarios of the method flow. You can also test the flow without creating a test case.
Creating a Test Case
-
On the Flow/Test screen, click </> Test cases on the upper right-hand side of the screen:
-
On the Test Cases page that opens, press the Create Test Case button:
-
The following window opens. Here you can assign the Test input values as well as the values of the Test Case variables.
-
Press Next. The Assert Options window opens:
-
The Assert Options include:
- Status code - Checking this box enables selecting the condition (EQUALS/NOT EQUALS) and selecting the value of the status code from the available list.
- Output/Error body - Checking this box enables selecting the condition (EQUALS/NOT EQUALS/CONTAINS/NOT CONTAINS) on the Assert JSON. You may enter the Assert JSON in the box below.
-
Press the Save button to save the Assert options.
Running a Test Case
Running a Test Case from the Test Cases list
Any Test Case line has a Run action. The Run' will open the Test Case in the Test Mode on the Canvas.
-
Open the Method Flow screen. The screen opens in the Flow mode.
-
Press the Test button. The screen is now in Test mode. The Input JSON window displays the Input fields that were created:
-
To Run the test case, press the Run test button. The Test is running message is displayed:
-
When the test case completes, the Test Result modal window displays the steps data and output data.
-
Note that the runtime for each step in the Method Flow test that successfully executes is displayed in green. Failing steps are displayed in red, and steps not executed are displayed in gray.
-
Clicking on a step that successfully completed displays the mapping:
Updated 4 months ago