API Tests¶
By creating testing tasks based on HTTP, TCP, ICMP, and WebSocket protocols, you can periodically monitor the quality of network sites and the stability of network data transmission across different regions and ISPs. This enables timed detection, availability judgment, and multi-region automated testing.
For example, when your service response is delayed or the response content is incorrect, the testing feature can promptly alert your team, helping you quickly locate performance issues and their impact scope before users notice the problem.
Concepts¶
Term |
Description |
---|---|
HTTP Protocol | The Hypertext Transfer Protocol (HTTP) is an application layer protocol based on TCP/IP, used for data communication in distributed, collaborative, and hypermedia information systems. Typically, an HTTP client initiates a request and communicates with the server via a TCP connection (default port 80). The server receives the request and returns a status code (e.g., "HTTP/1.1 200 OK" ) along with the corresponding content, including the requested file, error message, or other information. |
TCP Protocol | The Transmission Control Protocol (TCP) is a network communication protocol used to establish and maintain a reliable connection between two programs, ensuring the correct transmission of data over the Internet. TCP breaks down data into packets for transmission and reassembles the data at the receiving end, while also performing error checking and retransmission mechanisms to ensure data integrity. |
ICMP Protocol | The Internet Control Message Protocol (ICMP) is a sub-protocol of the TCP/IP protocol suite, used to transmit control messages between IP hosts and routers. It is primarily used to detect whether the network is畅通, whether the host is reachable, and whether the route is available, which is crucial for the reliability of network communication. |
WebSocket Protocol | WebSocket is a full-duplex communication protocol based on TCP, widely supported since HTML5. It allows for bidirectional real-time communication between the browser and the server, enabling both the client and server to send and receive messages simultaneously, facilitating efficient data interaction. |
Create¶
Note
The Free Plan workspace supports a maximum of 5 testing tasks and is limited to using "China Region" testing nodes. If you need to create more testing tasks or use overseas testing nodes, please upgrade to the Commercial Plan.
Task Labels¶
On the testing task creation page, you can add Labels in the top-left corner for the current task, enabling data linkage within the workspace through global labels. The added labels will be directly displayed in the list after saving. You can quickly find testing tasks under the corresponding label by using the "Quick Filter > Labels" on the left.
Label Logic Supplement
If the testing task node is set to node_name:South China-Guangzhou-China Telecom
, and you add a custom label node_name:Self-built Nodes
to the task, the custom label will be ignored and not written into the testing result attributes.