Debug a single API operation

更新时间:
复制 MD 格式

Performance Testing (PTS) allows you to debug a single API operation. This way, you can quickly check whether your stress testing scenario meets your business requirements from the dimension of a single API operation after you configure the scenario.

Prerequisites

Before you begin, make sure that you have:

Debug an API operation

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

  2. Find your stress testing scenario and click Edit in the Actions column.

  3. On the Edit Scenario page, click the Scenario Settings tab.

  4. Find the API operation that you want to debug and click Debug API to the right of the API operation name. Alternatively, click the drop-down arrow to the right of the API operation name to expand the details section, and then click Debug API.

  5. Review the debugging result:

    FieldDescriptionWhat to check
    Response bodyThe content returned by the API operation.Verify that the response matches your expected output. For example, confirm that the returned data structure and values are correct.
    Response status codeThe HTTP status code.A 200 status code indicates success. If you receive 4xx or 5xx codes, check your request parameters and endpoint configuration.
    Output parametersThe output parameters of the API operation.Verify that each parameter value is correctly parsed.

Limitations

Performance Testing (PTS) does not support debugging a single API operation in a virtual private cloud (VPC). To test API operations that are accessible only from within a VPC, click Debug in the lower part of the Edit Scenario page to debug the entire stress testing scenario. For more information, see Debug a stress testing scenario.

What to do next

After you confirm that individual API operations return the expected results:

  1. Debug the full scenario. Click Debug in the lower part of the Edit Scenario page to validate the end-to-end flow, including dependencies between API operations. For more information, see Debug a stress testing scenario.

  2. Start a stress test. Run the stress test to evaluate performance under load.