You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Sachin Ashok Wagh <Sa...@infosys.com> on 2005/05/23 09:18:24 UTC

query on capturing response using regex extractor

Hi,

 

I' am using regular expression extractor to capture response. Let me
explain the scenario in brief. I' am creating a new employee and
activating it. Now I want to use an option of 'proxy into an employee'
of the application. To click on the appropriate proxy button I need to
capture the response from the previous page. This response contains
multiple lines. How can I capture this response using a regular
expression extractor? Following is the response I want to use:

 

<td class="sm-text-dark" >Activated</td><!-- Renewal Checkbox Column
--><td valign="middle"><img src="/images/blank.gif" border="0"
height="1" width="1" alt=""></td><!-- Proxy Button Column --><td
class="xxsm-text" align="center"><a
href="javascript:subFormToProxy('9900')"  ><img
src='/images/button_proxy.gif'  alt='proxy' border='0'></a></td><td
width="5"><img src="/images/blank.gif" width="5" alt=""
border="0"></td>tr>

 

Help required urgently. Thanks in advance.

 

Regards,

Sachin 

 


 

 

 

 


Re: query on capturing response using regex extractor

Posted by "Manjunath N.S." <ma...@gmail.com>.
Hi Sachin,

>From the First Response extract the ID information into
variable, using PostProcess/Regular Expression Extractor into
Variable. and Later use this Variable in the next TestCase.


Regular Expression Extractor

VariableName: NewId
RegularExpression: <NewId>(.*)</NewIdt>
Template:$1$

In the Second Request use NewID Variable in your second HTTP Request.


thanks
Manju

On 5/23/05, Sachin Ashok Wagh <Sa...@infosys.com> wrote:
> Hi,
> 
> 
> 
> I' am using regular expression extractor to capture response. Let me
> explain the scenario in brief. I' am creating a new employee and
> activating it. Now I want to use an option of 'proxy into an employee'
> of the application. To click on the appropriate proxy button I need to
> capture the response from the previous page. This response contains
> multiple lines. How can I capture this response using a regular
> expression extractor? Following is the response I want to use:
> 
> 
> 
> <td class="sm-text-dark" >Activated</td><!-- Renewal Checkbox Column
> --><td valign="middle"><img src="/images/blank.gif" border="0"
> height="1" width="1" alt=""></td><!-- Proxy Button Column --><td
> class="xxsm-text" align="center"><a
> href="javascript:subFormToProxy('9900')"  ><img
> src='/images/button_proxy.gif'  alt='proxy' border='0'></a></td><td
> width="5"><img src="/images/blank.gif" width="5" alt=""
> border="0"></td>tr>
> 
> 
> 
> Help required urgently. Thanks in advance.
> 
> 
> 
> Regards,
> 
> Sachin
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>

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