45 lines
1.0 KiB
YAML
45 lines
1.0 KiB
YAML
config:
|
|
target: "http://api.workadventure.localhost/"
|
|
socketio:
|
|
transports: ["websocket"]
|
|
query:
|
|
token: "test"
|
|
phases:
|
|
- duration: 20
|
|
arrivalRate: 3
|
|
processor: "./socketioLoadTest.js"
|
|
scenarios:
|
|
- name: "Connects and moves player for 20 seconds"
|
|
weight: 90
|
|
engine: "socketio"
|
|
flow:
|
|
- emit:
|
|
channel: "set-player-details"
|
|
data:
|
|
name: 'TEST'
|
|
characterLayers: ['male3']
|
|
- think: 1
|
|
- emit:
|
|
channel: "join-room"
|
|
data:
|
|
roomId: 'global__maps.workadventure.localhost/Floor0/floor0'
|
|
position:
|
|
x: 783
|
|
y: 170
|
|
direction: 'down'
|
|
moving: false
|
|
viewport:
|
|
left: 500
|
|
top: 0
|
|
right: 800
|
|
bottom: 200
|
|
- think: 1
|
|
- loop:
|
|
- function: "setUserMovesMessage"
|
|
- emit:
|
|
channel: "user-position"
|
|
data: "{{ message }}"
|
|
- think: 0.2
|
|
count: 100
|
|
- think: 10
|