Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export Collection as Postman Collection #2496

Closed
2 tasks done
thannebauer opened this issue Jun 21, 2024 · 2 comments · Fixed by #3025
Closed
2 tasks done

Export Collection as Postman Collection #2496

thannebauer opened this issue Jun 21, 2024 · 2 comments · Fixed by #3025
Labels
bug Something isn't working

Comments

@thannebauer
Copy link

I have checked the following:

  • I use the newest version of bruno.
  • I've searched existing issues and found nothing related to my issue.

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:

  • request.url.protocol element is missing for "fix URL"
  • request.url.path is exported as empty array by bruno, but filled by postman
  • request.url.host is empty for "Test Variable URL"

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
Copy link

akhot09 commented Jul 2, 2024

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": []

@helloanoop
Copy link
Contributor

I have merged the PR that fixes this issue, it will be available in the the upcoming release v1.30.0 that is scheduled to go out in the next couple of days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
3 participants