Converts Postman collections into k6 script code for performance and load testing.
Postman-to-k6 is a Node.js tool that converts Postman collections into k6 script code. It translates API tests defined in Postman into performance test scripts that can be executed with k6, enabling developers to reuse their existing Postman workflows for load testing. This eliminates the need to manually rewrite tests and streamlines the transition from functional API testing to performance validation.
Developers, QA engineers, and DevOps teams who use Postman for API testing and want to integrate performance testing with k6 without recreating their test suites.
It saves time by automating the conversion of Postman collections to k6 scripts, supports most Postman features, and allows teams to leverage existing API tests for performance testing. The tool is open-source, supports Docker, and integrates seamlessly into CI/CD pipelines.
Converts Postman collections to k6 script code
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Converts pre-request and test scripts, including variables at all scopes and dynamic variables, as detailed in the Features section.
Supports all Postman Schema versions and most authentication methods (except Hawk), ensuring wide coverage for existing collections.
Available as a Docker image and supports data parameterization, making it easy to integrate into consistent testing environments and pipelines.
Handles data files in CSV and JSON formats, enabling data-driven testing in converted k6 scripts, as shown in the Options section.
Development has stopped in this repository, with maintenance moved to a fork, which risks fragmentation and long-term support issues.
Key Postman functionalities like pm.sendRequest and postman.setNextRequest are unsupported, limiting complex, script-driven test scenarios.
Some pm.* and postman.* interface properties, such as responseCode.name and cookie properties, are not implemented, affecting detailed validation.