k6-examples
postman-to-k6
k6-examples | postman-to-k6 | |
---|---|---|
1 | 2 | |
1 | 207 | |
- | 2.4% | |
1.8 | 6.1 | |
over 2 years ago | about 1 month ago | |
JavaScript | JavaScript | |
- | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
k6-examples
-
Creating Load Tests with k6
For running the tests we will use the following repository on GitHub.
postman-to-k6
-
Hurl 4.0.0
Have you tried https://k6.io/ ? (Full disclosure: I'm one of the maintainers.)
It allows you to write load/performance tests in JS, commit them to your repo, easily automate them in CI, send metrics to several backends, use protocols besides HTTP, with a modern CLI, and many more features.
There's also a Postman-to-k6 converter[1]. The conversion might not be perfect, but it will give you a head start.
Note that the k6 philosophy is for developers to write these tests, similarly to how you write unit/integration tests, and to break the classic QA-dev cycle.
I don't want to steal Hurl's thunder, it does look great, but it's limited in features compared to existing peformance testing tools, and I'd personally rather write tests in a programming language, than in a bespoke text format.
[1]: https://github.com/apideck-libraries/postman-to-k6
- Currently I'm using newman/postman to run my API tests but I'm reaching a ceiling. I'm considering re-writing all of my scripts with pure JS w/ Node.JS and then testing with JMeter. Do you think this is a good approach?
What are some alternatives?
artillery - The complete load testing platform. Everything you need for production-grade load tests. Serverless & distributed. Load test with Playwright. Load test HTTP APIs, GraphQL, WebSocket, and more. Use any Node.js module.
har-to-k6 - JSON config representation of K6 script
xk6-sql - k6 extension to load test RDBMSs (PostgreSQL, MySQL, MS SQL and SQLite3)
Newman - Newman is a command-line collection runner for Postman
k6-reporter - Output K6 test run results as formatted & easy to read HTML reports
openapi-to-postman - Plugin for converting OpenAPI 3.0 specs to the Postman Collection (v2) format
postman-to-k6 - Converts Postman collections to k6 script code
restclient.el - HTTP REST client tool for emacs
alien - A programmable web server stress testing and benchmarking tool
hurl - Hurl, run and test HTTP requests with plain text.
example-github-actions - A example repository using GH Actions to automate performance tests with StormForger
Schemathesis - Supercharge your API testing, catch bugs, and ensure compliance