You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by jw...@ancept.com on 2008/02/20 21:30:18 UTC
User and Password Variable Problem
I am having a problem using a CSV Data Set for login information. When I
substitute ${USER} and ${PASS} for the values of Login_ID and Password,
the request to the server includes the variable names instead of the value
from the data file. A sample of the request follows below. I am using
HTTP Request Defaults and HTTP Cookie Manager Config elements and jMeter
2.3.1. Any ideas, I have run out of things to try.
POST data:
processor=login&requestAccountAction=view&imagePickupAction=&loginAction=&submitAction=submit&login=&USER_ID=${USER}&PASSWORD=${PASS}&authCode=
Jason C. Wankerl
Ancept
2901 East 78th Street
Bloomington, MN. 55425
jwankerl@ancept.com
Main: 1-800-927-7474 Main
Office: 952-374-6746
Cell: 651-343-7385
Home: 715-381-3592
Which is worse: ignorance or apathy? Who knows? Who cares?
-- Anonymous
Re: User and Password Variable Problem
Posted by jw...@ancept.com.
Thank for the response Sebb. Through trial and error, including placing
the Data Set in the sampler as you suggested, I discovered that the Data
Set must be included before the Thread Group. It was a "last ditch" try
on my part, but it worked. I just thought I'd let you know. Thanks again
for your help.
Jason C. Wankerl
Ancept
2901 East 78th Street
Bloomington, MN. 55425
jwankerl@ancept.com
Main: 1-800-927-7474 Main
Office: 952-374-6746
Cell: 651-343-7385
Home: 715-381-3592
Which is worse: ignorance or apathy? Who knows? Who cares?
-- Anonymous
sebb <se...@gmail.com>
02/20/2008 05:25 PM
Please respond to
"JMeter Users List" <jm...@jakarta.apache.org>
To
"JMeter Users List" <jm...@jakarta.apache.org>
cc
Subject
Re: User and Password Variable Problem
On 20/02/2008, jwankerl@ancept.com <jw...@ancept.com> wrote:
> I am having a problem using a CSV Data Set for login information. When
I
> substitute ${USER} and ${PASS} for the values of Login_ID and Password,
> the request to the server includes the variable names instead of the
value
> from the data file. A sample of the request follows below. I am using
> HTTP Request Defaults and HTTP Cookie Manager Config elements and
jMeter
> 2.3.1. Any ideas, I have run out of things to try.
>
The CSV Dataset element sets up its variables a bit later than might
be expected, so the variables may not be available to all other
elements - e.g. other Config elements. Try using the variables
directly in the sampler.
> POST data:
>
processor=login&requestAccountAction=view&imagePickupAction=&loginAction=&submitAction=submit&login=&USER_ID=${USER}&PASSWORD=${PASS}&authCode=
>
> Jason C. Wankerl
> Ancept
> 2901 East 78th Street
> Bloomington, MN. 55425
> jwankerl@ancept.com
> Main: 1-800-927-7474 Main
> Office: 952-374-6746
> Cell: 651-343-7385
> Home: 715-381-3592
>
> Which is worse: ignorance or apathy? Who knows? Who cares?
> -- Anonymous
>
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: User and Password Variable Problem
Posted by sebb <se...@gmail.com>.
On 20/02/2008, jwankerl@ancept.com <jw...@ancept.com> wrote:
> I am having a problem using a CSV Data Set for login information. When I
> substitute ${USER} and ${PASS} for the values of Login_ID and Password,
> the request to the server includes the variable names instead of the value
> from the data file. A sample of the request follows below. I am using
> HTTP Request Defaults and HTTP Cookie Manager Config elements and jMeter
> 2.3.1. Any ideas, I have run out of things to try.
>
The CSV Dataset element sets up its variables a bit later than might
be expected, so the variables may not be available to all other
elements - e.g. other Config elements. Try using the variables
directly in the sampler.
> POST data:
> processor=login&requestAccountAction=view&imagePickupAction=&loginAction=&submitAction=submit&login=&USER_ID=${USER}&PASSWORD=${PASS}&authCode=
>
> Jason C. Wankerl
> Ancept
> 2901 East 78th Street
> Bloomington, MN. 55425
> jwankerl@ancept.com
> Main: 1-800-927-7474 Main
> Office: 952-374-6746
> Cell: 651-343-7385
> Home: 715-381-3592
>
> Which is worse: ignorance or apathy? Who knows? Who cares?
> -- Anonymous
>
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org