OS details (type, version, and architecture): MacBook Pro - M1
Are you using Newman as a library, or via the CLI? : CLI
Did you encounter this recently, or has this bug always been there: Trying this flow the first time.
Expected behavior: I am Expecting that after the collection is run completely, then the --export-global should get overridden by the existing file which is saved with the same name. So that it would be easy to run on the next iteration.
Command/script used to run Newman:
newman run collections.postman_collection.json -e env.postman_environment.json -g globals.postman_globals.json --export-globals ./globals.postman_globals.json -r htmlextra --reporter-htmlextra-export ./TestReport.html
If you would notice, then you see that "globals.postman_globals.json" and "--export-globals ./globals.postman_globals.json" have the same file name, and I was expecting that the Initial Values would get persists with the current values and the Values would override. but, this didn't happen.
However, I would like to say that if the file name is changed then everything would be working as expected.
Note: This is also same behaviour for --export-collectionsand --export-enviroments.
Newman Version: 5.3.2
OS details (type, version, and architecture): MacBook Pro - M1
Are you using Newman as a library, or via the CLI? : CLI
Did you encounter this recently, or has this bug always been there: Trying this flow the first time.
Expected behavior: I am Expecting that after the collection is run completely, then the --export-global should get overridden by the existing file which is saved with the same name. So that it would be easy to run on the next iteration.
Command/script used to run Newman:
newman run collections.postman_collection.json -e env.postman_environment.json -g globals.postman_globals.json --export-globals ./globals.postman_globals.json -r htmlextra --reporter-htmlextra-export ./TestReport.html
If you would notice, then you see that
"globals.postman_globals.json"
and"--export-globals ./globals.postman_globals.json"
have the same file name, and I was expecting that the Initial Values would get persists with the current values and the Values would override. but, this didn't happen.However, I would like to say that if the file name is changed then everything would be working as expected.
Note: This is also same behaviour for
--export-collections
and--export-enviroments
.