Create config file artillery websocket
This commit is contained in:
parent
4226453364
commit
d4fe59d154
5 changed files with 1389 additions and 18 deletions
50
back/socketio-load-test.yaml
Normal file
50
back/socketio-load-test.yaml
Normal file
|
@ -0,0 +1,50 @@
|
|||
config:
|
||||
target: "http://api.workadventure.localhost/"
|
||||
socketio:
|
||||
transports: ["websocket"]
|
||||
query:
|
||||
token: "test"
|
||||
phases:
|
||||
- duration: 10
|
||||
arrivalRate: 10
|
||||
- duration: 10
|
||||
arrivalRate: 10
|
||||
processor: "./socketioLoadTest.js"
|
||||
scenarios:
|
||||
- name: "Connect and send a bunch of messages"
|
||||
weight: 90
|
||||
engine: "socketio"
|
||||
flow:
|
||||
#- loop:
|
||||
#- emit:
|
||||
# channel: "connection"
|
||||
# data: "hello world!"
|
||||
#- think: 5
|
||||
- emit:
|
||||
channel: "set-player-details"
|
||||
data:
|
||||
name: 'TEST'
|
||||
characterLayers: ['male3']
|
||||
- think: 1
|
||||
- emit:
|
||||
channel: "join-room"
|
||||
data:
|
||||
roomId: 'global__api.workadventure.localhost/map/files/Floor0/floor0'
|
||||
position:
|
||||
x: 783
|
||||
y: 170
|
||||
direction: 'down'
|
||||
moving: false
|
||||
- think: 1
|
||||
- loop:
|
||||
- function: "setYRandom"
|
||||
- emit:
|
||||
channel: "user-position"
|
||||
data:
|
||||
x: "{{ x }}"
|
||||
y: "{{ y }}"
|
||||
direction: 'down'
|
||||
moving: false
|
||||
- think: 1
|
||||
count: 10
|
||||
- think: 10
|
Loading…
Add table
Add a link
Reference in a new issue