You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Mujahid Ali <al...@gmail.com> on 2005/04/08 17:38:35 UTC
CVS Data Set
Guys,
I have my user/pass infomation stored in a csv file and I am using CSV
Data Set component to read it. My question is that I want to setup a
plan as follows:
Test Plan
Thread Group
HttpRequest - http://host/login?uid=x&role=y [Login]
HttpRequest - http://host/logout?uid=x&role = y [Log the
same user out]
If I put in the 2nd request for logout, the request is going to get a
new value for variables uid and role. Is there a way that I can only
read the values for the variables once and use it in both requests for
a given thread?
Thanks,
Mujahid
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: CVS Data Set
Posted by Michael Stover <ms...@apache.org>.
You can attach the CSV Data Set as a child element of your first
request. this should make it "execute" only when that request is run,
but the variables it creates will still be global.
-Mike
On Fri, 2005-04-08 at 11:38 -0400, Mujahid Ali wrote:
> Guys,
>
> I have my user/pass infomation stored in a csv file and I am using CSV
> Data Set component to read it. My question is that I want to setup a
> plan as follows:
>
> Test Plan
> Thread Group
> HttpRequest - http://host/login?uid=x&role=y [Login]
> HttpRequest - http://host/logout?uid=x&role = y [Log the
> same user out]
>
> If I put in the 2nd request for logout, the request is going to get a
> new value for variables uid and role. Is there a way that I can only
> read the values for the variables once and use it in both requests for
> a given thread?
>
> Thanks,
>
> Mujahid
>
> ---------------------------------------------------------------------
> 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