Book a demo

← Documentation

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

  1. On the Flow/Test screen, click </> Test cases on the upper right-hand side of the screen:

    Creating a Test Case screenshot

  2. On the Test Cases page that opens, press the Create Test Case button:

    Creating a Test Case screenshot

  3. The following window opens. Here, you can assign the Test input values and the Project Configuration Variables values.
    For example, with these Project Configuration Variables

    Creating a Test Case screenshot

    You will see this window:

    Creating a Test Case screenshot

    Where you could set the values for your Project Configuration Variables

  4. Press Next. The Assert Options window opens:

    Creating a Test Case screenshot

  5. 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.
  6. 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.

  1. Open the Method Flow screen. The screen opens in the Flow mode.

    Running a Test Case from the Test Cases list screenshot

  2. Press the Test button. The screen is now in Test mode. The Input JSON window displays the Input fields that were created:

    Running a Test Case from the Test Cases list screenshot

  3. To Run the test case, press the Run test button. The Test is running message is displayed:

    Running a Test Case from the Test Cases list screenshot

  4. When the test case completes, the Test Result modal window displays the steps data and output data.

    Running a Test Case from the Test Cases list screenshot

  5. 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.

    Running a Test Case from the Test Cases list screenshot

  6. Clicking on a step that successfully completed displays the mapping:

    Running a Test Case from the Test Cases list screenshot

Read more

Tell us about yourself

You've been browsing the catalog. Leave your details to keep exploring.

Privacy policy