Hey @oasis,
Not sure I fully understand what you’re trying to achieve here, with the way that you have this. Is the intention that it’s going to run the first request and then hit 5 other requests?
If it is, that’s not really how that function works - You should be setting up a workflow that moves between a request and once it’s completed, it moves on the to next specified request in the chain.
You mentioned running the folder in the Collection Runner, do any of those requests in that code live outside of that folder? All the requests mentioned would need to be selected in order for them to be run with that command.
Have you tried a simplified version of what you have to test your logic before trying to everything in one go?
The last case statement should also be setNextRequest(null)
and not the way you have it or it would be looking for a request name called null
.