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.)
 
2.) For CSV Data Set, is this attaching a *.csv Filename in "HTTP Request - 
Login" and then adding a Parameter Name of "userName,password"?
 
3.) For the CSV file, record the first userName & password in A1, B1, the 
second in A2, B2? Do I need to add a header row of userName password in the CSV 
file?
 
3.) Can you send me a link of where I can find more info about CSV Data Set in 
JMeter?
 
 
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")
                3. password, ${password} (also tried "password")
                 
                Send a File With the Request:
                Filename: E:\JMeterScripts\Test files\userNamePassword.csv
                Parameter Name: ${userName},${password} (also tried 
"userName,password")

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

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

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

________________________________

From: sebb [mailto:[EMAIL PROTECTED]
Sent: Mon 5/1/06 4:54 PM
To: JMeter Users List
Subject: Re: Setting up User Parameters

Try

Thread
 |__ Simple Controller
      |__ Counter
      |__ HTTP Request - Login
      |__ HTTP Request - View Account Info
      |__ HTTP Request - Logout

Set the Counter parameters as follows:
Start 1
Inc 1
Max 20 (or whatever)
Reference Name: NO
Track Counter Independently for each User should _not_ be enabled

Set the Login parameters as follows:

2. Name = userName, Value = Login${NO}
3. Name = password, Value = password${NO}

Or you can replace the Counter with a CSV Data Set, and set the
Variable Names to:

userName,password

in which case your existing login should work.

S
On 01/05/06, Brian Childs <[EMAIL PROTECTED]> wrote:
> I'm relatively new to JMeter and could use some help setting up a series of 
> logins. I have read the User Manual (but there isn't an example supplied for 
> this component) and combed the user group posts (I didn't find the search 
> feature helpful enough - maybe I searched to broadly?). I have read the user 
> list guidelines and hope I'm not breaking any rules unintentionally.
>
> Similar to Massimo Forno's post below, I'd like the have JMeter login a 
> series of 2 user names (for this example) but I don't know how to set it up. 
> My Test Plan basically looks like:
>
> Thread
>   |__ Simple Controller
>        |__ HTTP Request - Login
>             |__ User Parameters - Login & Password
>        |__ HTTP Request - View Account Info
>        |__ HTTP Request - Logout
>
> For "HTTP Request - Login" I have 3 parameters:
> 1. Name = cmd, Value = Login
> 2. Name = userName, Value = ${userName}
> 3. Name = password, Value = ${password}
>
> For "User Parameters - Login & Password" I have 2 variables and 2 users:
> 1. Name = ${userName}, User_1 = Login1, User_2 = Login2
> 2. Name = ${password}, User_1 = password1, User_2 = password2
>
> This isn't working as my logins fail (note: my scripts work fine without 
> using User Parameter/variables). I haven't used variables before so this is a 
> guess for me.
>
> I will eventually want to set up Login1 - Login20 and hope to use the User 
> Counter with a variable as advised to Massimo post.
>
> Thanks for any help!
> BC

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

Reply via email to