0
votes

I have to load test a site ,which is protected by ht-password ,i used the following methods

But i failed to pass authentication using all these methods

Can anyone help ??

1
first you should understand what mechanism is used by server to authenticate user. analyze the HTTP request (use Browser -> F12 -> Network tab) and check the headers which are responsible for authentication (like Cookie, Authentication etc.) - Naveen Kumar R B

1 Answers

0
votes

The correct way of bypassing Basic HTTP Authentication is using HTTP Authorization Manager configured like:

HTTP Authorization Manager

See How to Use HTTP Basic Authentication in JMeter article for more details and example configuration.

Note: above options will work for htpasswd-based authentication (or equivalent) only, if your server uses other mechanism - you will need different configuration.