2020-09-09 12:32:01 +02:00
|
|
|
config:
|
|
|
|
target: "http://api.workadventure.localhost/"
|
|
|
|
socketio:
|
|
|
|
transports: ["websocket"]
|
|
|
|
query:
|
|
|
|
token: "test"
|
|
|
|
phases:
|
2020-09-11 09:56:05 +02:00
|
|
|
- duration: 20
|
|
|
|
arrivalRate: 2
|
2020-09-09 12:32:01 +02:00
|
|
|
processor: "./socketioLoadTest.js"
|
|
|
|
scenarios:
|
2020-09-11 09:56:05 +02:00
|
|
|
- name: "Connects and moves player for 20 seconds"
|
2020-09-09 12:32:01 +02:00
|
|
|
weight: 90
|
|
|
|
engine: "socketio"
|
|
|
|
flow:
|
|
|
|
- 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
|
2020-09-11 09:56:05 +02:00
|
|
|
- think: 0.2
|
|
|
|
count: 100
|
2020-09-09 12:32:01 +02:00
|
|
|
- think: 10
|