File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes JMeter and form authentication Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "JMeter and form authentication" Watch "JMeter and form authentication" New topic

JMeter and form authentication

camilla bat

Joined: Jul 29, 2005
Posts: 14
This might not be the correct location for this, but I try anyway.

I have problems finding out how to authenticate users in each thread using JMeter. Via the website I post username and password through j_security_check. I tried to simulate a login by creating a HTTP Request in JMeter that has the path:
hostname/j_security_check. The parameters are j_username with value and j_password with value.

I found out that it actually does the authentication, but JMeter gives be an error: "408 - The time allowed for the login process has exceeded......". I have even tried with one thread only cause I thought it didn't create a new session for each thread. That didn't help.

Does anyone have any experience with this? And know how to handle such authentication using JMeter.

I agree. Here's the link:
subject: JMeter and form authentication
jQuery in Action, 3rd edition