jmeter-多用户循环执行(存储token)

1.从cvs文件中读取数据

 

 

 

 

 

登录接口读取文件:

 

 

 2.读取token,保存token

在登录接口下添加

 

设置:

 

 

把token保存为全局变量:

 

 设置:

输入${__setProperty(newtoken,${token},)}

 

 

最后在信息头管理中添加:

 

 

3.设置多用户循环执行

 

然后在step1中设置循环次数就行了。

 

 

 

运行脚本,得出sample是1000。

posted @ 2019-12-17 15:35  大九~  阅读(3378)  评论(0编辑  收藏  举报