2020-07-16 06:23:41 +02:00
|
|
|
config:
|
|
|
|
target: "ws://localhost:8080/entry"
|
|
|
|
processor: "./websocketTest.js"
|
|
|
|
|
|
|
|
ensure:
|
|
|
|
p95: 200
|
|
|
|
maxErrorRate: 1
|
|
|
|
|
|
|
|
phases:
|
2020-12-22 04:42:47 +01:00
|
|
|
- duration: 100
|
|
|
|
arrivalRate: 15
|
2020-07-16 06:23:41 +02:00
|
|
|
ws:
|
|
|
|
subprotocols:
|
|
|
|
- json
|
|
|
|
headers:
|
|
|
|
Connection: Upgrade
|
|
|
|
Origin: http://localhost:8080
|
|
|
|
Sec-WebSocket-Version: 13
|
|
|
|
scenarios:
|
|
|
|
- engine: "ws"
|
|
|
|
flow:
|
|
|
|
- function: "createTestMessageObject"
|
|
|
|
- send: "{{ data }}"
|
2020-12-22 04:42:47 +01:00
|
|
|
- think: 10
|