Identify in Tests if running through Monitors or Manually triggered

Good day everyone,

In tests script, how do I know if the request was ran through the monitors or is called manually using the Postman app?

I don’t believe there is an easy way to do that, what are you trying to do with this information?

We want part of our test to run only when it’s running thru the monitors.

My only thought here is setting a variable to drive the workflows.

If you create an environment variable called ‘isLocalRun’ you can set the initial value to false and the current value to true.


In your tests, you can check the value of that variable to see how to branch your workflow. A monitor will always read the initial value, but running locally is going to read the current value.