Postman Community
How can I extract the pass/fail tests results
Ask the Experts and Postman Tips
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
Ask the Experts and Postman Tips
tests
,
test-results
4
220
July 17, 2024
Postman test scripts are ignored when inside a try/catch
Ask the Experts and Postman Tips
tests
,
collections
3
439
February 9, 2024
Extract JSON string from response body into Test Results
Ask the Experts and Postman Tips
tests
4
327
September 11, 2024
Adding PASSED/FAILED to a variable from Test Result
Ask the Experts and Postman Tips
tests
,
variables
,
test-results
2
24
March 27, 2025
Tests "pass" after a failed assertion
Ask the Experts and Postman Tips
tests
6
217
June 12, 2024