gpt4 book ai didi

testing - 如何在jmeter中每25分钟运行一次线程

转载 作者:行者123 更新时间:2023-11-28 20:36:12 24 4
gpt4 key购买 nike

我正在使用 header 中包含身份验证 token 的 HTTP GET 请求访问 rest API。所以在一个线程组中,我正在访问身份验证服务器以获取身份验证 token 。在随后的线程组中,我将进行 HTTP GET 请求

TEST plan (property auth)
ThreadGroup(authentication)
http GET to get authentication token
extracting response and putting in auth

Thread group(GET)
http GET

Thread group(GET)
http GET

and soo on

此处身份验证 token 将每 25 分钟过期一次,因此我需要一种机制来每 25 分钟生成一次身份验证 token ,而不会中断正在进行的 HTTP GET 调用的工作

最佳答案

您可以通过以下屏幕截图了解更多详细信息。如果您在这方面仍需要更多帮助,请告诉我。

使用Beanshell 断言将变量存储到属性变量中

Use Beanshell Assertion to store variable into Property variable

这样使用属性变量来取值

Use the property variable in this way to fetch the value

Use the below method to set the delay for Auth Token creation

关于testing - 如何在jmeter中每25分钟运行一次线程,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53625075/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com