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]>

Reply via email to