You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Jan Hoskens <jh...@schaubroeck.be> on 2004/05/11 11:23:40 UTC

Variables

Is there a way to save a variable to use later on? I have a value in a html
page, I can extract it correctly and use it in the next html request, but
what if I want that same value a few requests later (while requests in
between do not have that request parameter)?

Kind Regards,
Jan


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


Re: Variables

Posted by Sebastian Bazley <se...@apache.org>.
Yes.

Make sure that the extract test element is a *child* of the HTTP request,
i.e.

Thread Group
- HTTP Request 1
- - Extract value
- HTTP 2
- HTTP 3

and not

Thread Group
- HTTP Request 1
- Extract value
- HTTP 2
- HTTP 3

which   would result in the value extractor being run for each request.

S.
----- Original Message ----- 
From: "Jan Hoskens" <jh...@schaubroeck.be>
To: "JMeter Users List" <jm...@jakarta.apache.org>
Sent: Tuesday, May 11, 2004 10:23 AM
Subject: Variables


> Is there a way to save a variable to use later on? I have a value in a
html
> page, I can extract it correctly and use it in the next html request, but
> what if I want that same value a few requests later (while requests in
> between do not have that request parameter)?
>
> Kind Regards,
> Jan
>
>
> ---------------------------------------------------------------------
> 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