How to use the HTTP Authentication Manager of jMeter
I am new to jMeter, I want to kn开发者_JS百科ow how to use the HTTP Authentication Manager using jmeter. I pass user name and password in the HTTP request as well as in the Authentication Manager, but I can't get the response of the index page.
Thanks.
Authentication depends on how your web app is expecting credentials.
If it's parameters through the HTTP request, the authentication manager won't work for you.
If it's server authentication, then follow the link below. (Server authentication is when your web browser gives you a pop-up box to login, instead of a webpage form)
http://jmeter.apache.org/usermanual/component_reference.html#HTTP_Authorization_Manager
In case credentials are being passed as parameters, a solution that worked for me is setting JMetter in proxy mode so samples are automatically generated based on browser interactions with the web application. You might need to make some modifications to the resulting samples (in particular you'll want to add a HTTP Cookie Manager), but you'll have a test plan that reproduces the desired interactions. Helpful links:
- http://jmeter.apache.org/usermanual/component_reference.html#HTTP_Proxy_Server
- http://community.blazemeter.com/knowledgebase/articles/80479-how-to-use-jmeter-for-login-authentication
精彩评论