This application helps you perform your load testing on Loader.io by
- sequentially executing prepared tests with the same duration,
- extracting test results from current run, and
- writing to a CSV file for further analysis.
- assumes all tests have the same duration
- includes a buffer time between running the next test (you could change the core functions to check for the status before running subsequent tests)
- Fork and clone this repository.
- Install dependencies
$ npm install
- Create a
.env
file with your Loader.io API key. An example file has been provided. You can find your API key in Settings > API. - Update
index.js
file with your test configurations.
duration
is the duration of your test cases.buffer
is a buffer time between when the next test case runs. This is important, as Loader.io does not allow for more than one running test at once.
- Ensure your application is running as Loader.io will need to verify your token.
- Run to start tests. Application will retrieve all your tests for you so you don't have to input your test name and test id.
node index.js
- A CSV file will be created once finished.
More information about Loader.io's API documentation can be found here.