You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by 75blured <75...@gmail.com> on 2007/07/24 08:51:08 UTC

Use of the __regexFunction

Hello,

I'd like to use the __regexFunction in order to dynamically modify a 
variable inside a forEach loop. However, if I look to the helper box of 
Jmeter or in the help pages I see :
. Regular expression for the result
. Template for replace string
. ALL or int
. Text by default
. Name of function to store the value to use

I don't see any place to put the string which I want to transform :
Entry -> original string
            RegExp
Output --> transformed string

Have you got an explanation for this ?

Regards,
75blured.

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


Re: Use of the __regexFunction

Posted by norken76 <na...@yahoo.com>.
Hi Avishek,
I have almost the same issue with ${__setProperty()} function.
when you say that the output string from the function helper can be put
anywhere in the test plan, I will need a test element where to put it
correct ? and I don't see what test element would allow me to just evaluate
a function. (in my case, setting a property to be used later in a different
task group).
thanks


Avishek Daga wrote:
> 
> You could use a Function helper dialog which helps you to write the
> function syntax for ${__regextFunction}
> The generated function string could be used anywhere in the text plan
> check out the image below:
> The selected text can be pasted anywhere in the test plan
>  http://www.nabble.com/file/p11920718/functions.jpg 
> 
> 
> 75blured wrote:
>> 
>> Hi,
>> 
>> Thanks a lot, however my concern is how to use ${__regextFunction} and 
>> if there are some example of it.
>> 
>> Regards,
>> 75Blured.
>> 
>> David Schulberg a écrit :
>>> Take a look at my attachment where I extract a membership number from 
>>> the body of a response
>>>  
>>> *David Schulberg*
>>>
>>> Object Consulting | Senior Consultant
>>> switch: + 61 3 8615 4500 fax: +61 3 8615 4501
>>> mobile: 0402 006 291
>>> email: david.schulberg@objectconsulting.com.au 
>>> <ma...@objectconsulting.com.au>
>>> ----------------------------------------------------------------
>>> consulting | development | training | support
>>> our experience makes the difference
>>>
>>> ------------------------------------------------------------------------
>>> *From:* 75blured [mailto:75blured@gmail.com]
>>> *Sent:* Tue 24/07/2007 6:27 PM
>>> *To:* JMeter Users List
>>> *Subject:* Re: Use of the __regexFunction
>>>
>>> Have you got a sample of such a response data where I can apply this 
>>> __regexFunction(...). Indeed what I'm using is :
>>>
>>>
>>>
>>> Is it in this screen that we can apply this function ?
>>>
>>> Regards,
>>> 75Blured.
>>>
>>> David Schulberg a écrit :
>>>> Hi,
>>>>  
>>>> The first argument is the regular expression to be applied to the
>>>> response data which should contain what you are wanting to extract. 
>>>>  
>>>> David Schulberg
>>>>
>>>> Object Consulting | Senior Consultant
>>>> email: david.schulberg@objectconsulting.com.au
>>>> ----------------------------------------------------------------
>>>> consulting | development | training | support
>>>> our experience makes the difference 
>>>>
>>>> ________________________________
>>>>
>>>> From: 75blured [mailto:75blured@gmail.com]
>>>> Sent: Tue 24/07/2007 4:51 PM
>>>> To: jmeter-user@jakarta.apache.org
>>>> Subject: Use of the __regexFunction
>>>>
>>>>
>>>>
>>>> Hello,
>>>>
>>>> I'd like to use the __regexFunction in order to dynamically modify a
>>>> variable inside a forEach loop. However, if I look to the helper box of
>>>> Jmeter or in the help pages I see :
>>>> . Regular expression for the result
>>>> . Template for replace string
>>>> . ALL or int
>>>> . Text by default
>>>> . Name of function to store the value to use
>>>>
>>>> I don't see any place to put the string which I want to transform :
>>>> Entry -> original string
>>>>             RegExp
>>>> Output --> transformed string
>>>>
>>>> Have you got an explanation for this ?
>>>>
>>>> Regards,
>>>> 75blured.
>>>>
>>>> ---------------------------------------------------------------------
>>>> 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/Use-of-the-__regexFunction-tf4134132.html#a11923529
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: Use of the __regexFunction

Posted by Avishek Daga <av...@gmail.com>.
You could use a Function helper dialog which helps you to write the function
syntax for ${__regextFunction}
The generated function string could be used anywhere in the text plan
check out the image below:
The selected text can be pasted anywhere in the test plan
http://www.nabble.com/file/p11920718/functions.jpg 


75blured wrote:
> 
> Hi,
> 
> Thanks a lot, however my concern is how to use ${__regextFunction} and 
> if there are some example of it.
> 
> Regards,
> 75Blured.
> 
> David Schulberg a écrit :
>> Take a look at my attachment where I extract a membership number from 
>> the body of a response
>>  
>> *David Schulberg*
>>
>> Object Consulting | Senior Consultant
>> switch: + 61 3 8615 4500 fax: +61 3 8615 4501
>> mobile: 0402 006 291
>> email: david.schulberg@objectconsulting.com.au 
>> <ma...@objectconsulting.com.au>
>> ----------------------------------------------------------------
>> consulting | development | training | support
>> our experience makes the difference
>>
>> ------------------------------------------------------------------------
>> *From:* 75blured [mailto:75blured@gmail.com]
>> *Sent:* Tue 24/07/2007 6:27 PM
>> *To:* JMeter Users List
>> *Subject:* Re: Use of the __regexFunction
>>
>> Have you got a sample of such a response data where I can apply this 
>> __regexFunction(...). Indeed what I'm using is :
>>
>>
>>
>> Is it in this screen that we can apply this function ?
>>
>> Regards,
>> 75Blured.
>>
>> David Schulberg a écrit :
>>> Hi,
>>>  
>>> The first argument is the regular expression to be applied to the
>>> response data which should contain what you are wanting to extract. 
>>>  
>>> David Schulberg
>>>
>>> Object Consulting | Senior Consultant
>>> email: david.schulberg@objectconsulting.com.au
>>> ----------------------------------------------------------------
>>> consulting | development | training | support
>>> our experience makes the difference 
>>>
>>> ________________________________
>>>
>>> From: 75blured [mailto:75blured@gmail.com]
>>> Sent: Tue 24/07/2007 4:51 PM
>>> To: jmeter-user@jakarta.apache.org
>>> Subject: Use of the __regexFunction
>>>
>>>
>>>
>>> Hello,
>>>
>>> I'd like to use the __regexFunction in order to dynamically modify a
>>> variable inside a forEach loop. However, if I look to the helper box of
>>> Jmeter or in the help pages I see :
>>> . Regular expression for the result
>>> . Template for replace string
>>> . ALL or int
>>> . Text by default
>>> . Name of function to store the value to use
>>>
>>> I don't see any place to put the string which I want to transform :
>>> Entry -> original string
>>>             RegExp
>>> Output --> transformed string
>>>
>>> Have you got an explanation for this ?
>>>
>>> Regards,
>>> 75blured.
>>>
>>> ---------------------------------------------------------------------
>>> 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/Use-of-the-__regexFunction-tf4134132.html#a11920718
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: Use of the __regexFunction

Posted by 75blured <75...@gmail.com>.
Hi,

Thanks a lot, however my concern is how to use ${__regextFunction} and 
if there are some example of it.

Regards,
75Blured.

David Schulberg a écrit :
> Take a look at my attachment where I extract a membership number from 
> the body of a response
>  
> *David Schulberg*
>
> Object Consulting | Senior Consultant
> switch: + 61 3 8615 4500 fax: +61 3 8615 4501
> mobile: 0402 006 291
> email: david.schulberg@objectconsulting.com.au 
> <ma...@objectconsulting.com.au>
> ----------------------------------------------------------------
> consulting | development | training | support
> our experience makes the difference
>
> ------------------------------------------------------------------------
> *From:* 75blured [mailto:75blured@gmail.com]
> *Sent:* Tue 24/07/2007 6:27 PM
> *To:* JMeter Users List
> *Subject:* Re: Use of the __regexFunction
>
> Have you got a sample of such a response data where I can apply this 
> __regexFunction(...). Indeed what I'm using is :
>
>
>
> Is it in this screen that we can apply this function ?
>
> Regards,
> 75Blured.
>
> David Schulberg a écrit :
>> Hi,
>>  
>> The first argument is the regular expression to be applied to the response data which should contain what you are wanting to extract. 
>>  
>> David Schulberg
>>
>> Object Consulting | Senior Consultant
>> email: david.schulberg@objectconsulting.com.au
>> ----------------------------------------------------------------
>> consulting | development | training | support
>> our experience makes the difference 
>>
>> ________________________________
>>
>> From: 75blured [mailto:75blured@gmail.com]
>> Sent: Tue 24/07/2007 4:51 PM
>> To: jmeter-user@jakarta.apache.org
>> Subject: Use of the __regexFunction
>>
>>
>>
>> Hello,
>>
>> I'd like to use the __regexFunction in order to dynamically modify a
>> variable inside a forEach loop. However, if I look to the helper box of
>> Jmeter or in the help pages I see :
>> . Regular expression for the result
>> . Template for replace string
>> . ALL or int
>> . Text by default
>> . Name of function to store the value to use
>>
>> I don't see any place to put the string which I want to transform :
>> Entry -> original string
>>             RegExp
>> Output --> transformed string
>>
>> Have you got an explanation for this ?
>>
>> Regards,
>> 75blured.
>>
>> ---------------------------------------------------------------------
>> 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: Use of the __regexFunction

Posted by 75blured <75...@gmail.com>.
Have you got a sample of such a response data where I can apply this 
__regexFunction(...). Indeed what I'm using is :



Is it in this screen that we can apply this function ?

Regards,
75Blured.

David Schulberg a écrit :
> Hi,
>  
> The first argument is the regular expression to be applied to the response data which should contain what you are wanting to extract. 
>  
> David Schulberg
>
> Object Consulting | Senior Consultant
> email: david.schulberg@objectconsulting.com.au
> ----------------------------------------------------------------
> consulting | development | training | support
> our experience makes the difference 
>
> ________________________________
>
> From: 75blured [mailto:75blured@gmail.com]
> Sent: Tue 24/07/2007 4:51 PM
> To: jmeter-user@jakarta.apache.org
> Subject: Use of the __regexFunction
>
>
>
> Hello,
>
> I'd like to use the __regexFunction in order to dynamically modify a
> variable inside a forEach loop. However, if I look to the helper box of
> Jmeter or in the help pages I see :
> . Regular expression for the result
> . Template for replace string
> . ALL or int
> . Text by default
> . Name of function to store the value to use
>
> I don't see any place to put the string which I want to transform :
> Entry -> original string
>             RegExp
> Output --> transformed string
>
> Have you got an explanation for this ?
>
> Regards,
> 75blured.
>
> ---------------------------------------------------------------------
> 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: Use of the __regexFunction

Posted by David Schulberg <Da...@objectconsulting.com.au>.
Hi,
 
The first argument is the regular expression to be applied to the response data which should contain what you are wanting to extract. 
 
David Schulberg

Object Consulting | Senior Consultant
email: david.schulberg@objectconsulting.com.au
----------------------------------------------------------------
consulting | development | training | support
our experience makes the difference 

________________________________

From: 75blured [mailto:75blured@gmail.com]
Sent: Tue 24/07/2007 4:51 PM
To: jmeter-user@jakarta.apache.org
Subject: Use of the __regexFunction



Hello,

I'd like to use the __regexFunction in order to dynamically modify a
variable inside a forEach loop. However, if I look to the helper box of
Jmeter or in the help pages I see :
. Regular expression for the result
. Template for replace string
. ALL or int
. Text by default
. Name of function to store the value to use

I don't see any place to put the string which I want to transform :
Entry -> original string
            RegExp
Output --> transformed string

Have you got an explanation for this ?

Regards,
75blured.

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