Hi,
I am new to postman, so please forgive me if I’m asking a dumb question.
I have a postman request.
It runs.
I have stuff in the request test section where I have coded several tests.
If any of these tests fail, I get an assertion error reported at the end.
However, the request itself is not marked as a failure.
How do I cause a request to be marked as a failure?
I not talking about another assertion failure, but a request failure.
The following test is being run thru newman.
As you can see I have two assertion errors.
But the request is still marked as a success.
If this isn’t possible; I won’t like it, but I will have an answer.
Thanks
| | executed | failed |
--------------------------±----------------------±-----------------------
| iterations | 1 | 0 |
--------------------------±----------------------±-----------------------
| requests | 2 | 0 |
--------------------------±----------------------±-----------------------
| test-scripts | 4 | 0 |
--------------------------±----------------------±-----------------------
| prerequest-scripts | 4 | 0 |
--------------------------±----------------------±-----------------------
| assertions | 2 | 0 |
total run duration: 4m 0.9s |
---|
total data received: 477B (approx) |
average response time: 2m 0.3s [min: 5.3s, max: 3m 55.3s, s.d.: 1m 55s] |
---|