Performance Testing Service (PTS) provides a quick-start workflow on the Overview page. You can go from URL configuration to real-time test results in four steps.
Prerequisites
Before you begin, make sure that you have:
A publicly accessible HTTP or HTTPS endpoint to test
Workflow
A quick stress test follows four steps:
Configure the target URL -- Specify the HTTP request method, URL, and optional parameters.
Debug the request -- Send a single request to verify connectivity and correctness.
Run the stress test -- Set the test duration and requests per second (RPS), then start the test.
Monitor real-time results -- View real-time stress testing data on the Executing Test page.
Step 1: Configure the target URL and request parameters
Log on to the PTS console.
On the Overview page, select a request method from the GET drop-down list, and enter the target URL in the text box.
ImportantThe URL must start with
http://orhttps://and be accessible over the Internet. Internal endpoints are not supported. The URL can include query parameters, for example,http://<domain-name>/<path>?key1=value1&key2=value2.(Optional) Configure additional request settings on the Request Parameter, Header, Body, or Output Parameters tabs. For details, see HTTP nodes.
At the top of the API debugging interface in the PTS console, select a request method, such as GET, enter the stress testing URL, such as
http://www.example.com, and then configure the related parameters on the Request Parameter, Header, Body, Output Parameters, Checkpoint, Pre-node, and Post-node tabs. After the configuration is complete, click Send to verify the request or click Test to start a stress test.
Step 2: Debug the request
Click Send to issue a single request to the target URL. Verify that the response returns the expected status code and body before you proceed.
In the Timing panel, view the request duration distribution. The response status code is 200 OK, and the total response time is 487.61 ms. The duration of each phase is as follows:
DNS Lookup: 95 μs
Get Connected: 224.64 ms
Request Sent: 30.24 ms
Waiting(TTFB): 225.39 ms
Step 3: Run the stress test
Click Test to open the configuration dialog box.
Set the following parameters:
Parameter Description Test Duration How long the stress test runs. Request per Second (RPS) The target number of requests per second. Click Start.
Step 4: Monitor real-time results
After the test starts, PTS redirects you to the Executing Test page where you can view real-time stress testing data.
The Global Monitoring panel on the Executing Test page displays real-time stress testing metrics:
Real-time throughput (Transaction Per Second, TPS): the number of requests processed per second.
Request success rate and assertion success rate.
Real-time response time: the 90th, 99th, and 95th percentiles and the average value.
99th-percentile duration of each request phase: DNS lookup, connection establishment, request sending, service waiting, and content downloading.
Total requests, failed requests, and assertion-failed requests.
The line chart at the bottom shows the real-time trends of the throughput, success rate, and response time across all scenarios.
Analyze stress testing results
After the test completes, PTS automatically collects the stress testing data and generates a stress testing report. The report includes the following sections:
Scenario metrics
Business details
Monitoring details
API sampling logs
For details, see View PTS stress testing reports.
What to do next
Add request parameters and headers -- Simulate realistic traffic by configuring custom headers, request bodies, and parameterized URLs. See HTTP nodes.
Analyze your test report -- Review the stress testing report for detailed performance insights. See View PTS stress testing reports.
Create a full test scenario -- Build multi-step test scenarios with multiple API calls for more realistic load simulations.