Is there a way to find out if a collection is being run by Newman

We want our collections to behave differently if they are being run from within Postman itself, or via Newman.

Is there a way to identify this?

just use 2 different environments and put a check for, e.g. a flag, in your code.

2 Likes

Thanks for that, we went ahead with somethign similar, but it would be nice not have to maintain another environment.

Hi,
could you please share your solution?
Thanks,
Christian