You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Leandro Smal <ls...@technisys.net> on 2005/07/06 23:53:18 UTC
saving response parameters
Hello:
I ve to save a parameter thats returned in a response,is there a way to
save such parameter in a (for example)user variable and then used it in
a request?.Until now I been copying it manually from the request and i m
searching a way to automatize this operation.
Thanks.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: saving response parameters
Posted by Leandro Smal <ls...@technisys.net>.
Thanks,it works perfectly.
sebb wrote:
>It's generally better to use (.*?) or (.+?) so that the match is non-greedy.
>And remember "." matches any character, not only ".".
>
>It would be better to put:
>
>regular expression: ','','','(.+?)','FirmarEsquema\.asp'
>
>assuming that you want to match the id before first (or only)
>'FirmarEsquema.asp'
>
>By the way, ( and ) are special, so need to be escaped with \, e.g.
>
>to match:
> processForm(
>use the regex:
> processForm\(
>S.
>On 7/7/05, Leandro Smal <ls...@technisys.net> wrote:
>
>
>>Finally im using a not very elegante expression but it work:
>>
>>regular expression: ','','','(.*)','FirmarEsquema.asp'
>>template:$1$
>>match...: 1
>>default value:
>>
>>thanks.
>>
>>
>>Leandro Smal wrote:
>>
>>
>>
>>>ok,im been trying to get the folowing expression:
>>>
>>><td class="commonTable" width="20" align="center"><a href="#"
>>>title="Firmar" onclick="if (confirm('¿Está seguro que desea firmar el
>>>esquema?'))
>>>processForm('','','','(.*)','FirmarEsquema.asp','Firmar');return
>>>false;"><img src="/ModAdmin/images/firma.gif" border="0" WIDTH="16"
>>>HEIGHT="16"></a></td>
>>>
>>>from de the following response but nothing is returned what im doing
>>>wrong:
>>>
>>><td class="commonTable" width="20" align="center"><a href="#"
>>>title="Firmar" onclick="if (confirm('¿Está seguro que desea firmar el
>>>esquema?'))
>>>processForm('','','','f1a89e467f0000010010b18285201def','FirmarEsquema.asp','Firmar');return
>>>false;"><img src="/ModAdmin/images/firma.gif" border="0" WIDTH="16"
>>>HEIGHT="16"></a></td>
>>>
>>>PD:Note the (.*) after proces form.
>>>
>>>Thanks
>>>
>>>
>>>
>>>
>>>sebb wrote:
>>>
>>>
>>>
>>>>See Regex Extractor
>>>>
>>>>http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Regular_Expression_Extractor
>>>>
>>>>
>>>>S.
>>>>On 7/6/05, Leandro Smal <ls...@technisys.net> wrote:
>>>>
>>>>
>>>>
>>>>
>>>>>Hello:
>>>>>
>>>>>I ve to save a parameter thats returned in a response,is there a way to
>>>>>save such parameter in a (for example)user variable and then used it in
>>>>>a request?.Until now I been copying it manually from the request and
>>>>>i m
>>>>>searching a way to automatize this operation.
>>>>>
>>>>>Thanks.
>>>>>
>>>>>
>>>>>
>>>>>---------------------------------------------------------------------
>>>>>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
>>>>
>>>>
>>>>
>>>>
>>>>
>>>---------------------------------------------------------------------
>>>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
>>
>>
>>
>>
>
>---------------------------------------------------------------------
>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: saving response parameters
Posted by sebb <se...@gmail.com>.
It's generally better to use (.*?) or (.+?) so that the match is non-greedy.
And remember "." matches any character, not only ".".
It would be better to put:
regular expression: ','','','(.+?)','FirmarEsquema\.asp'
assuming that you want to match the id before first (or only)
'FirmarEsquema.asp'
By the way, ( and ) are special, so need to be escaped with \, e.g.
to match:
processForm(
use the regex:
processForm\(
S.
On 7/7/05, Leandro Smal <ls...@technisys.net> wrote:
> Finally im using a not very elegante expression but it work:
>
> regular expression: ','','','(.*)','FirmarEsquema.asp'
> template:$1$
> match...: 1
> default value:
>
> thanks.
>
>
> Leandro Smal wrote:
>
> > ok,im been trying to get the folowing expression:
> >
> > <td class="commonTable" width="20" align="center"><a href="#"
> > title="Firmar" onclick="if (confirm('¿Está seguro que desea firmar el
> > esquema?'))
> > processForm('','','','(.*)','FirmarEsquema.asp','Firmar');return
> > false;"><img src="/ModAdmin/images/firma.gif" border="0" WIDTH="16"
> > HEIGHT="16"></a></td>
> >
> > from de the following response but nothing is returned what im doing
> > wrong:
> >
> > <td class="commonTable" width="20" align="center"><a href="#"
> > title="Firmar" onclick="if (confirm('¿Está seguro que desea firmar el
> > esquema?'))
> > processForm('','','','f1a89e467f0000010010b18285201def','FirmarEsquema.asp','Firmar');return
> > false;"><img src="/ModAdmin/images/firma.gif" border="0" WIDTH="16"
> > HEIGHT="16"></a></td>
> >
> > PD:Note the (.*) after proces form.
> >
> > Thanks
> >
> >
> >
> >
> > sebb wrote:
> >
> >> See Regex Extractor
> >>
> >> http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Regular_Expression_Extractor
> >>
> >>
> >> S.
> >> On 7/6/05, Leandro Smal <ls...@technisys.net> wrote:
> >>
> >>
> >>> Hello:
> >>>
> >>> I ve to save a parameter thats returned in a response,is there a way to
> >>> save such parameter in a (for example)user variable and then used it in
> >>> a request?.Until now I been copying it manually from the request and
> >>> i m
> >>> searching a way to automatize this operation.
> >>>
> >>> Thanks.
> >>>
> >>>
> >>>
> >>> ---------------------------------------------------------------------
> >>> 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
> >>
> >>
> >>
> >
> >
> > ---------------------------------------------------------------------
> > 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
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: saving response parameters
Posted by Leandro Smal <ls...@technisys.net>.
Finally im using a not very elegante expression but it work:
regular expression: ','','','(.*)','FirmarEsquema.asp'
template:$1$
match...: 1
default value:
thanks.
Leandro Smal wrote:
> ok,im been trying to get the folowing expression:
>
> <td class="commonTable" width="20" align="center"><a href="#"
> title="Firmar" onclick="if (confirm('¿Está seguro que desea firmar el
> esquema?'))
> processForm('','','','(.*)','FirmarEsquema.asp','Firmar');return
> false;"><img src="/ModAdmin/images/firma.gif" border="0" WIDTH="16"
> HEIGHT="16"></a></td>
>
> from de the following response but nothing is returned what im doing
> wrong:
>
> <td class="commonTable" width="20" align="center"><a href="#"
> title="Firmar" onclick="if (confirm('¿Está seguro que desea firmar el
> esquema?'))
> processForm('','','','f1a89e467f0000010010b18285201def','FirmarEsquema.asp','Firmar');return
> false;"><img src="/ModAdmin/images/firma.gif" border="0" WIDTH="16"
> HEIGHT="16"></a></td>
>
> PD:Note the (.*) after proces form.
>
> Thanks
>
>
>
>
> sebb wrote:
>
>> See Regex Extractor
>>
>> http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Regular_Expression_Extractor
>>
>>
>> S.
>> On 7/6/05, Leandro Smal <ls...@technisys.net> wrote:
>>
>>
>>> Hello:
>>>
>>> I ve to save a parameter thats returned in a response,is there a way to
>>> save such parameter in a (for example)user variable and then used it in
>>> a request?.Until now I been copying it manually from the request and
>>> i m
>>> searching a way to automatize this operation.
>>>
>>> Thanks.
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> 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
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> 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: saving response parameters
Posted by Leandro Smal <ls...@technisys.net>.
ok,im been trying to get the folowing expression:
<td class="commonTable" width="20" align="center"><a href="#"
title="Firmar" onclick="if (confirm('¿Está seguro que desea firmar el
esquema?'))
processForm('','','','(.*)','FirmarEsquema.asp','Firmar');return
false;"><img src="/ModAdmin/images/firma.gif" border="0" WIDTH="16"
HEIGHT="16"></a></td>
from de the following response but nothing is returned what im doing wrong:
<td class="commonTable" width="20" align="center"><a href="#"
title="Firmar" onclick="if (confirm('¿Está seguro que desea firmar el
esquema?'))
processForm('','','','f1a89e467f0000010010b18285201def','FirmarEsquema.asp','Firmar');return
false;"><img src="/ModAdmin/images/firma.gif" border="0" WIDTH="16"
HEIGHT="16"></a></td>
PD:Note the (.*) after proces form.
Thanks
sebb wrote:
>See Regex Extractor
>
>http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Regular_Expression_Extractor
>
>S.
>On 7/6/05, Leandro Smal <ls...@technisys.net> wrote:
>
>
>>Hello:
>>
>>I ve to save a parameter thats returned in a response,is there a way to
>>save such parameter in a (for example)user variable and then used it in
>>a request?.Until now I been copying it manually from the request and i m
>>searching a way to automatize this operation.
>>
>>Thanks.
>>
>>
>>
>>---------------------------------------------------------------------
>>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
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: saving response parameters
Posted by sebb <se...@gmail.com>.
See Regex Extractor
http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Regular_Expression_Extractor
S.
On 7/6/05, Leandro Smal <ls...@technisys.net> wrote:
> Hello:
>
> I ve to save a parameter thats returned in a response,is there a way to
> save such parameter in a (for example)user variable and then used it in
> a request?.Until now I been copying it manually from the request and i m
> searching a way to automatize this operation.
>
> Thanks.
>
>
>
> ---------------------------------------------------------------------
> 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