简体   繁体   English

jmeter http请求在while循环中缓存结果

[英]jmeter http request in a while loop is caching the results

在此处输入图片说明 In JMeter in a while loop I'm sending an http request and storing few json values from the response. 在JMeter的while循环中,我正在发送一个http请求,并从响应中存储一些json值。 In this loop, I'm getting same json value each time the loop is repeated. 在此循环中,每次重复循环都会得到相同的json值。 I have tried 我努力了

HTTP Cookie Manager HTTP Cookie管理器

HTTP cache manager HTTP缓存管理器

to clear cache. 清除缓存。 But is there way to clear the cache/RAM during while loop? 但是有没有办法在while循环中清除缓存/ RAM? I need new values to be stored in Response and jsonpath Expression variables. 我需要将新值存储在Response和jsonpath表达式变量中。

Thanks for the help! 谢谢您的帮助!

Just Add Http Coockie Manager and Http Cache Manager inside While Controler 只需在While Controler内添加Http Coockie ManagerHttp Cache Manager

在此处输入图片说明

Don't forget to check clear cache and clear cookie checkbox in both managers 不要忘记在两个管理器中选中清除缓存和清除cookie复选框

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM