On 02/05/06, Brian Childs <[EMAIL PROTECTED]> wrote:
Thanks for this! I now understand how a Counter with variables can work. This will be 
helpful when I have test logins set up. Until then, I have a couple of questions about 
your reply "replace the Counter with a CSV Data Set.":

1.) Do you think CSV Data Set is preferred to the User Parameters Pre Processor 
I've been trying to use? (If CVS works as I think it does, it's going to be much 
easier because of the ease of adding userNames & passwords.)

Yes, unless you only have a few users.

2.) For CSV Data Set, is this attaching a *.csv Filename in "HTTP Request - Login" and 
then adding a Parameter Name of "userName,password"?

You need to put the CSV Data Set at the start of the Thread Group, and
fill in the fields.

No changes needed to the Sampler (unless you use different variable names).

3.) For the CSV file, record the first userName & password in A1, B1, the 
second in A2, B2?

Yes

Do I need to add a header row of userName password in the CSV file?

Do not use a header.

3.) Can you send me a link of where I can find more info about CSV Data Set in 
JMeter?

http://jakarta.apache.org/jmeter/usermanual/component_reference.html#CSV_Data_Set_Config


While I've tried a bunch of variations I'm still not able to get CSV to work 
(reminder, these tests work if I put in the actual userName & password). Here 
are some of what I've tried:

'HTTP Request - Login'

                   Name, Value
               1. cmd, Login
               2. userName, ${userName} (also tried "userName")
${userName} is correct

               3. password, ${password} (also tried "password")

               Send a File With the Request:
               Filename: E:\JMeterScripts\Test files\userNamePassword.csv

No, not unless you are POSTing this file

               Parameter Name: ${userName},${password} (also tried 
"userName,password")

Not needed.

I've tried various CSV files too; below are a few examples:

               james13,password
               david13,password

               userName,password
               james13,password
               david13,password

               ${userName},${password}
No
               james13,password
               david13,password

               james13,password,david13,password

               userName,password,james13,password,david13,password
               ${userName},${password},james13,password,david13,password
No

Again, thanks any additional help. I've been working on this for a while and 
reading all kinds of posts...
BC

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to