Unanswered question

How to stop a Virtual User from inside a Fork?


I use a Fork to query an endpoint until it I get certain answer or until a maximum count of requests is reached. In the main "thread" I wait until the Fork sets a certain variable to "OK", then I can continue. If the maximum request count is reached in the Fork, I would like to stop the whole virtual user (because that means we ran into a problem and the main thread should not continue). Unfortunately a "Stop" Action or a "context.fail()" inside the Fork does only terminate the Fork itself, not the whole virtual user.

Is there a better way than doing the whole error handling (If Fork == OK than continue, Else Stop) again in the main thread?

thx, br klemensl

Klemens L.
Klemens L.

Klemens L.

81 / 100

No answers