云层专访:他和他的LoadRunner

发表于:2010-1-06 16:22

字体: | 上一篇 | 下一篇 | 我要投稿

 作者:陈霁    来源:51Testing软件测试网原创

分享:

掌握了工具不等于能做好性能测试

  LoadRunner现在在国内很流行,很多人都在学,究其原因和工具测试的流行有一定的关系。由于效率问题,手工测试的比例在逐渐的下降,而性能继功能后成为软件质量的另一个被关注点,与其说是LoadRunner的流行,不如说性能测试在被重视。而LoadRunner作为HP前Mercury公司开发的一款商业性能测试工具,适用面广,界面友好,功能全并且相对稳定,这些都成为了它被广泛使用的关键。

  LoadRunner的优点很多,例如对协议的支持完整,脚本开发简便,提供了大量的函数支持,直接包含了脚本开发,负载生成,后期分析工具,并且还提供了大量后续的产品线支持,及强大的技术支持……同时随着使用人数的增多,相关的技术讨论和资料也较多,对于新人来说选择该工具学习更为简便。

  除了商用的LoadRunner外,一些开源的性能测试工具也在逐渐成熟,例如Jmeter,OpenSTA在某些方面并不比LoadRunner差,只是相关资料较少而已,不便于新手入门和学习。

  不管学习和使用什么工具,有一点必须明确,掌握了工具并不等于能做好性能测试。

  性能测试是为了了解当多用户访问系统时,系统的工作情况。

  在性能测试的过程中,LR可以帮助我们用自动化的技术实现模拟用户行为对服务器产生负载。

  它可以在性能测试中负责负载的生成和相关的监控。一个优秀的性能测试工程师,要能够通过LR对系统进行各种真实情况负载的模拟,监控得到该负载下的状态,并且能够进一步分析产生瓶颈的原因。

  LoadRunner是个很好的工具,它的各个模块可以在性能测试的各个阶段帮助你完成相关的工作,但是要做好性能测试,工具再强大,也必须要有好的理论和方法支持。反之,有了理论和方法,却没有合适的兵器也是不行的。

  所以对于很多新人来说,不断学习工具使用的同时,学习掌握性能测试的流程和方法也是十分必要的。

  再多说两句,其实在国内测试领域目前的状态下,完整的实施整个性能测试过程,最大的困难来自于流程、规范和人。性能测试需要在一开始就实施,定义,监控。其资源的投入是大部分普通公司无法承受的,作为性能测试人员,如何获得全公司的认可和支持,也是在现实中需要克服的最大困难。只有公司全力支持了,才能真正意义上的做好性能测试。

下一页:性能测试进阶指南——打通从工具到实践的脉络

54/5<12345>
《2023软件测试行业现状调查报告》独家发布~

精彩评论

  • cookies
    2010-6-28 16:23:35

    1, 打开recording options,在internet protocol下的recording中选择recording level为HTML-based script,点击HTML Advanced,选择script type为A script containing explicit.即可。
    2, 选择使用URL_based script录制。
    另外,附上帮助中的这个错误代码的说明:
    Message Code 27979

    Requested form not found

    The form was not found in the page received from the server. Possible reasons: (i) The current or a previous HTML page was changed after the script was recorded. (ii) A previous request navigated to a wrong page or failed. (iii) One or more web_submit_form arguments are missing or incorrect (especially for manually coded, parameterized, or correlated functions). (iv) The server returned an unexpected page (e.g., under excessive load).

    Troubleshooting

    If the current or previous HTML page was changed, look for the correct properties of the form used in the text (e.g., action), and change it in the script.
    If your snapshots and extended log are disabled, enable them and run the script again.
    (i) To enable Snapshots: Select Tools > General Options > Correlation, and check the Save correlation information during replay box.
    (ii) To enable Extended Log: Select Run-time Settings > General: Log, and check Enable logging, Always send messages, Extended log, Data returned by server, Advanced trace.
    Compare the record and replay snapshots for each step in the script from the beginning, and locate the first difference. If you identify a difference in the snapshots, locate the corresponding HTTP request in both the recording log and the extended log. Compare the requests and, if they are different, have the replay issue exactly the same request. This can be done, for example, by adding web_add_header (for adding missing headers or adjusting existing ones), web_remove_auto_header (for removing extra headers), and web_add_cookie (for missing cookies).
    If some correlation is missing, (e.g., the recording and replay runs have different session IDs), use the correlation tool to locate and handle such cases.

  • jasonxu
    2010-3-30 20:09:33

    可能是提交的数据有问题,不合法,导致服务器报500错误

  • 云层
    2010-3-01 15:12:20

    这是你服务器返回的500错误,具体原因请询问开发人员,可能还是initial脚本的动态处理有问题

  • 赵泠子
    2010-2-24 08:40:20

    问一下:用LR录制登陆时,我们软件每次都报错,手工操作不报错。
    报错提示为:未将对象引用到对象实例
    LR日志显示为:
    Action.c(314): Error -26612: HTTP Status-Code=500 (Internal Server Error) for "http://192.168.0.119:801/web/Main/Main_Frm_ConterEx.aspx"   [MsgId: MERR-26612]
    Action.c(314): web_url("Main_Frm_ConterEx.aspx") highest severity level was "ERROR", 5492 body bytes, 240 header bytes   [MsgId: MMSG-26388]

关注51Testing

联系我们

快捷面板 站点地图 联系我们 广告服务 关于我们 站长统计 发展历程

法律顾问:上海兰迪律师事务所 项棋律师
版权所有 上海博为峰软件技术股份有限公司 Copyright©51testing.com 2003-2024
投诉及意见反馈:webmaster@51testing.com; 业务联系:service@51testing.com 021-64471599-8017

沪ICP备05003035号

沪公网安备 31010102002173号