Created
August 23, 2016 10:09
-
-
Save levent/f35ef2031484747e7d72712c210eb038 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"config": { | |
"target": "http://localhost:5000", | |
"phases": [ | |
{"duration": 5, "arrivalRate": 4} | |
], | |
"processor": "./targetModifier.js" | |
}, | |
"scenarios": [ | |
{ | |
"flow": [ | |
{"post": { "url": "/token", "json": {"id": "user{{ $randomNumber(1, 2000) }}", "afterResponse": "modifyTargetToIncludeToken"}}} | |
] | |
}, | |
{ | |
"engine": "socketio", | |
"flow": [ | |
{"think": 1}, | |
{"emit": { "channel": "echo", "data": "hello world" }}, | |
{"think": 1} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment