You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by stlukesjg <ge...@slhn.org> on 2010/01/18 22:35:38 UTC

Web login with jmeter

Hi,

I was wondering if it was possible to create a request that would simulate a
user logging in?  I want to load test something that i built but there is a
login screen before you get to the meat of the application.

I tried using the HTTP Request and setting the Method to POST and adding in
my form parameter values but it just goes to the login page and that's it.

Any help or thoughts would be greatly appreciated.

John
-- 
View this message in context: http://old.nabble.com/Web-login-with-jmeter-tp27217169p27217169.html
Sent from the JMeter - User mailing list archive at Nabble.com.

Re: Web login with jmeter

Posted by Jatin Davey <ja...@cisco.com>.
Learn the things that are mentioned in the links below:

http://jakarta.apache.org/jmeter/usermanual/build-web-test-plan.html

The above link shows you an example on how to login into your 
application and then do the desired tasks.

Then , other useful thing that i use for the similar purpose is:

http://jakarta.apache.org/jmeter/usermanual/component_reference.html#HTTP_Proxy_Server

It will make your job a lot easier. It will record the tasks that you 
normally do using your web browser and create samples for it. Copy the 
recorded samples into your test plan and you are ready to go. Also make 
sure to add cookie managers if your session tracking is done using cookies.

Thanks
Jatin

stlukesjg wrote:
> Hi,
>
> I was wondering if it was possible to create a request that would simulate a
> user logging in?  I want to load test something that i built but there is a
> login screen before you get to the meat of the application.
>
> I tried using the HTTP Request and setting the Method to POST and adding in
> my form parameter values but it just goes to the login page and that's it.
>
> Any help or thoughts would be greatly appreciated.
>
> John
>   

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Web login with jmeter

Posted by Deepak Shetty <sh...@gmail.com>.
Yes it should be possible.
a. Common source of problem is not adding a Cookie manager since most
systems manage session ids using cookies.
b. You have redirect automatically on your samplers, you should change to
follow redirects
If that doesnt work use a tool that can tell you what the browser sends and
receives , Live HTTPHeaders in FF or Fiddler in IE and compare with what
your jmeter test sends (using View results tree listener)

Also search the archives for Jmeter, this comes up many times
regards
deepak

On Mon, Jan 18, 2010 at 1:35 PM, stlukesjg <ge...@slhn.org> wrote:

>
> Hi,
>
> I was wondering if it was possible to create a request that would simulate
> a
> user logging in?  I want to load test something that i built but there is a
> login screen before you get to the meat of the application.
>
> I tried using the HTTP Request and setting the Method to POST and adding in
> my form parameter values but it just goes to the login page and that's it.
>
> Any help or thoughts would be greatly appreciated.
>
> John
> --
> View this message in context:
> http://old.nabble.com/Web-login-with-jmeter-tp27217169p27217169.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>