In the Test script, is there any way to find out whether it was run via Postman or Newman? What I am trying to do is if running via Newman then create a local output file containing result I want to output, but I also want the same script to be able to run by Postman in which case obvious we don’t want to write any local file.
So, is there any environment variable or is there a way to inspect the run command argument or whatever, to find out if it was run by Newman?