In a single collection, I want to run certain requests OR skip requests based on the environment variable. Is there a way to set conditions inside the requests that they will only be executed when environment variable is met?
Req1 for client1
Req2 for client1 and client2
Req3 for client2
Req4 for client1 and client3
Expected: Only Req1, Req2, and Req4 should be executed.
I know that I can create different collections for different clients, but that would be a hassle. In our case, clients sometimes only have 1 or 2 requests that cannot be executed out of 50 requests. And when we do our changes, all clients will be affected, thus, maintaining only 1 collection would make sense for us.
I tried setNextRequest(), however, that already executes the request and just skips the checking. I need it to really not execute certain requests.
I’ve already tried: I tried setNextRequest(), however, that already executes the request and just skips the checking. I need it to really not execute certain requests.