Create WEBSOCKET Testing Task¶
WebSocket testing allows clients to initiate HTTP requests to the server, establish WebSocket connections, and verify requests and judgment conditions (such as request headers, response times, etc.).
Start Creating¶
Click Create > API Tests, and select WEBSOCKET Protocol.
1. Define Request Format¶
- URL: Supports input of URLs with WS and WSS protocols.
- Advanced Settings: Supports custom request settings and authentication.
- Content: Input the message content to be sent to the server.
- Name: Customize the name of the WebSocket testing task, which must be unique within the current workspace.
2. Availability Judgment¶
By adding judgment conditions to match data. Multiple conditions can be selected with "all" or "any" to achieve AND or OR logical relationships.
After defining the request format and adding judgment conditions, click the "Test" button on the right side of the URL to verify whether the testing connection configuration is successful.
Note: The test result is independent of the selected node.
3. Select Testing Nodes¶
Currently, Guance has covered 14 testing nodes globally. You can select one or more nodes in China or overseas regions (only for Commercial Plan and above users) to quickly start site service quality monitoring.
4. Select Testing Frequency¶
Select the execution frequency of the testing task, supported options include:
- 1 minute (only for Commercial Plan and above users)
- 5 minutes (only for Commercial Plan and above users)
- 15 minutes (only for Commercial Plan and above users)
- 30 minutes
- 1 hour
- 6 hours
- 12 hours
- 24 hours
In addition to the specific options provided by the system, you can also input custom crontab tasks to configure scheduled task execution based on minutes, hours, days, months, weeks, etc.
