rocket is a simple stress-testing API for Node.js applications, made with socket.io.
npm install -d
To use rocket you have to configure the file named 'conf.json' in the lib repository like that:
-
create an empty json object.
{}
-
add your target. i.e the url of the application to test with rocket. It could be a local url.
{ "target": "http://example.com" }
-
then, add client profiles tab.
{ "target": "http://example.com", "profiles": [] }
this profile tab contain all kind of clients you need to simulate.
-
create a client profile.
{ "start": { "event": "name_start_event", //name of the event which will start the application "data": {} //data to sent with start event }, "checkpoints": ["name_checkpoint1", "name_checkpoint2", ...], //checkpoints event received by the server side "stop": "name_stop_event", //received event which will stop the client "counter": 10 //number of clients }
-
example config file
{ "target": "http://example.com", "profiles": [ //client profile { "start": { "event": "name_start_event", //name of the event which will start the application "data": {} //data to sent with start event }, "checkpoints": ["name_checkpoint1", "name_checkpoint2", ...], //checkpoints event received by the server side "stop": "name_stop_event", //received event which will stop the client "counter": 10 //number of clients }, //client profile { "start": { "event": "name_start_event", //name of the event which will start the application "data": {} //data to sent with start event }, "checkpoints": ["name_checkpoint1", "name_checkpoint2", ...], //checkpoints event received by the server side "stop": "name_stop_event", //received event which will stop the client "counter": 5 //number of clients } ] }
-
run rocket
node lib/rocket.js -f
not available yet.
Copyright (c) 2014 Guillaume Baudusseau MIT
I especially would like to thank deniak and tripu for helping me to find a wonderful name for a wonderful tool.