LoadRunner 和隐藏元素
我正在尝试编写一个 LoadRunner 脚本来强调我的 Web 应用程序。然而,一些链接是使用 jQuery 显示的(它们最初是隐藏的)。
我尝试过使用 Web(点击和脚本)协议,它记录了我的所有操作。但是,当我尝试重播脚本时,它找不到动态显示的链接。
我还尝试使用 Web (HTTP/HTML)。然而,由于某种原因,该协议根本没有记录我的任何行为。 Ajax(点击和脚本)做同样的事情。
我需要能够支持动态页面元素(通过 jQuery)以及 AJAX 页面/请求。这是否可能?如果可以,我应该使用什么协议/配置?
我正在运行 LoadRunner 9.52。
I'm trying to write a LoadRunner script to stress my web application. However some of the links are displayed (they are initially hidden) using jQuery.
I have tried using the Web (Click and Script) protocol, which records all of my actions. However when I try replaying the script it cannot find the links that are dynamically displayed.
I also tried using Web (HTTP/HTML). However for some reason this protocol does not record any of my actions at all. Ajax (Click and Script) does the same thing.
I need to be able to support dynamic page elements (via jQuery) as well as AJAX pages/requests. Is this possible and if so what protocol/configuration should I use?
I'm running LoadRunner 9.52.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,使用 LoadRunner 测试动态生成的站点(从 PHP 到 JSP 到 ASP 到 JQUERY)是可能且常见的。一种解决方案与另一种解决方案之间的一些机制有所不同,但核心是存在一定程度的与会话、状态和业务流程相关的动态行为,需要在每种情况下加以解决。
我想后续问题如下:
Yes, this is both possible and common to use LoadRunner to test sites that are generated dynamically, from PHP to JSP to ASP to JQUERY. Some of the mechanics differ from one solution to the next, but at the core there is a level of dynamic behavior related to session, state and business process that needs to be addressed in each case.
I guess the follow up questions are the following: