没有合适的资源?快使用搜索试试~ 我知道了~
JMeter_OAuth_Sampler
3星 · 超过75%的资源 需积分: 16 16 下载量 66 浏览量
2010-11-30
22:39:12
上传
评论
收藏 191KB PDF 举报
温馨提示
试读
3页
JMeter_OAuth_Sampler JMeter_OAuth_Sampler
资源推荐
资源详情
资源评论
4/24/09 9:01 AMJMeter OAuth Sampler - Office Wiki
Page 1 of 3http://wiki.office.aol.com/mediawiki/index.php?title=JMeter_OAuth_Sampler&printable=yes
Contents
1 Overview
2 Installation
3 Usage
JMeter OAuth Sampler
From Office Wiki
Overview
JMeter is a great tool for load testing. However, it can't test IDP's API due to the OAuth
signing. This plugin adds a new sampler in JMeter so it can handle OAuth calls.
Even though this is designed for IDP API testing, the plugin is generic and it should
work with all OAuth calls.
Installation
The OAuth sampler is added to JMeter in the form of a plugin (or extension). The installation of plugin is very
easy. All you have to do is to drop the plugin jar to the lib/ext directory of JMeter. For example,
Here is the plugin JAR file. Due to the limitation of the Wiki, the file has to be renamed to zip. Please rename
it back.
Once the plugin is successfully installed, you should see "OAuth Request" in the Sampler menu like this,
When OAuth returns error, you will see warnings in logs complaining about unknown HTTP auth method.
This is normal because OAuth error doesn't look like an request for HTTP Auth.
Usage
The OAuth Request is an extension to the standard sampler "HTTP Request HTTPClient". You can use it just
like HTTP request.
cp ApacheJMeter_oauth.jar /sw/jmeter/lib/ext
2009/04/22 11:37:52 WARN - org.apache.commons.httpclient.HttpMethodDirector: Unable to respond to any of these challenges: {oauth=OAuth realm="http%3A%2F%2Fauth.office.aol.com%3A8080", oauth_signature_base_string="POST%26http%253A%252F%252Fauth.office.aol.com%253A8080%252Fidp%252Fapi%252Fauthenticate%26idp_password%253Dtest%252525%25252B%2526idp_username%253Didpdev%2526oauth_consumer_key%253Dtest.com%2526oauth_nonce%253D1240414671745381000%2526oauth_signature_method%253DHMAC-SHA1%2526oauth_timestamp%253D1240414671%2526oauth_token%253D%2526oauth_version%253D1.0", oauth_problem="signature_invalid", oauth_signature="HDQnchAlt6x6KzMjcLTWqgYgarI%3D", oauth_signature_method="HMAC-SHA1"}
资源评论
- seuzc2012-09-09跟googlecode上的一样
cutemouse
- 粉丝: 319
- 资源: 79
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功