I have 4 requests with names request1,request2, request3 and request4 in this order.
I want to create a workflow where after each request 4 is called, so the workflow would be
so whenever I run a request I store the request name to a variable.
pm.environment.set(“requestName”, pm.info.requestName); (Say i get request1)
Then call request4 using sendNextRequest(“request4”) ,
Now in request4, I want to do something like
sendNextRequest(pm.environment.get(“requestName”)+1) so that it will call the next request (say request2)
is there a way to do this