# How to capture test case status(Pass/Fail) in global variable

**URL:** <https://community.postman.com/t/how-to-capture-test-case-status-pass-fail-in-global-variable/27093>\
**Category:** Help Hub\
**Tags:** newman-project, tests, variables, collections, json\
**Created:** [August 24, 2021, 6:36pm UTC](https://community.postman.com/t/how-to-capture-test-case-status-pass-fail-in-global-variable/27093 "2021-08-24T18:36:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SachinGupta88](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/sachingupta88/32/14393_2.png) [@SachinGupta88](https://community.postman.com/u/SachinGupta88)\
**Post date:** [August 24, 2021, 6:36pm UTC](https://community.postman.com/t/how-to-capture-test-case-status-pass-fail-in-global-variable/27093/1 "2021-08-24T18:36:13Z")

</div>

_How to capture test case status(Pass/Fail) in global variable_:

_Details_: Actually I want to retry only failed test cases, hence I need the status of failed test case to re-run again, please suggest the approach to achieve this(re-run test case if any test case failed with assertion)
