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
4
283
July 17, 2024
How to know if test failed or passed from the TestScript tab
Help Hub
tests
3
8333
February 16, 2022
Adding PASSED/FAILED to a variable from Test Result
Help Hub
tests
,
variables
,
test-results
2
53
March 27, 2025
Postman test - How to fetch failure count
Help Hub
documentation
,
tests
,
collections
6
3533
December 12, 2024
Postman test scripts are ignored when inside a try/catch
Help Hub
tests
,
collections
3
525
February 9, 2024