You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by liza_dl <li...@mail.ru> on 2008/10/30 10:42:48 UTC

how to transmit assertion result to if controller?

Hi everybody!

I'm creating something like a digital book. All themes are stored as a list.

To create the theme I need to fill in these fields of a form: name, author,
content
and submit them to the server.

To check the uniqueness of the name of the theme I've added a response
assertion to the http request, which posts the data. If there is a string
"this name alredy exists" in the response text I need to go back to the form
to change the name.

The problem is: 
how to pass the assertion result to the If controller?
In general, what result does the assertion returns? Is it 'OK' or 'True' or
what?

Thanks for help
-- 
View this message in context: http://www.nabble.com/how-to-transmit-assertion-result-to-if-controller--tp20243524p20243524.html
Sent from the JMeter - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: how to transmit assertion result to if controller?

Posted by liza_dl <li...@mail.ru>.


> RE: this name alredy exists
> Template: $0$
> Match: 1
> 

Thanks, that works!
-- 
View this message in context: http://www.nabble.com/how-to-transmit-assertion-result-to-if-controller--tp20243524p20298823.html
Sent from the JMeter - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: how to transmit assertion result to if controller?

Posted by sebb <se...@gmail.com>.
On 30/10/2008, liza_dl <li...@mail.ru> wrote:
>
>  It seems I've solved the problem:
>
>  with a regexp find 'this name alredy exists' in the response, place it in a
>  variable, use this variable in the If controller...
>
>  New problem:
>
>  can anybody help me with the regexp?
>
>  I've got the following response:
>
>  ...
>  <tr>
>  <td>
>  this name alredy exists
>  </td>
>  </tr>
>  ...

RE: this name alredy exists
Template: $0$
Match: 1

> --
>  View this message in context: http://www.nabble.com/how-to-transmit-assertion-result-to-if-controller--tp20243524p20243985.html
>
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>  For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: how to transmit assertion result to if controller?

Posted by liza_dl <li...@mail.ru>.
It seems I've solved the problem:

with a regexp find 'this name alredy exists' in the response, place it in a
variable, use this variable in the If controller...

New problem:

can anybody help me with the regexp?

I've got the following response:

...
<tr>
<td>
this name alredy exists
</td>
</tr>
...
-- 
View this message in context: http://www.nabble.com/how-to-transmit-assertion-result-to-if-controller--tp20243524p20243985.html
Sent from the JMeter - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org