loadtest
Version:
Run load tests for your web application. Mostly ab-compatible interface, with an option to force requests per second. Includes an API for automated load testing.
14 lines (11 loc) • 296 B
JavaScript
/**
* Sample post-file content for test.
* Contains a single exported function that generates the body.
*/
export default function bodyGenerator(requestId) {
// this object will be serialized to JSON and sent in the body of the request
return {
key: 'value',
requestId: requestId
}
}