How to stop a pagination loop but continue the scenario execution

Hello, this community post helped me to correctly create my pagination loop based on the return of a cursor variable.
The Scenario goes well to the path that stops the loop when my cursor variable is empty… but the problem is that the whole scenario stops and I would rather, when the “cursor” variable is empty:

  1. Stop the repetition loop
  2. Continue the rest of the scenario

Thanks in advance for your answer!

Hi,

I think I had the same problem.

I inserted a “if” function in the set variable module.

Then I set a filter between the get variable and the http request, which stops as soon as there is no next page.

So as soon as the filter catches an empty string, the http request is not working anymore and the scenario continues with the array aggregator.

I hope this helps.