深入理解Loadrunner中的Browser Emulation

发表于:2008-11-20 16:41

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

 作者:tacylee    来源:BlogJava

  一:基本介绍

  在Loadrunner的使用中,对于Run-time Settings下的browser emulation设置是比较容易让人产生困惑的地方。下面我们结合sniffer来具体看看每个选项的用途,以及对测试的影响。

 

clip_image002

Browser Emulation 图

  二:案例和工具

  1.测试案例:

  打开网站首页两次,对比不同Browser Emulation设置下loadrunner的行为,脚本如下。

Action()
{
web_url("www.primeton.com",
"URL=http://www.primeton.com/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t2.inf",
"Mode=HTML",
LAST);

web_url("www.primeton.com",
"URL=http://www.primeton.com/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t2.inf",
"Mode=HTML",
LAST);

return0;
}

  2.sniffer工具

  开源工具:Wireshark(前身是ethereal)(www.wireshark.org)

  三:测试过程

  为了方便描述,我们约定用:

  A代表Simulate browser cache

  B代表Cache URLs requiring content(HTMLs)

  C代表Check for newer versions of stored pages every visit to the page

  D代表Download non-HTML resources

  E代表Simulate a new user on each iteratioin

  F代表Clear cache on each iteration

41/41234>
《2023软件测试行业现状调查报告》独家发布~

精彩评论

  • studyboy_0
    2010-10-17 22:09:28

    ding

  • deargodlove
    2008-12-12 14:41:44

    对这个了解比较少,回去试试研究下

关注51Testing

联系我们

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

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

沪ICP备05003035号

沪公网安备 31010102002173号