Debugging Test Case Tutorial

Applies to ReadyAPI 3.10, last modified on October 07, 2021

This tutorial describes how to get started with debugging tests.

Opening Project

  1. Run ReadyAPI.

  2. On the Dashboard Activities & Helpful Links panel, select SOAP Sample Project to import it into your workspace.

    Import SOAP Sample Project

    Click the image to enlarge it.

Opening Step by Step Run Page

With a virtual API running to give responses, you can open a test case to run.

  1. In the Functional Tests node, select the Simple Search test case.

    Simple Search test case

    Click the image to enlarge it.

  2. Open the Step-by-Step Run page.

    Step-by-Step Run tab

    Click the image to enlarge it.

Adding Breakpoint

In order to halt execution to view properties, you need to add a breakpoint:

  1. Click in the BP column to the left of the second Property Transfer test step.

    This will add a breakpoint to your test case. It will halt the execution before the selected test step is being executed.

    The breakpoint

    Click the image to enlarge it.

    Now, you can run the test case until the next breakpoint.

  2. Click . The test case will run to the breakpoint.

    Paused execution

    Click the image to enlarge it.

    The green arrow () in the rightmost column indicates the next test step to be executed.

Viewing Properties

When the execution is halted on a breakpoint, you can use the Properties panel to inspect the status of the test case.

An asterisk (*) next to an item in the list indicates that it contains a property value that has changed since the execution started.

Changed properties

Click the image to enlarge it.

  1. Click next to Test Request– Login.

    Test Request – Login test step

    Click the image to enlarge it.

    The inspector shows the context of the selected test step.

    Further details are available by selecting an item in the list.

  2. Click the Request row in the table. The request as it currently stands will appear:

    The Request property

    Click the image to enlarge it.

See Also

About Debugging Tests
Debugging Tests
Debugging Groovy Scripts

Highlight search results