开发者

How to use the HTTP Authentication Manager of jMeter

开发者 https://www.devze.com 2023-04-02 20:06 出处:网络
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 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
0

精彩评论

暂无评论...
验证码 换一张
取 消