If you're "curious" how about trying this yourself, there is Dummy
Sampler <https://www.blazemeter.com/blog/jmeter-dummy-sampler>which
allows to simulate request and response body, response time and other
metrics <https://jmeter.apache.org/usermanual/glossary.html>, and
whether the sampler is successful or not.
Once Only Controller runs its children during 1st iteration of the
Thread Group only, it doesn't check whether there are any errors or not.
The number of requests which will be sent depends on what is your
"Action to be taken after a Sampler error" in the Thread Group
<https://jmeter.apache.org/usermanual/component_reference.html#Thread_Group>.
If it has default value of "Continue" - your Sampler will "run" 200
times no matter of failures presence or absence.
On 10/25/2022 8:18 PM, Dave Hreczany wrote:
Hi Team,
Am curious how the Only Once Controller is impacted if there's a sampler error
or assertion failure encountered within a thread iteration.
For example, if my thread group is set to run 20 threads concurrently for 10
iterations and there's 10 failures, does the Only Once Controller run **again**
when there's an error in an iteration. In other words, using above example,
will it run 200 times or 210 times?
Much thanks,
Dave