All Products
Search
Document Center

Performance Testing:How do I simulate a scenario where the request is initiated only once?

Last Updated:Nov 01, 2024

For services such as seckillings and exam logon, you may need to simulate scenarios where each virtual user requests only once under high concurrency conditions. This topic describes how to simulate a scenario where the request is initiated only once.

Procedure

In the JMeter load configuration, perform the following operations:

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

  2. In the Load Settings section, configure the following parameters:

    • Select Manual Adjustment for the Traffic Model parameter.

    • Set the Max VUs parameter to the maximum number of virtual users that you want to simulate, and set the Starting Percentage parameter to 100%.

    • Set the Specify Loop parameter to Yes and set the Number of Loops parameter to 1.

    image.png

    Important
    • You must also evaluate and configure the Test Duration parameter based on the response time. The minimum duration is one minute.

    • After stress testing is performed once for all virtual users, the stress testing does not automatically end. You can check whether the current concurrency value is 0 based on the concurrency line chart. If the concurrency value is 0, stress testing is performed once for all virtual users. You can manually end the stress testing.