Skip to content

API Tests


By creating API tests 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 automated multi-region testing.

For example, when your service experiences delayed responses or returns erroneous content, the API testing feature can promptly alert your team, helping you quickly locate performance issues and their scope of impact before users encounter them.

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, which may include the requested file, an error message, or other information.
TCP Protocol The Transmission Control Protocol (TCP) is a network communication protocol used to establish and maintain reliable connections between two programs, ensuring the correct transmission of data over the Internet. TCP breaks data into packets for transmission and reassembles them at the receiving end, while also performing error checking and retransmission mechanisms to guarantee data integrity.
ICMP Protocol The Internet Control Message Protocol (ICMP) is a sub-protocol of the TCP/IP protocol suite, used to convey control messages between IP hosts and routers. It is primarily used to check if the network is通畅, if a host is reachable, if a route is available, etc., and 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 a browser and a server, supporting simultaneous sending and receiving of messages by both the client and server, enabling efficient data interaction.

Create

HTTP

TCP

ICMP

WebSocket

Task Labels

On the API test creation page, you can add Labels for the current task in the top-left corner to achieve data linkage within the workspace through global labels. Saved labels will be directly displayed in the list. You can quickly find API tests under specific labels via the "Quick Filter > Label" option on the left.

Label Logic Supplement

If the API test 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 API test result attributes.

Feedback

Is this page helpful? ×