All Products
Search
Document Center

Performance Testing:Get Started with PTS Stress Testing

Last Updated:Nov 01, 2024

This topic describes how to use Performance Testing (PTS) to initiate a quick stress test for a simple web page.

Prerequisites

PTS is activated. For more information, see Activate PTS.

Stress testing process

  1. Log on to the PTS console, choose Performance Test > Create Scenario, and then click PTS.

  2. Orchestrate a stress testing scenario.

    To initiate a stress test, you must create a stress testing scenario. A stress testing scenario consists of one or more parallel service sessions. Each service session consists of one or more sequential API requests.image

    Take note of the following parameters:

    • Scenario Name: Enter a scenario name. Example: pts-test.

    • API Name: Enter an API name. Example: API-1.

    • Test URL: Enter the URL that you want to test. Example: http://www.example.com.

      Note

      The test URL must be a complete URL that starts with http:// or https://. The URL can contain parameters, such as http://<Domain name>/<Path?key1=value1&key2=value2>.

    • Request Method: Select GET.

    • Use the default settings for other parameters.

  3. Configure stress mode settings.

    In this example, the maximum number of virtual users (VUs) is set to 10 and the total test duration is set to 1 minute. Use the default settings for other parameters. You are charged for stress tests. We recommend that you configure a load level based on your business requirements. For more information, see Billing overview and Configure the stress testing model and level.image

  4. Debug the scenario.

    You can debug the scenario to check whether the configurations are valid and prevent test failures. We recommend that you debug the scenario. For more information, see Debug a stress testing scenario. The following figure shows a successful request. If the response status code is not 200 for an API request, check whether the API request can be initiated as expected.image

  5. Click Save and Start. In the Note dialog box, select Execute Now and The test is permitted and complies with the applicable laws and regulations, and then click Start.

Analyze the stress testing results

After the stress test is complete, PTS generates a stress testing report. You can view the report on the Reports page. For more information, see View a PTS-based stress testing report.image