usebruno / bruno

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

"Headers" verifications is not translated properly from Postman to Bruno #3589

Open SravaniPady5 opened 16 hours ago

SravaniPady5 commented 16 hours ago

Test_bruno_migration.postman_collection.json

I have checked the following:

Describe the bug

When importing postman collection, the collection level tests and scripts were partially translated.

When we want to verify the Headers section of the response then it should have "to.have.property" method but we have to.equal method Expected: expect(res.getHeaders()).to.have.property("content-type"); Actual: expect(res.getHeader()).to.equal("content-type");

Due to this issue tests are getting failed. Please find the attached screenshot

image

image

.bru file to reproduce the bug

No response

Screenshots/Live demo link

image

image

SravaniPady5 commented 16 hours ago

Added sample Bruno Collection . Please update request keyword to req as well

ganesh-bruno commented 11 hours ago

Hey @SravaniPady5 ,

Thanks for reporting this issue.

I'm was able to reproduce it on my end, and we're working on it.