Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
scenario.yml
Started phase 0 (Ramping up the load), duration: 1s @ 13:06:44(+0300) 2020-08-17
Login users 9000 on server
Report @ 13:06:49(+0300) 2020-08-17
Elapsed time: 4 seconds
Scenarios launched: 1
Scenarios completed: 1
Requests completed: 3
Mean response/sec: 0.86
Response time (msec):
min: 0.8
max: 1434.4
median: 3.2
p95: 1434.4
p99: 1434.4
Codes:
0: 3
All virtual users finished
Summary report @ 13:06:49(+0300) 2020-08-17
Scenarios launched: 1
Scenarios completed: 1
Requests completed: 3
Mean response/sec: 0.86
Response time (msec):
min: 0.8
max: 1434.4
median: 3.2
p95: 1434.4
p99: 1434.4
Scenario counts:
Scenario login user and get user params: 1 (100%)
Codes:
0: 3
Log file: result.json
ensure condition failed: ensure.p95 < 200
config:
target: "https://testing.ros.chat:8080"
ensure:
maxErrorRate: 1
socketio:
transports: ["websocket"]
phases:
- duration: 1 # Test for 60 seconds
arrivalRate: 1 # Every second, add 10 users
maxVusers: 1
#rampTo: 10 # And ramp it up to 100 users in total over the 60s period
name: "Ramping up the load"
ws:
# Ignore SSL certificate errors
# - useful in *development* with self-signed certs
rejectUnauthorized: false
payload:
path: "./users.csv"
fields:
- "login"
- "password"
- "level"
skipHeader: true
order: sequence
scenarios:
- name: "send headers"
enfine: ws
flow:
- get:
url: "/socket.io/?EIO=3&transport=websocket"
headers:
Accept-Header: "*/*"
Accept-Encoding: "gzip, deflate, sdch, br"
Accept-Language: "ru,en;q=0.9"
User-Agent: "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 YaBrowser/20.4.3.268 (beta) Yowser/2.5 Safari/537.36"
- name: "Scenario login user and get user params"
engine: socketio
flow:
- log: "Login users {{ login }} on server"
- emit:
channel: "login"
data: {"login":"{{ login }}","password":"{{ password }}","APILevel":"{{ level }}"}
acknowledge:
match:
json: "$.0.status"
value: "ok"
- emit:
channel: "get-user-info"
data: null
acknowledge:
match:
- json: "$.0.extParams.httpServer"
value: "testing.ros.chat:80"
- json: "$.0.extParams.stunServer"
value: "testing.ros.chat:3478"
- json: "$.0.extParams.locationsRev"
value: "1"
- emit:
channel: "get-user-params"
data: null
acknowledge:
match:
- json: "$.0.httpServer"
value: "testing.ros.chat:80"
- json: "$.0.stunServer"
value: "testing.ros.chat:3478"
- json: "$.0.locationsRev"
value: "1"
- think: 5
- emit:
channel: "logout"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment