🧠 Convert Postman collections into powerful k6 load test scripts — automatically.
No rewrites. No duct tape. Just pure Python + performance clarity.
⭐ View on GitHub
🚀 What Does gk6 Actually Do?
gk6 reads your Postman collection and:
- 🌪️ Detects pm.environment.set() like a bloodhound on Red Bull
- 🔗 Follows variable chaining across tests and folders
- 🧬 Converts to __ENV. or chained values for k6
- 📊 Adds Trend metrics + response checks for every request
- ⚙️ Outputs clean, executable .js files and optional .env config
⚠️ Known Limitations
- ❌ No support (yet) for GraphQL requests
- 🧱 Doesn’t currently handle pm.globals.set()
- 🌪️ Assumes all requests are RESTful and JSON-friendly
- 🔗 Variable chaining that spans multiple levels may not fully resolve
- 👻 If your Postman script is a spaghetti monster — it’ll still be spaghetti in k6
🚀 Quick Usage
bash
python gk6.py
–collection my_collection.json
–environment my_env.json
–select 1,2,3
–output test_script.js
k6 run test_script.js
Got questions or feedback? Raise an issue — or better yet, a PR 😎