https://github.com/postmanlabs/load-testing
Load testing with AWS lambda and node
https://github.com/postmanlabs/load-testing
Last synced: 3 months ago
JSON representation
Load testing with AWS lambda and node
- Host: GitHub
- URL: https://github.com/postmanlabs/load-testing
- Owner: postmanlabs
- Fork: true (loopDelicious/load-testing)
- Created: 2018-10-30T21:57:07.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-08-29T23:04:43.000Z (over 3 years ago)
- Last Synced: 2024-09-29T18:21:42.657Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 5.87 MB
- Stars: 10
- Watchers: 6
- Forks: 6
- Open Issues: 25
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### From this blog post: Don’t get TechCrunched: [performance testing for your HTTP APIs](https://medium.com/postman-engineering/dont-get-techcrunched-performance-testing-for-your-http-apis-3196e40f6b70)
Using AWS Lambda to run concurrent functions with Newman
### Get Started
Install dependencies
$ npm install
Run script from the command line
$ node loadTest.js
Your Postman collection can be exported as a JSON file and run from your local file system, as in this example here. Alternatively, you can use the [Postman API](https://docs.api.getpostman.com/) to access the latest version of your collection. The second approach is recommended if you plan to update the collection more frequently.
The handler function is defined in `index.js` if you're uploading this script to AWS Lambda. Zip up the required files and dependencies.
$ node run zip
---
[Example script](https://github.com/postmanlabs/newman/blob/develop/examples/parallel-collection-runs.js) is taken from the [Newman open source project](https://github.com/postmanlabs/newman).