You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by l_u_c_f_e_r_13 <sy...@globallogic.com> on 2008/09/24 16:39:20 UTC
RegExpExtractor result in BeanShell assertion
Hi.
I get some param (paramName) via Jmeter RegExpExtractor. I set "Match No."
to -1 to use this value in "ForEach Controller".
Now I can access each match by its number (like paramName_1, paramName_5
etc.)
Could somebody tells me how can I access it in Bean Shell assertion?
vars.get("paramName_1") - doesn't work ((.
TIA.
--
View this message in context: http://www.nabble.com/RegExpExtractor-result-in-BeanShell-assertion-tp19650376p19650376.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: RegExpExtractor result in BeanShell assertion
Posted by l_u_c_f_e_r_13 <sy...@globallogic.com>.
Thks, works for me too.
don't knew what was wrong :(
sebb-2-2 wrote:
>
> On 24/09/2008, l_u_c_f_e_r_13 <sy...@globallogic.com> wrote:
>>
>> Hi.
>> I get some param (paramName) via Jmeter RegExpExtractor. I set "Match
>> No."
>> to -1 to use this value in "ForEach Controller".
>> Now I can access each match by its number (like paramName_1, paramName_5
>> etc.)
>> Could somebody tells me how can I access it in Bean Shell assertion?
>> vars.get("paramName_1") - doesn't work ((.
>
> Works for me.
> Assertions are processed after PostProcessors, so the variable will be
> available if the RE succeeds.
>
> Check jmeter.log for any error messages.
>
> Add a Debug Sampler (and Tree View Listener) to display the variables.
>
> Check that the BSH assertion is running (add some print() statements to
> it).
>
>> TIA.
>>
>> --
>> View this message in context:
>> http://www.nabble.com/RegExpExtractor-result-in-BeanShell-assertion-tp19650376p19650376.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
>
>
>
--
View this message in context: http://www.nabble.com/RegExpExtractor-result-in-BeanShell-assertion-tp19650376p19685401.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: RegExpExtractor result in BeanShell assertion
Posted by sebb <se...@gmail.com>.
On 24/09/2008, l_u_c_f_e_r_13 <sy...@globallogic.com> wrote:
>
> Hi.
> I get some param (paramName) via Jmeter RegExpExtractor. I set "Match No."
> to -1 to use this value in "ForEach Controller".
> Now I can access each match by its number (like paramName_1, paramName_5
> etc.)
> Could somebody tells me how can I access it in Bean Shell assertion?
> vars.get("paramName_1") - doesn't work ((.
Works for me.
Assertions are processed after PostProcessors, so the variable will be
available if the RE succeeds.
Check jmeter.log for any error messages.
Add a Debug Sampler (and Tree View Listener) to display the variables.
Check that the BSH assertion is running (add some print() statements to it).
> TIA.
>
> --
> View this message in context: http://www.nabble.com/RegExpExtractor-result-in-BeanShell-assertion-tp19650376p19650376.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