测试工具: 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.
更多推荐
发布评论