Start a stress test in one minute

Updated at:

PTS lets you quickly start a stress test from the overview page. This topic shows how to run a quick stress test in PTS and introduces its basic features.

Prerequisites

You must have activated PTS. For more information, see Activate PTS.

Quick stress test

  1. PTS consoleOverview
  2. Configure the basic information and parameters for the stress test.

    On the Overview page of the PTS console, Area ① is the top request configuration bar. It contains a request method drop-down list (GET by default), a URL input box, and the Send and Stress Test buttons on the right. Area ② is the parameter configuration area below. It contains five tabs (Request Parameters, Header, Body, Output Parameters, and Checkpoints) and their corresponding key-value parameter tables.

    1. In area ①, select a request method and enter the stress test URL.

      Note

      Stress Test URL: The URL that you want to access. This must be a full URL that starts with http:// or https://.

      The URL can include parameters, such as http://<domain>/<path?key1=value1&key2=value2>.

    2. Optional: In area ②, set request parameters, headers, a body, output parameters, or checkpoints. For more information, see Configure an HTTP node.

  3. Debug the API.

    Click Send in area ① to debug the API. The debug results appear in area ②, with details such as the Request Result status, Response Status Code, and Response Time displayed under tabs including Body, Headers, Timing, Output Parameters, and Checkpoints.

  4. Start the stress test.

    Click Stress Test. In the dialog box that appears, set the Total Test Duration and RPS, and then click OK to start the stress test. The Stress Test button is on the far right of the request configuration bar.

    After the test starts, you are redirected to the execution page, which shows the test details.

    This page displays the real-time running status and the following data: success rate, concurrency, TPS, error count, total requests, and traffic. It also shows the stress limit settings: the TPS limit, concurrency limit, and number of specified IPs. The bottom of the page contains real-time monitoring charts for TPS/RPS, average RT, success rate, and more. You can click View Snapshot or Stop Stress Test.

  5. After the stress test ends, click View in the pop-up dialog box to open the test report.

    You can also select Performance Test > Report List in the left navigation bar, and then click View Report in the Actions column of the target report. You can view information such as sampling logs and business metrics related to the stress test. You can also export the report to view a more detailed stress test report. For more information, see View a PTS stress test report and View sampling logs.