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 ________________________________ From: sebb [mailto:[EMAIL PROTECTED] Sent: Fri 4/28/06 3:19 PM To: JMeter Users List Subject: Re: Test Iteration On 28/04/06, Massimo Forno <[EMAIL PROTECTED]> wrote: > > Hi, > > I'd like to have some suggestions for the following scenario: > > I need to record a web interaction using JMeter (no problem to do that) for a web application trying to insert a new person into the web application and setting some values for it. > > The problem arises in case I need to repeat that test, because I'd like JMeter repeat the test using different person every iteration. Let me give you an example: > > I record the test inserting John Smith, then I'd like to iterate that insertion for 100 times, using John01 Smith01, John02 Smith02,...,John100 Smith100 in an automatically way. > > Is it possible? Yes, but unless you want John1 Smith1 John2 Smith2 ... John10 Smith10 ... you will have to do some extra work to add the leading zero. Use Counter config to define a variable, e.g. N, the you can use John${N} Smith${N} Otherwise, just create a file containing the names, and use CSV Data Set to read them > Moreover, is JMeter able to read and menade asp.net hidden fields? Probably; use the Regex Extractor to get the field values. == See the JMeter FAQ: http://wiki.apache.org/jakarta-jmeter/JMeterFAQ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]