newman: Postman collection prerequest script not executing in newman
- Newman Version (can be found via
newman -v
): - OS details (type, version, and architecture):windows 10
- Are you using Newman as a library, or via the CLI? library
- Did you encounter this recently, or has this bug always been there:
- Expected behaviour:prerequest script not running, but working in postman
- Command / script used to run Newman:
- Sample collection, and auxiliary files (minus the sensitive details):
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 19
@aladendorf that shouldn’t have been the case. I will validate this on my end though.
I am glad that it worked for you now.
Happy testing 😃
@malvikach I setup a new collection and a new environment with just one test, this works well, even without the environment. So I think I need to go over each test and test it seperatlyto find the one that cant run in newman. Thank you for your support!
did any one had sucess with this , i have a pre-request script in the top folder for creating session token and im passing this token for all the requests that i have in folders and sub folders, but when i try to run it using newman, it keeps giving me error with session token, but im pretty sure same script works by using postman tool , i even have returned the variables in console, and in postman it retruns the sessiontoken but not in newman ,