Closed ShilAggarwal closed 7 years ago
@ShilAggarwal Newman exits with a non-zero status code on failures, so if your collection has failed tests or request errors, your Jenkins build will fail. You can use --suppress-exit-code
option to ensure that Newman always exits with an exit code of zero.
@ShilAggarwal To add to what @czardoz has said, you'll also have to update the last part of your newman run ...
command to: --reporter-json-export ./outputfile.json
. All CLI options begin with one or more -
, so reporter-json-export
is invalid.
@ShilAggarwal Does this issue persist for you?
@ShilAggarwal Closing issue due to inactivity, feel free to re-open if you're experiencing difficulties.
newman -v
): 3.3.0Running command : newman run test_collection.json -e test_environment.json -d test_data.csv --reporters json reporter-json-export ./outputfile.json Getting error : Build step 'Execute shell' marked build as failure