如何在拥有Sharepoint在线应用程序的JMeter中授权(使用OAuth 2.0)? [英] How to authorise (with OAuth 2.0) in JMeter having sharepoint online app?
问题描述
我已经记录了所有测试用例的脚本,并由于OAuth 2.0无法运行所有测试用例而运行了所有测试用例.
现在,我必须在JMeter中对OAuth 2.0进行身份验证,我有以下信息:
I have recorded scripts for all test cases, and run all test cases due to the OAuth 2.0 it is failing all of the test cases.
Now I have to authenticate OAuth 2.0 in JMeter, I have following information:
client_id, response_mode, protectedtokena, response_type, resources, scope, nonce,redirect_uri,wsucxt, cobrandid, client-request-id
.
推荐答案
-
在HTTP标头管理器中添加(或参数化)参数
Authorization
.添加Bearer ${AuthToken}
值.您应该从先前的请求中解析该令牌.
Add (or parametrize) parameter
Authorization
in your HTTP Header Manager. AddBearer ${AuthToken}
value. You should parse that token from previouse request.
检查有关如何解析身份验证令牌
这篇关于如何在拥有Sharepoint在线应用程序的JMeter中授权(使用OAuth 2.0)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!