One thing you can try is using JMeter's proxy server to record the steps you take in the browser. By doing this, you can then examine the HTTP Request sample that JMeter automatically creates for you. Doing so should help you understand how JMeter works.
For what you describe below, I'm confused about 2 things. 1. Your form's action is "j_security_check", yet you don't say what you set the PATH to in the HTTP Request UI. These should match. 2. The paramters you enter should be "j_username", with a value of the username, and "j_password", with a value of the password. I don't know why you would append "login." to the beginning of these paramter names? Also, you don't say what went wrong, which makes debugging from here difficult. I'm not sure what the problem is for your last question - why not just do it? You just need two requests, one to request the illegal page, the next one to login. -Mike > -----Original Message----- > From: Tom Lasseter [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, February 26, 2002 2:55 PM > To: [EMAIL PROTECTED] > Subject: Specifying login form input values in JMeter > > > I have looked at the archives for info on how to handle a > FORM login. I'm > using Tomcat4.0 with JDBCRealm handling the authentication > process. I would > like to test performance with JMeter. > > The easiest test is to hit the login page with user/password. The > login.html is not protected by the realm, so it's only a > matter of posting > the user/password. The form looks like this: > > <form name="logIn" method="post" > action="j_security_check"> > <table cellpadding="10" height="20" width="300" > name="formLogin"> > <tr> > <td> > <div align="right"><font color="#000000">User > ID:</font></div> > </td> > <td> > <input type="text" name="j_username"> > </td> > </tr> > <tr> > <td> > <div align="right"><font > color="#000000">Password:</font></div> > </td> > <td> > <input type="password" name="j_password"> > </td> > </tr> > <tr> > <td colspan="2"> > <div align="center"> > <input type="submit" name="submit" > value="Submit"> > </div> > </td> > </tr> > </table> > </form> > > So how to I specify user/password in the JMeter HTTP request? > > on the HTTP Request UI, I have set the WebServerServerName (www.mysite.com), the HTTP request protocol (HTTP), the Method (POST), and the parameters: login.j_username (user) and login.j_password (user). I've tried it with/without "login.". The second test I would like to perform is specify a protected page which would require a redirect to the login page (again Tomcat4/Realm are handling the details. so I would specify /protected/protected.html, but then knowing that I would be redirected, I need to supply the user/password for the new page (login.html). Any suggestions on this would be greatly appreciated! Tom Thomas J. Lasseter [EMAIL PROTECTED] phone: 425-861-0446 mobile: 425-761-8948 FAX: 425-558-4181 4D Systems LLC 15325 189th Ave NE Woodinville, WA. 98072 -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

