All Products
Search
Document Center

Performance Testing:Create a PTS-based stress testing scenario

Last Updated:Apr 26, 2026

This topic provides the basic information about Performance Testing Service (PTS)-based stress testing scenarios. This topic also describes how to create a PTS-based stress testing scenario.

Background information

PTS is a stress testing tool that is developed based on the end-to-end stress testing platform of Alibaba Cloud. PTS-based stress testing is widely used for applications such as web applications and mini programs that communicate by using HTTP or HTTPS. PTS-based stress testing is applicable in various industries, such as e-commerce, Internet of vehicles (IoV), multimedia, finance and insurance, logistics and express delivery, advertising and marketing, and social networking. PTS-based stress testing can simulate real business scenarios that involve a large number of users and provides a comprehensive method to verify the website performance, capacity, and stability.

What is a stress testing scenario?

To initiate a stress test, you must create a stress testing scenario. A stress testing scenario contains one or more parallel tasks. Each task is equivalent to a business session and contains one or more serial APIs.

  • APIs are required for stress testing. APIs define the URL at each stage of a session. An API simulates a specific request to an application. For example, when you perform an operation on an e-commerce website, such as logging on, querying product details, or placing an order, multiple APIs are required to complete the operation.

  • A business session is an ordered set that consists of stress testing APIs with business meanings, which are similar to transactions.

The following example describes the relationship between a business session and an API.

You perform a stress test in which two tasks or business sessions are executed at the same time for Taobao.

  • Task A: Browse Product A.

  • Task B: Purchase Product B.

Task B contains four APIs that must be initiated in sequence. The following list describes the APIs:

  • Request 1: Log on to Taobao.

  • Request 2: Browse Product B.

  • Request 3: Add Product B to the shopping cart.

  • Request 4: Submit the order.

Procedure

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

  2. On the Scenario Settings tab, click the dropdown list next to Add API to add different types of APIs to a business session. When the stress testing starts, these APIs send requests sequentially. For more information, see HTTP node or JDBC node.

    Note

    If you click Add API directly, the system adds an HTTP node by default.

  3. Optional: Click +Add Business Session to add multiple business sessions to the scenario. When the stress testing starts, all business sessions run concurrently.

  4. Optional. Use instructions to manage the stress testing behaviors in a business session. For more information, see Instructions.

  5. Configure other parameters.

    • Configure the parameters in the Stress Mode Configuration and Load Level Configuration sections. For more information, see Configure the load mode and load level.

    • Configure the parameters in the Advanced Settings section. For more information, see Advanced settings.

    • Configure the parameters in the End-to-End Monitoring section. For more information, see Configure end-to-end monitoring.

    • Configure the parameters in the Others section.

  6. Perform the following operations based on your business requirements:

    • To debug the scenario, click Debug in the lower-left corner of the Debug tab. For more information, see Debug a scenario.

    • After you configure the scenario, click Save and Start Testing in the lower-left corner of the Save and Start tab to run the test.

Examples

You can initiate a PTS-based stress test in the PTS console only with a few clicks. This section provides example scenarios for PTS-based stress testing.

What to do next

After the scene is created, select PTS in the Scene List to view the created PTS scene.

In the Actions column for the target scene:

  • Click Start to run the stress test. For more information, see Start a stress test.

  • Click Edit to go to the Edit Scenario page, where you can modify the scenario settings. PTS provides several features to simplify scenario management, such as copying a scenario, enabling or disabling a business session, and copying an API. For more information, see Manage a scenario.

  • Click Delete to delete the stress testing scenario. Existing stress test reports are not deleted.

  • Click Copy to create a new scenario from the existing one. For more information, see Copy a scenario.