Postman Community
How can I extract the pass/fail tests results
Help Hub
tests
,
extract
pageorge
(Pierre-Aurélien)
February 16, 2022, 6:01pm
7
The solution is simple : just use a try {…} catch {…} pattern
See example
here
.
show post in topic
Related topics
Topic
Replies
Views
Activity
Get TestResults value PASSED/FAILED saved in a variable
Help Hub
tests
,
test-results
3
316
June 17, 2024
How to know if test failed or passed from the TestScript tab
Help Hub
tests
3
8402
February 16, 2022
Adding PASSED/FAILED to a variable from Test Result
Help Hub
tests
,
variables
,
test-results
2
90
March 27, 2025
Postman test - How to fetch failure count
Help Hub
documentation
,
tests
,
collections
5
3610
October 12, 2023
Postman test scripts are ignored when inside a try/catch
Help Hub
tests
,
collections
2
570
January 10, 2024