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

Issues noticed exported collection when exported as Postman Collection #2550

Open
2 tasks done
akhot09 opened this issue Jul 2, 2024 · 1 comment
Open
2 tasks done
Labels
bug Something isn't working

Comments

@akhot09
Copy link

akhot09 commented Jul 2, 2024

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 we perform export from Bruno API client, using option as "Export" --> "Postman Collection" noticed following issues in exported file:

  1. Sequence of API requests is not maintained as arranged in API client, rather its exported in alphabetical order which is not correct. As a part of chaining of requests we made need to run API call 1 first and then API call 2 due to dependency of data. If now post export - if API call 2 is documented before API call 1 then when run via Postman API client or Newman CLI, scripts will fail as sequence is not correct.
    image
    As per screen shot, "ping" is first request in collection/collection folder but when we perform "Export" ---> "Postman Collection" the "ping" API request has been sequenced in last due to alphabetical order.
  2. Also, "auth" JSON object/ JSON parameter is missing from exported file- (i.e. exported using option "Export" - "Postman Collection") across all API request wherein Auth is selected as "Bearer Token" for each of API request.
  3. Also, all issues mentioned / captured in below ticket are also reproducible in exported file (wherein file is exported as "Postman Collection" from Bruno API client)
    Export Collection as Postman Collection #2496

.bru file to reproduce the bug

NA

Screenshots/Live demo link

NA

@akhot09 akhot09 added the bug Something isn't working label Jul 2, 2024
@Oliver-Piorun
Copy link

Oliver-Piorun commented Jul 5, 2024

Sequence of API requests is not maintained as arranged in API client, rather its exported in alphabetical order which is not correct. As a part of chaining of requests we made need to run API call 1 first and then API call 2 due to dependency of data. If now post export - if API call 2 is documented before API call 1 then when run via Postman API client or Newman CLI, scripts will fail as sequence is not correct.

Can confirm. Simply saving requests will also reorder them in alphabetical order for me. It looks like v1.20.1 introduced the issue I mentioned. Your issue has to be a different one since you created the issue before v1.20.1 was released.

Greetings 😊

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

2 participants