Not easily.

You could try using the If Controller

 
http://jakarta.apache.org/jmeter/usermanual/component_reference.html#If_Controller
 with the condition

${JMeterThread.last_sample_ok}" == "true" (check if last sample succeeded)

e.g.

A1
If OK
+ A2
If OK
+ A3
If not OK
+ handle error

but this quickly becomes a bit tedious to code if there are lots of samplers.

If you can use a single sampler with variables read from a file, then
you might be able to use a looping controller (or While Controller)
instead. This would be harder to set up, but easier to extend once it
was working. This only works if the samplers all need the same number
of parameters, though you could get clever and use a Switch Controller
to select between samplers with different numbers of parameters...

I recommend using the Java Request sampler for testing ideas such as
this, as it does not need a server. Or 2.3RC3 allows the HTTP Samplers
to use the "file" protocol to read from HTML files.

On 04/09/07, Ronan Klyne <[EMAIL PROTECTED]> wrote:
> Greetings all,
>
> I have a web application with many available actions to be performed.
> For this example, I'll need to perform actions A and B.
> Each action involves several pages - let's say A1, A2, A3 and B1, B2, B3.
> If A[n] fails, there is no point trying A[n+1], and I would like to be
> able to tell JMeter this. Can I do something akin to the following?
>
> Try
>  + A1
>  + A2
>  + A3
> Catch
>  + Handle the problem.
>
> Thanks in advance,
>
>        Ronan
>
> --
> Ronan Klyne
> Business Collaborator Developer
> Tel: +44 (0)870 163 2555
> [EMAIL PROTECTED]
> www.groupbc.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to