Quantcast
Channel: [Q&A - FAQ Neotys] Last questions
Viewing all articles
Browse latest Browse all 2283

How to stop a Virtual User from inside a Fork?

$
0
0

Hi,

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


Viewing all articles
Browse latest Browse all 2283

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>