# Collection Runner not marking a failure as failed

**URL:** <https://community.postman.com/t/collection-runner-not-marking-a-failure-as-failed/2368>\
**Category:** Help Hub\
**Tags:** collections\
**Created:** [August 13, 2018, 10:35am UTC](https://community.postman.com/t/collection-runner-not-marking-a-failure-as-failed/2368 "2018-08-13T10:35:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![quinnj09](https://avatars.discourse-cdn.com/v4/letter/q/a698b9/32.png) [@quinnj09](https://community.postman.com/u/quinnj09)\
**Post date:** [August 13, 2018, 10:35am UTC](https://community.postman.com/t/collection-runner-not-marking-a-failure-as-failed/2368/1 "2018-08-13T10:35:23Z")

</div>

When using collection runner, if my backend server is rebooted, and the request fails because the server is being rebooted, the request is not marked as failed but I see the message ‘An error occured while running this request. Open DevTools for more info.’  
How can I get collection runner to mark these as failed?

---

<div class="post-metadata">

**Author:** ![tmccann](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/tmccann/32/3550_2.png) [@tmccann](https://community.postman.com/u/tmccann)\
**Post date:** [August 14, 2018, 1:45pm UTC](https://community.postman.com/t/collection-runner-not-marking-a-failure-as-failed/2368/2 "2018-08-14T13:45:54Z")

</div>

@quinnj09 Maybe adding in an assertion for the status code would help in these cases? I assume you would get back a 5XX error if the service is down.  
So in this case I assume you are doing a positive test and expect a 2XX code, so if its anything but that, it will fail the assertion and fail the test.

Hope this helps.

---

<div class="post-metadata">

**Author:** ![quinnj09](https://avatars.discourse-cdn.com/v4/letter/q/a698b9/32.png) [@quinnj09](https://community.postman.com/u/quinnj09)\
**Post date:** [August 22, 2018, 3:46pm UTC](https://community.postman.com/t/collection-runner-not-marking-a-failure-as-failed/2368/3 "2018-08-22T15:46:58Z")

</div>

I have tried putting in a test to see is the response is status code 200, but and I clicked run, it ran 4 times, but says 0 passed and 0 failed.  
If I do it when the server is online, it passes, so i know the test is fine, its seems to me that collection runner cannot handle the fact the end server is not available at all.

---

<div class="post-metadata">

**Author:** ![singhsivcan](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/singhsivcan/32/1595_2.png) [@singhsivcan](https://community.postman.com/u/singhsivcan)\
**Post date:** [August 22, 2018, 4:37pm UTC](https://community.postman.com/t/collection-runner-not-marking-a-failure-as-failed/2368/4 "2018-08-22T16:37:04Z")

</div>

The count for failure is only for test-failures i.e whether the tests failed or not.  
However, we’re working on improving on conveying this information to the user by differentiating between the ‘failed’ tests cases and the ‘requests’ that actually ‘errored’ out (i.e the request failed to execute itself)

Also, the ability to keep the runner running irrespective of errors is already feature request on github.

> <https://github.com/postmanlabs/postman-app-support/issues/3360>
>
> \## App Details:
> \`\`\`
> Postman for Windows
> Version 5.1.3
> win32 10.0.14393 / x64…
> \`\`\`
> 
> \## Issue Report:
> 1. Did you encounter this recently, or has this bug always been there:
> always there
> 2. Expected behaviour:
> The runner should keep going through tests even when a simple error arrises.
> 3. Actual behavior:
> If we make a call that results in an html error page (normal html page, starts with \<!DOCTYPE html\>), the runner just stops dead in it's tracks and logs in the devtools "unexpected token". It's very frustrating when I have a run that's been going for a while and an error comes up that stops the runner before it's finished and I have to start over. This error should not stop the runner. I could understand it logging the error, stating that there was an error, and then skipping that call, but the runner should not stop. I have logic in my runner tests that deal with this error, however it's useless since the runner itself won't let it continue.
> 
> This also happens if it's searching for (in my case) "\_id" and it's not there. This rarely stops it, but every once in a while it does.
> 
> !\[image\](https://user-images.githubusercontent.com/16259311/29090159-a686fb98-7c4c-11e7-8944-d25a386311c1.png)
