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

Open
2 tasks done
thannebauer opened this issue Jun 21, 2024 · 0 comments
Open
2 tasks done

Export Collection as Postman Collection #2496

thannebauer opened this issue Jun 21, 2024 · 0 comments
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

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
Development

No branches or pull requests

1 participant