Hi all,
I would like to implement a loop controller that end the loop on error
condition.
This has been discussed on the list before for the issue of spider toolkit.
(see the message attached),
http://www.mail-archive.com/[EMAIL PROTECTED]/msg01206.html
there, Mike suggested to extend the LoopController to end on error
condition. Could Mike or anyone give me some pointers on the implementation?
The obvious and most likely wrong approach I can think of is:
public class EndOnErrorLoopController extends
LoopController
{
public boolean isDone()
{
blar blar
Iterator iter =
subControllersAndSamplers.iterator();
while (iter.hasNext())
{
Object item = iter.next();
if(item instanceof Sampler)
{
SampleResult result =
item.sample(true) ;
if(!result.isSuccessful())
{
return true;
}
}
}
}
But this approach does the sampling twice, one extra more than the normal
testing thead
I just started to use JMeter and still in the early learning process, but I
am very impressed and I hope I could give some contributions.
Thanks
Richard
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]