Personally I don't find the options of the while controller very intuitive. I would suggest another approach: adding a built-in status variable to JMeter, just like $? in unix shells. Then one can use this variable in the various controllers like the if controller without need to change them. The status variable will be updated after each request and will have the value 0 for a successfull request or nonzero otherwise. This idea can of course be elaborated (positive values for technical errors, negative values for failing assertions etc.) but I guess zero/nonzero would suffice at first. Would do you say?
Best regards / Viele Grüße
Noam Paz
sebb <[EMAIL PROTECTED]>
13.01.2006 15:26
To
JMeter Users List <[email protected]>
cc
Please respond to
"JMeter Users List" <[email protected]>
Subject
Re: How to test if previous sample is successfull ?
The While Controller has a LAST option:
http://jakarta.apache.org/jmeter/usermanual/component_reference.html#While_Controller
I guess it would be useful if the If Controller had it too.
Might not be too hard to add.
S.
On 13/01/06, Nicolas <[EMAIL PROTECTED]> wrote:
> You're right Noam, thank for this explanation.
>
> Infact, I tested the Result Status Action Handler but what I need is to
> use an IF logic controler to play or not a sample, not to stop the
> thread or the entire test. For the IF controler to work, I need some
> value to test. In some cases I can test a session ID extracted with
> Regular Expression Extractor wich returns the ID or a "null" string as
> default. In my IF controler I use something like "${userSession}" !=
> "null" as condition.
> But sometimes I dont have any data to extract from the sample and only
> need to test if it suceeded. Thats the point.
>
> Thanks,
> Nicolas.
>
>
>
> Noam Paz wrote:
>
> >if I understood Nicolas correctly, he wants to perform requests
> >conditionally.
> >But Result Status Action Handler only allows him to stop the thread or
> >terminate the whole test.
> >
> >Best regards / Viele Grüße
> >
> >Noam Paz
> >
> >
> >
> >
> >
> > sebb <[EMAIL PROTECTED]>
> >
> > 13.01.2006 12:47
To
> >
> >
> >
> >
> >
> > JMeter Users List <[email protected]>
> >
cc
> >
> >
> > Please respond to
> >
> >
> > "JMeter Users List"
> > <[email protected]>
Subject
> >
> >
> >
> >
> >
> > Re: How to test if previous sample is successfull
> > ?
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Result_Status_Action_Handler
> >
> >On 13/01/06, Nicolas <[EMAIL PROTECTED]> wrote:
> >
> >
> >>Hi,
> >>
> >>I'd like to test if a previous sample succeeded before running another
> >>sample.
> >>Any ideas are welcome !
> >>
> >>Thanks,
> >>Nicolas.
> >>
> >>---------------------------------------------------------------------
> >>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]
> >
> >
> >
> >
> >--
> >
> >Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte
> >Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail
> >irrtuemlich erhalten haben, informieren Sie bitte sofort den Absender und
> >vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte
> >Weitergabe dieser Mail ist nicht gestattet.
> >
> >This e-mail may contain confidential and/or privileged information. If you
> >are not the intended recipient (or have received this e-mail in error)
> >please notify the sender immediately and destroy this e-mail. Any
> >unauthorized copying, disclosure or distribution of the material in this
> >e-mail is strictly forbidden.
> >
> >
> >
> >---------------------------------------------------------------------
> >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]
--
Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte
Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail
irrtuemlich erhalten haben, informieren Sie bitte sofort den Absender und
vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte
Weitergabe dieser Mail ist nicht gestattet.
This e-mail may contain confidential and/or privileged information. If you are
not the intended recipient (or have received this e-mail in error) please
notify the sender immediately and destroy this e-mail. Any unauthorized
copying, disclosure or distribution of the material in this e-mail is strictly
forbidden.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

