Load testing with Postman collections
Postman is one of the best-in-market tools for functional testing of APIs. As a Postman user, you organize your API tests into collections of requests.
Load Impact provides a CLI tool for converting Postman collections to k6 tests.
Installation and usage
The following section describes the steps to convert your Postman collections to k6 tests.
First, you have to export your Postman collections.
Install the command-line tool:
npm install -g postman-to-k6
For more installation options see the Github repo.
Run the tool to convert the Postman collection
postman-to-k6 path/to/postman-collection.json -o path/to/k6-script.js