I am trying to trigger a request run based on the condition in the Test section. Running all these already in collection runner but still, setNextRequest() is not working as expected.
Scenario 1:
If myVar is greater than 0, it should only run the “Configure Point Pickup” API. But currently, it’s running “Configure Point Pickup” and “Configure Roadie” API both.
Scenario 2:
If myVar is less than or equal to 0, it should only run the “Configure Point Pickup” and “Configure GE Self-Delivery”. {Used for loop, to trigger scenario 2, not sure if its the correct way but really need to use}
But currently, it’s running “Configure Point Pickup” and “Configure Roadie” API both.
Refer attached screenshot for reference.