You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Question : I need to return a custom exit code from newman in my shell script which can be set from Postman request based on some specific status code ?
In my requirement, while running a test collection through newman from shell script, I need to know by which status code does the test collection fails. One method I can think of is to manually set the exit code in test collection from postman, so that in shell script by using the exit code I can identify the status code by which it failed.
Can this be done from postman?
The text was updated successfully, but these errors were encountered:
I have one idea - what if you set your info in a variable, configure Newman to export variables, read that (maybe simply process unique string presence in the exported file), then delete the exported file and use the result as exit code.
Question : I need to return a custom exit code from newman in my shell script which can be set from Postman request based on some specific status code ?
In my requirement, while running a test collection through newman from shell script, I need to know by which status code does the test collection fails. One method I can think of is to manually set the exit code in test collection from postman, so that in shell script by using the exit code I can identify the status code by which it failed.
Can this be done from postman?
The text was updated successfully, but these errors were encountered: