You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Ravindra Soni <Ra...@persistent.co.in> on 2012/04/17 22:08:09 UTC

JMeter not recording Authentication pop-up

Hi,



What is to be done?

We have an application deployed on the Sharepoint (corporate) Server which uses the windows credentials to log into the application.

  *   App URL format: http://testmachine:1000/sites/test/

  *   Windows Credentials Format: user_id@domain.co.in

The objective is to perform the load/performance testing on the application (especially the log in functionality) for such n number of users.

Normally when I hit the app URL in the Firefox/IE, it pops up a window asking for credentials. I enter the credentials, browse the app and then log out. I intend to capture this in JMeter and simulate this for large number of users.

Where I’m stuck?

Now I start the JMeter proxy server, and then try the same steps as above. But when the pop up window appears, JMeter simply doesn’t record the it nor it does record anything else after the login.

What I’ve tried?

If I try the same steps after enabling “Automatically detect intranet network” in IE, then it simply auto detects my windows credentials (No credentials pop-up), logs me into the app (this is not recorded in JMeter either) and takes me to the home page. And any page thereafter I hit gets recorded in JMeter.

I’ve also tried to use the HTTP Authorization Manager<http://jmeter.apache.org/usermanual/component_reference.html#HTTP_Authorization_Manager> using following parameters:

  *   BaseURL : http://testmachine:1000/sites/test/
  *   Username: DOMAIN\USER_ID
  *   Password: i_wont_tell_you
  *   Domain: \
  *   Realm:

It didn't help. I am quite confused about how-to-use the above element. And not even sure whether its a right approach to get the solution to my problem.

Any help/suggestions?

( P.S. I know about a tool called Badboy, but have to go for it as a last resource. Also not even sure if it records the pop windows. And sorry if the post is verbose.)

Thanks and Regards,
Ravindra


DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails.

Re: JMeter not recording Authentication pop-up

Posted by Deepak Shetty <sh...@gmail.com>.
>Problem is, when I try to hit the pages
>(automation) which I've recorded previously returns success response even
if
>I haven't used the HTTP Authorization Manager. I'm not sure what I'm
>missing.
Usually you should have got a 401 - but note that JMeter only marks HTTP
errors by default , you have to add asertions
Check if your recorded script has added some headers (usually some
hash/digest value) so it might be getting your recorded credentials
(unlikely)
Also as on other threads, Jmeter doesnt support all NTLM out of the box

regards
deepak

On Thu, Apr 19, 2012 at 1:26 AM, ravi_s <ra...@persistent.co.in>wrote:

> Thanks for reply Deepak. But I'm stuck on that front only.
>
> I have also tried -
>
> Username: USER_ID and Domain: my_company_domain
>
> But it didn't work as well. Problem is, when I try to hit the pages
> (automation) which I've recorded previously returns success response even
> if
> I haven't used the HTTP Authorization Manager. I'm not sure what I'm
> missing.
>
> Also as the HTTP Authorization Manager documentation suggested, I have made
> the following changes in config files:
>
> jmeter.properties:
> httpclient.parameters.file=httpclient.parameters
>
> httpclient.parameters:
> http.authentication.preemptive$Boolean=false
>
> Please help.
>
> Thanks and Regards,
> Ravindra
>
>
> --
> View this message in context:
> http://jmeter.512774.n5.nabble.com/JMeter-not-recording-Authentication-pop-up-tp5647448p5651200.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
>
>

Re: JMeter not recording Authentication pop-up

Posted by ravi_s <ra...@persistent.co.in>.
Thanks for reply Deepak. But I'm stuck on that front only. 

I have also tried -

Username: USER_ID and Domain: my_company_domain

But it didn't work as well. Problem is, when I try to hit the pages
(automation) which I've recorded previously returns success response even if
I haven't used the HTTP Authorization Manager. I'm not sure what I'm
missing.

Also as the HTTP Authorization Manager documentation suggested, I have made
the following changes in config files:

jmeter.properties:
httpclient.parameters.file=httpclient.parameters

httpclient.parameters:
http.authentication.preemptive$Boolean=false

Please help.

Thanks and Regards,
Ravindra


--
View this message in context: http://jmeter.512774.n5.nabble.com/JMeter-not-recording-Authentication-pop-up-tp5647448p5651200.html
Sent from the JMeter - User mailing list archive at Nabble.com.

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


Re: JMeter not recording Authentication pop-up

Posted by Deepak Shetty <sh...@gmail.com>.
The JMeter proxy is an HTTP proxy. What you seem to be getting is the
windows NT authentication popup (which isnt HTTP) so it wont record
anything , nor should it.

You say you added an authorization manager - that needs to be added while
running the tests (not while recording it). Search Google to see various
NTLM/Jmeter related stuff to see whats supported

regards
deepak

On Wed, Apr 18, 2012 at 3:00 AM, ravi_s <ra...@persistent.co.in>wrote:

> Guys, please help. I'm stuck at this point.
>
> Regards,
> Ravindra
>
> --
> View this message in context:
> http://jmeter.512774.n5.nabble.com/JMeter-not-recording-Authentication-pop-up-tp5647448p5648719.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
>
>

Re: JMeter not recording Authentication pop-up

Posted by ravi_s <ra...@persistent.co.in>.
Guys, please help. I'm stuck at this point.

Regards,
Ravindra

--
View this message in context: http://jmeter.512774.n5.nabble.com/JMeter-not-recording-Authentication-pop-up-tp5647448p5648719.html
Sent from the JMeter - User mailing list archive at Nabble.com.

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