postman-to-k6
har-to-k6
postman-to-k6 | har-to-k6 | |
---|---|---|
1 | 2 | |
256 | 117 | |
- | 0.9% | |
5.4 | 7.0 | |
over 2 years ago | about 1 month ago | |
JavaScript | JavaScript | |
Apache License 2.0 | 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.
postman-to-k6
har-to-k6
-
Using mitmproxy with k6
The next step is already the target conversion of the HAR format file to k6 script. For this we use script provided in Grafana's repository.
-
Load testing is hard, and the tools are not great. But why?
I agree that the popular load testing tools leave plenty to be desired, but have you given k6[1] a try? (Full disclosure: I'm one of the maintainers.)
Tests are written in JavaScript and there's support for HTTP, WebSockets and (unary) gRPC. You can easily script a combination of these protocols to mimic real world traffic.
Furthermore you can record a user flow with a browser extension[2] and convert the generated HAR file to a k6 script[3], which would give you an even closer real world scenario. The conversion is not perfect and depending on the service you might need to manually modify the script, but it would get you 90% of the way there.
[1]: https://github.com/loadimpact/k6
[2]: https://k6.io/docs/test-authoring/recording-a-session/browse...
[3]: https://github.com/loadimpact/har-to-k6
What are some alternatives?
Newman - Newman is a command-line collection runner for Postman
Vegeta - HTTP load testing tool and library. It's over 9000!
xk6-sql - k6 extension to load test RDBMSs (PostgreSQL, MySQL, MS SQL and SQLite3)
tsung - Tsung is a high-performance benchmark framework for various protocols including HTTP, XMPP, LDAP, etc.
xk6-kafka - k6 extension to load test Apache Kafka with support for various serialization formats, SASL, TLS, compression, Schema Registry client and beyond
postman-to-k6 - Converts Postman collections to k6 script code
postman-collection - Javascript module that allows a developer to work with Postman Collections
shadowreader - Serverless load testing for replaying website traffic. Powered by AWS Lambda.
example-github-actions - A example repository using GH Actions to automate performance tests with StormForger
wayback - A bot for Telegram, Mastodon, Slack, and other messaging platforms archives webpages.
k6-examples - Project using K6 and Javascript to create scenarios of Load and Stress Test
ecommerce-micro-services - A basic demo to showcase micro service architecture using NodeJs, Express and MongoDB and the way they can communicate between each other.