You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Joig <jo...@hotmail.com> on 2008/02/26 20:39:43 UTC

Hidden field value

Hello,

I need to get the value of a hidden field with jmeter, to use in the next
request to the server.

¿How can I do this?
-- 
View this message in context: http://www.nabble.com/Hidden-field-value-tp15674290p15674290.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: Hidden field value

Posted by Joig <jo...@hotmail.com>.
Hello again,

I find the problem. My problem was a 'space'. 

This solution (regular expression as child) is well.

Thanks


Joig wrote:
> 
> Thanks sebb-2-2.
> 
> I have tried but I have not succeeded. 
> I have a page that return this hidden field and I put the regular
> extrataction expression has a child of this page. ¿Is correct?
> 
> The field is like this  <input type="hidden" name="rqpers" value="202"/>
> and I need to get the value.
> 
> Thanks again.
> 
> 
> sebb-2-2 wrote:
>> 
>> http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Regular_Expression_Extractor
>> 
>> On 26/02/2008, Joig <jo...@hotmail.com> wrote:
>>>
>>>  Hello,
>>>
>>>  I need to get the value of a hidden field with jmeter, to use in the
>>> next
>>>  request to the server.
>>>
>>>  ¿How can I do this?
>>>
>>> --
>>>  View this message in context:
>>> http://www.nabble.com/Hidden-field-value-tp15674290p15674290.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/Hidden-field-value-tp15674290p15711337.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: Hidden field value

Posted by Ronan Klyne <ro...@groupbc.com>.
Joig wrote:
> Thanks sebb-2-2.
> 
> I have tried but I have not succeeded. 
> I have a page that return this hidden field and I put the regular
> extrataction expression has a child of this page. ¿Is correct?
> 
> The field is like this  <input type="hidden" name="rqpers" value="202"/> and
> I need to get the value.
> 
> Thanks again.

My personal preference here is to use an XPath extractor, with an XPath 
expression like:
//input[@type="hidden" and @name="rqpers"]/@value

	# r

-- 
Ronan Klyne
Business Collaborator Developer
Tel: +44 01189 028518
ronan.klyne@groupbc.com
www.groupbc.com

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


Re: Hidden field value

Posted by Joig <jo...@hotmail.com>.
Thanks sebb-2-2.

I have tried but I have not succeeded. 
I have a page that return this hidden field and I put the regular
extrataction expression has a child of this page. ¿Is correct?

The field is like this  <input type="hidden" name="rqpers" value="202"/> and
I need to get the value.

Thanks again.


sebb-2-2 wrote:
> 
> http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Regular_Expression_Extractor
> 
> On 26/02/2008, Joig <jo...@hotmail.com> wrote:
>>
>>  Hello,
>>
>>  I need to get the value of a hidden field with jmeter, to use in the
>> next
>>  request to the server.
>>
>>  ¿How can I do this?
>>
>> --
>>  View this message in context:
>> http://www.nabble.com/Hidden-field-value-tp15674290p15674290.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/Hidden-field-value-tp15674290p15711114.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: Hidden field value

Posted by sebb <se...@gmail.com>.
http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Regular_Expression_Extractor

On 26/02/2008, Joig <jo...@hotmail.com> wrote:
>
>  Hello,
>
>  I need to get the value of a hidden field with jmeter, to use in the next
>  request to the server.
>
>  ¿How can I do this?
>
> --
>  View this message in context: http://www.nabble.com/Hidden-field-value-tp15674290p15674290.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