All Products
Search
Document Center

Performance Testing:Debug a stress testing scenario

Last Updated:Mar 11, 2026

Misconfigured API requests, broken assertions, or incorrect redirects can cause a stress test to produce misleading results or fail entirely. Debugging your scenario reports the response status, assertion results, and timing details, so you can identify and fix configuration errors before launching a full-scale test. Performance Testing (PTS) supports debugging for both PTS scenarios and JMeter scenarios.

Prerequisites

Before you begin, make sure you have:

Run the debugger

  1. Log on to the PTS console and choose Performance Test > Scenarios.

  2. Find the scenario and click Edit in the Actions column.

  3. In the lower part of the Edit Scenario page, click Debug. The Debug dialog box opens and runs the API operations in the scenario.

Note

To minimize the Debug dialog box, click the minimize icon icon in the upper-right corner. A pop-up window appears in the lower-right corner of the page so you can monitor progress. Click the pop-up window to restore the full dialog box.

Debug a single API operation

On the Scenario Settings tab, click Debug API next to the API operation name to debug it individually. The result appears in the dialog box after debugging completes.

Important

PTS does not support debugging a single API operation in a virtual private cloud (VPC). To debug in a VPC, click Debug in the lower part of the Edit Scenario page to debug the entire scenario instead.

Interpret PTS debugging results

After debugging completes, the interface shows response status, assertion results, error details, and timing data for each API operation.

PTS debugging interface

Response status

Each API operation displays one of the following statuses:

StatusMeaning
HTTP status code (200, 302, 403, 500, 503, etc.)The server returned a response. Check the code to determine whether the request succeeded.
Status ExceptionNo response was returned. Common causes include a request timeout or an incorrect request URL that contains the request body, such as an unrecognized function or an invalid URL format.

Diagnose failures by status type

Depending on the status you see, use the following table to locate the root cause.

Failure typeWhere to lookWhat to check
Status ExceptionResponse Details tab > Error Information sectionThe error message describes the cause, such as invalid parameters or an unrecognized function.
Non-200 HTTP status codeResponse Details tab and your application server logsThe response body for error details. Cross-reference with server-side logs to identify the root cause.
Assertion failure (x mark next to the API operation)Response Details tab > Checkpoint information sectionThe assertion rule and actual response value. If no assertion information appears, no output parameter values were extracted.

Error information

The Error Information section on the Response Details tab shows details about failed requests, including timeout messages, parameter errors, and connection refusals.

Timing waterfall

The Timing tab shows a waterfall chart of request time consumption across the core lifecycle. Use this chart to pinpoint where delays or errors occur during the request. All error messages can be presented in the timing waterfall.

For example, if you enabled 302 redirects in the scenario configuration, the timing waterfall shows whether a redirect occurred and the full redirect path.

Test output parameter expressions

Output parameter test entry

When an API response contains data you need to extract -- typically from a TEXT-type response body -- define an output parameter using a regular expression. Test the expression during debugging to verify it returns the expected value before running a full stress test.

Note

The expression test feature is not available for Application/JSON or TEXT/JSON response formats because these formats can be parsed directly without regular expressions.

Test a regular expression

  1. In the right panel of the Debug dialog box, click Click to test the regular expression for the target API operation.

  2. Configure the following parameters:

    ParameterDescription
    SourceThe response content to search
    Regular ExpressionThe regex pattern to match
    Nth matchWhich match to return when multiple matches exist
  3. Click Test Expression to view the matching result.

  4. If the result meets your requirements, click Sync Output Parameter to apply the expression to the API operation's output parameters.

Important

After debugging completes, go to the Scenario Settings tab and configure the output parameter name on the Output Parameter Definition subtab.

Interpret JMeter debugging results

Click Sampler to view the request details, response details, and timing waterfall for each sampler.

JMeter debugging interface

Sampling log

The Sampling log section contains four tabs:

TabInformation displayed
GeneralRequest URL, HTTP method, and status code
Request DetailsRequest header, body, and original packet
Response DetailsResponse header, body, and original packet
TimingTime consumption of all API operations

Engine logs

The Engine logs section shows Apache JMeter operation logs. If no sampling logs appear after debugging, you can analyze and troubleshoot issues based on the error messages in the engine logs.

For common errors and their solutions, see Common errors.