Subject: Bug Report: Incomplete Response When Using pm.sendRequest in Test Script #2118
Unanswered
Waspish
asked this question in
Bug Reports
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Bug Description:
I encountered an issue when using pm.sendRequest in a test script within Postman. It seems that the response generated by the request executed with pm.sendRequest is not captured or displayed correctly in the Allure report.
Steps to Reproduce:
Create a Postman collection with a test script that includes pm.sendRequest to execute an additional request.
Include assertions within the pm.sendRequest callback function to validate the response.
Run the collection and generate an Allure report.
Expected Behavior:
The Allure report should accurately display the response details, including the status code, headers, and body, for all executed requests, including those made with pm.sendRequest. The test assertions within the pm.sendRequest callback function should be captured and reported appropriately.
Actual Behavior:
The Allure report does not display the response details for requests made with pm.sendRequest. As a result, it is challenging to verify the correctness of the responses and to report on the success or failure of these requests in the Allure report.
VIDEO - https://gyazo.com/ce7fad28c34c17f601b29d97aa1c40ef
Beta Was this translation helpful? Give feedback.
All reactions