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
192
July 17, 2024
Postman test scripts are ignored when inside a try/catch
Ask the Experts and Postman Tips
tests
,
collections
3
419
February 9, 2024
Extract JSON string from response body into Test Results
Ask the Experts and Postman Tips
tests
4
247
September 11, 2024
Tests "pass" after a failed assertion
Ask the Experts and Postman Tips
tests
6
186
June 12, 2024
Get all pm.test names
Ask the Experts and Postman Tips
new-feature
2
45
January 5, 2025