My applicaiton uses google as the medium to sign in. I am trying the same to do via jmeter script but I am unable to do so.

时间:2018-07-24 10:17:07

标签: jmeter performance-testing

1 个答案:

答案 0 :(得分:0)

为了能够继续进行,您需要通过Authorization Bearer添加适当的HTTP Header Manager令牌。

有几种获取令牌的方法:

  1. 使用WebDriver Sampler通过真实的Web浏览器登录并从浏览器中提取令牌值
  2. developer console
  3. 获取令牌
  4. 使用Google OAuth Client Library中的JSR223 Sampler执行程序化OAuth登录。

有关每种方法的更多信息,请参见How to Run Performance Tests on OAuth Secured Apps with JMeter文章。