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
Log on to the PTS console, choose , and then click PTS.
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.
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
.NoteThe test URL must be a complete URL that starts with
http://
orhttps://
. The URL can contain parameters, such ashttp://<Domain name>/<Path?key1=value1&key2=value2>
.Request Method: Select
GET
.Use the default settings for other parameters.
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 to1
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.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.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.