在Jmeter中下载嵌入式资源 [英] Downloading Embedded Resources in Jmeter

查看:153
本文介绍了在Jmeter中下载嵌入式资源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到一个典型的问题.

I'm experiencing a typical issue.

对于第一次迭代,我的POST请求中的一个嵌入式资源正在下载,而对于第二次迭代,嵌入式资源都没有下载.

The embedded resources are getting downloaded for one of my POST request for the first iteration, while they all are not when it runs for second iteration.

注意: 在第一次迭代中,POST请求触发了大约22个样本和子样本. 第二次迭代,它会触发大约20个样本和子样本.其余2个子样本未下载.

Note: The first iteration, the POST request fires around 22 sample & sub samples. The second iteration, it fires around 20 sample & sub samples. The rest 2 sub samples not gets downloaded.

任何想法,任何人都可以分享.

Any idea, anyone can please share.

推荐答案

如果您正在使用

Any chance you are using HTTP Cache Manager? When you configure JMeter to download embedded resources and have cache manager enabled JMeter acts like a browser and retrieves matching embedded resources *only once, on subsequent requests they are being returned from cache. Actually this is how your test should be normally behaving as representing real users as close as possible is the main goal of the well-behaved load test

  1. 没有缓存管理器

  1. Without Cache Manager

使用缓存管理器

如果是这种情况,则可以在HTTP缓存管理器中选中清除缓存每次迭代"框,以克服默认行为.如果不是,也许您的应用程序使用了自己的缓存实现,这是您需要与开发人员一起检查的内容.

If this is the case you can tick "Clear cache each iteration" box in the HTTP Cache Manager to overcome the default behavior. If not - maybe your application uses its own caching implementation, this is something you need to check with the developers.

查看如何使JMeter的行为更像真实的浏览器指南,以获取有关在JMeter网络测试中模仿真实用户的更多信息

Check out How To Make JMeter Behave More Like A Real Browser guide for more information on mimicking real users in JMeter web test

这篇关于在Jmeter中下载嵌入式资源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆