You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Dave Hreczany <da...@thecru.xyz> on 2022/10/25 17:18:11 UTC
Only Once Controller when thread failures
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
RE: Only Once Controller when thread failures
Posted by Dave Hreczany <da...@thecru.xyz>.
Many thanks for the clarification
-----Original Message-----
From: Dmitri T <gl...@live.com>
Sent: Wednesday, October 26, 2022 12:02 AM
To: user@jmeter.apache.org
Subject: Re: Only Once Controller when thread failures
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
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org
Re: Only Once Controller when thread failures
Posted by Dmitri T <gl...@live.com>.
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
>
>
>