0
Follow
0
View

Manage in Jmeter the Expiration time of a Token

cxl_lvcm 注册会员
2023-01-24 19:36

Normally when you're getting the token you're getting its TTL as well which could be extracted into a JMeter Variable

So you have 2 options:

  1. Either periodically send the request for the token refresh in another Thread Group (token TTL minus some reasonable number of seconds), the pause between "refreshes" can be introduced using Constant Timer or Flow Control Action sampler

  2. Or make the token refresh a part of the main Thread Group.

    • When you create/refresh the token you can get the current timestamp using time() function and store it into a JMeter Variable
    • Then the current time can be compared to the token refresh timestamp in the If Controller so you will be able to run the refresh request before the current token expires

About the Author

Question Info

Publish Time
2023-01-24 19:36
Update Time
2023-01-24 19:36

Related Question

使用WorkManager在后台播放音频文件

使用React Intl进行回退处理

WINUI 3.0桌面-在代码中添加一个形状到画布

Is there any way to index functions so that I can use them inside a summation in sympy

Nginx提供的静态文件是空的还是不加载?

想问一下怎么循环读取ini文件中的sections

将每个multilinestring转换为一个linestring

VS 音乐的播放(使用mciSendString)

ESP32cam调用arduinojson.h库编译报错

使用Jenkins脚本执行sed命令