Test Report Description
CPTS provides real-time and offline test reports for you to view and analyze test data anytime.
A test report includes a service report and SLA report.
- The service report displays the monitored service metrics in the test case.
- The SLA report displays the SLA rules configured in the test project and the rule trigger events.
Common Test Cases
Table 1 describes a test report when the case type is Normal.
This report shows the response performance of the tested system in a scenario with a large number of concurrent users. To help you understand the report, the following information is provided for reference:
- Statistical dimension: In this report, RPS, response time, and concurrency are measured in a single case. If a request has multiple packets, the request is considered successful only when all the packets are responded to. The response time of the request is the sum of the response time of the packets.
- Response timeout: If the corresponding TCP connection does not return the response data within the set response timeout (5s by default), the case request is counted as a response timeout. Possible causes include: the tested server is busy or crashes, or the network bandwidth is fully occupied.
- Verification failure. The response packet content and response code returned from the server do not meet the expectation (the default expected response code of HTTP/HTTPS is 200), such as code 404 or 502. A possible cause is that the tested service cannot be processed normally in scenarios with a large number of concurrent users. For example, a database bottleneck happens in the distributed system or the backend application returns an error.
- Parsing failure. All response packets are received, but some packets are lost. As a result, the entire case response is incomplete. This may be caused by network packet loss.
- Bandwidth: This report collects statistics on the bandwidth of the execution end of CPTS. The uplink indicates the traffic sent from CPTS, and the downlink indicates the received traffic. In the external pressure test scenario, you need to check whether the EIP bandwidth of the executor meets the uplink bandwidth requirement and whether the bandwidth exceeds the downlink bandwidth of 1 GB.
- RPS: RPS is the number of requests that CPTS sends to the tested server per second.
- How to determine the quality of tested applications: According to the service quality definition of an application, the optimal status is that there is no response or verification failure. If there is any response or verification failure, it must be within the defined service quality range. Generally, the value does not exceed 1%. The shorter the response time is, the better. User experience is considered good if the response time is within 2s, acceptable if it is within 5s and needs optimization when it is over 5s. TP90 and TP99 can objectively reflect the response time experienced by 90% to 99% of users.
Parameter | Description |
---|---|
Total Number of Metrics | Total number of metrics of all cases.
|
Response distribution statistics | Indicates the number of cases processed per second for normal return, parsing failure, verification failure, and response timeout. This metric is related to the think time, concurrent users, and server response capability. For example, if the think time is 500 ms and the response time of the last request for the current user is less than 500 ms, the user requests twice per second.
|
Bandwidth (kbit/s) | Records the real-time bandwidth change consumed in the running of the pressure test task.
|
RPS/Average Response Time |
|
Concurrent Users | Indicates the changes on the number of concurrent virtual users during testing. |
Response Time Ratio | Indicates the ratio of response time of cases. |
TP (ms) | If you want to calculate the top percentile XX (TPXX) for a request, collect all the response time values for the request over a time period (such as 10s) and sort them in an ascending order. Remove the top (100–XX)% from the list, and the highest value left is the value of TPXX.
|
Logs | Supports sampling packet capturing for requests and responses to locate problems during testing. A maximum of 100 requests and responses can be captured for each case at a time. For details, see description about logs. |
SLA Reports
If you have configured SLA rules for a test task, you can check whether the SLA rules are triggered during testing in the SLA report.
Parameter | Description |
---|---|
Request Name | Name of the request in the test case. |
Rules | SLA rules that have been configured for the test task. |
Average Value | Average metric value and the number of times that the SLA rules were triggered during testing. |
Trigger Events | Request name and when and how many times the SLA rules were triggered during testing. |
- Common Test Cases
- SLA Reports