Visual Studio Web 性能测试,javascript
我正在网页上记录网络性能测试,并且我需要计算从单击按钮到呈现下一个所需页面的时间。 问题是我有很多在单击按钮时触发的客户端逻辑。 因此,当 javascript 执行并且该请求被发送到服务器之后,已经过去了一段时间。
Web性能测试仅记录客户端和服务器之间的Web请求,从不记录javascript时间。
我需要记录点击按钮打开下一页后的实际时间(包括 javascript 时间)
这可以在 Visual Studio Web 性能中完成吗? 如果没有,还有其他选择吗?
多谢。
I am recording web performance test on web page, and I need to count time since I click on button until the next wanted page is rendered.
The problem is that I have a lot of client side logic that is triggered on the button click.
So, some time is past while javascript is executing and after that request is being sent to server.
web performance test records only web request between client and server, javascript time is never recorded.
I need to record actual time since I click to button to next page opening(including javascript time)
Can that be done in Visual Studio Web performance?
If not, is there some alternative?
Thanks a lot.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Telerik 的 Test Studio 的新性能测试功能可测量客户端处理时间。我们划分服务器端和客户端时间。客户端时间基于特定测试步骤的总执行时间减去该步骤的服务器时间。
只要测试的下一步以当前测试 JavaScript 的输出作为先决条件,那么该步骤的客户端时间将包括 JavaScript 完成其工作所需的时间。通常情况就是这样,除非下一步是直接导航步骤。
(披露:我在 Telerik 工作,担任他们的 Test Studio 布道者。)
Telerik's Test Studio's new performance test feature measures client side processing time. We break out server-side and client-side times. Client times are based on a particular test step's total execution time less the server time for that step.
As long as the next step in the test has the output of the current test's JavaScript as a prerequisite then that step's client time will include time needed for the JavaScript to finish its work. This would generally be the case unless the next step is a direct navigation step.
(Disclosure: I work for Telerik as their Test Studio evangelist.)
在高负载场景下测量服务器端性能和客户端渲染时间之间存在很大差异。特别是客户端渲染很大程度上取决于浏览器版本。
如果您想要进行重负载测试,我建议使用 Visual Studio 进行负载测试,以确定服务器处理 http 请求的速度。将客户端渲染与功能和客户端性能测试隔离开来非常重要。
YSlow,HTTPWatch 和 Firebug 是浏览器插件,可让您分析单个页面性能的客户端视图。
Telerik Test Studio 看起来像是一个综合套件,但我没有使用过......幸运的是他们有试用版。
There is a big difference between measuring server side performance during high load scenarios and the rendering time for the client. Especially as client side rendering is going to depend a lot on the browser version.
If you want to do heavy load testing, I would recommend doing the load testing with Visual Studio to determine how quickly the server processes the http requests. It is important to isolate client rendering from your functional and client side performance testing.
YSlow, HTTPWatch and Firebug are browser plugins that allow you to analyze a client view of individual page performance.
The Telerik Test Studio looks like a comprehensive suite, but I have not used it... fortunately they do have a trial version.