Debugging Test Case Tutorial

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

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
  2. Open the Step-by-Step Run page.

    Step-by-Step Run tab

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

    The breakpoint

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

  2. Click Run next step . The test case will run to the breakpoint.

    Paused execution

    The green arrow (green-left.png) 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
  1. Click expand.png next to Test Request– Login.

    Test Request – Login test step

    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

See Also

Publication date: