usebruno / bruno

Opensource IDE For Exploring and Testing Api's (lightweight alternative to postman/insomnia)
https://www.usebruno.com/
MIT License
24.47k stars 1.12k forks source link

Export Collection as Postman Collection #2496

Open thannebauer opened 2 months ago

thannebauer commented 2 months ago

I have checked the following:

Describe the bug

When exporting an Collection as Postman Collection and importing it in Postman, the URL is broken. URL "https://github.com/usebruno/bruno/issues/new?assignees=&labels=bug&projects=&template=BugReport.yaml" is imported in Postman as "github.com/?assignees=&labels=bug&projects=&template=BugReport.yaml" URL "{{apiurl}}\somewhere\somehow?param1=123" (apiurl is variable from environment) is imported as "/"

Comparing both Postman Json collections I find these main differences:

After fixing this for testing purpose, I could import the collection with correct URLs in Postman.

In addition an empty request named "bruno" is ex- and imported. This is caused by an additional empty element: { "name": "bruno", "event": [] },

compare_json_collections

.bru file to reproduce the bug

Bruno collection: Sandbox.zip

exported Postman collection: Sandbox.json

Same collection content exported from Postman: Postman-Sandbox.postman_collection.json

Screenshots/Live demo link

Postman after import: image image image What I have exported from Bruno image image

akhot09 commented 1 month ago

Even I have faced same issue and noticed all of above issues noted in screen shot by @thannebauer. Eagerly looking for this option as it's creating an additional manual work before importing into Postman API client and also impacts collection run when performed from Newman CLI.

Along with above noted issues even below parameter is missing for each of API request. "response": []