Visual Studio Web性能测试不下载图像(Visual Studio web performance test does not download images)

编程入门 行业动态 更新时间:2024-10-25 12:26:52
Visual Studio Web性能测试不下载图像(Visual Studio web performance test does not download images)

测试工具: Visual Studio Web性能测试。

我正在为包含大量产品图片的电子商务网站创建负载测试。 在记录Web测试时,它只记录页面请求/响应时间而不是图像下载时间。 因此,在测试页面加载时间总是显示低于实际值。 即使是小提琴手也会在检查包括图像负载在内的每个请求时给出正确的页面时间。

我已经尝试将依赖于解析的请求设置为true,但仍然无效。

问:如何测试图像下载时间以及页面加载时间?

Test tool: Visual Studio web performance test.

I am creating load test for an ecommerce website, which contains lots of product images. While recording the web test it just records the page reqeust/response time and not the image download time. So on testing page load time always shows lower than what it actually is. Even fiddler gives proper page time as it checks for every request including image load.

I have tried setting parse dependent request as true also but still not working.

Q: How do i test the image download time along with page load time?

最满意答案

Visual Studio Web性能测试会处理相关请求,但它们不会处理Javascript和其他活动组件。 许多网页通过Javascript,XML,Json等混合描述他们的图像等。 这些都不会由网络测试处理。 如果图像等由这些非html片段描述,则测试将需要采取特殊操作来加载它们。 例如,通过编写一个插件,该插件从响应中读取相关的图像描述并生成相关的请求以加载它们。 这样做的机制高度依赖于网站的实际文件。

Visual Studio web performance tests do process dependent requests but they do not process Javascript and other active components. Many web pages describe their images etc via a mix of Javascript, XML, Json and so on. None of this will be processed by a web test. If the images etc are described by these non-html pieces then the test will need to take special action to load them. For example, by writing a plugin that reads the relevant image descriptions from a response and generating dependent requests to load them. The mechanisms for doing this are highly dependent on the actual files of the website.

更多推荐

本文发布于:2023-08-04 10:37:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1415334.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:性能测试   图像   Studio   Web   Visual

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!