Loop Count当我在第一个循环中运行线程组时,2它运行良好,但在第二次迭代中它失败,因为在标头中它添加了两倍的授权承载令牌
我创建了名为 \xe2\x80\x9cLogin Request 的 HTTP 请求采样器,在此采样器中我添加了 BeanShell PreProcessor\xe2\x80\x99
\nimport org.apache.jmeter.protocol.http.control.Header;\nsampler.getHeaderManager().add(new Header("Authorization","Bearer " + vars.get("Token")));\nRun Code Online (Sandbox Code Playgroud)\n它在 1 次迭代中运行良好,但在第二次迭代中失败,错误显示标头中有两个授权
\n| 归档时间: |
|
| 查看次数: |
5230 次 |
| 最近记录: |