LoadRunner中的事务

发表于:2008-8-02 15:49

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

 作者:未知    来源:网络转载

分享:

  解释:

  Ø “事务”统计的时间为

web_url("Folder.jsp_4",

  "URL=http://172.17.16.5/xpc71/jsp/com/folder/Folder.jsp",

  "Resource=0",

  "RecContentType=text/html",

  "Referer=http://172.17.16.5/xpc71/LoginAction.do",

  "Snapshot=t10.inf",

  "Mode=HTML",

  LAST);

  所执行的时间;

  Ø “事务1”统计的时间为:

web_url("Folder.jsp_4",

    "URL=http://172.17.16.5/xpc71/jsp/com/folder/Folder.jsp",

    "Resource=0",

  "RecContentType=text/html",

  "Referer=http://172.17.16.5/xpc71/LoginAction.do",

  "Snapshot=t10.inf",

  "Mode=HTML",

  LAST);

web_url("TemplateAdminAction.do",

  "URL=http://172.17.16.5/xpc71/TemplateAdminAction.do?forwardID=1",

  "Resource=0",

  "RecContentType=text/html",

  "Referer=http://172.17.16.5/xpc71/LoginAction.do",

  "Snapshot=t11.inf",

  "Mode=HTML",

  LAST);

  所执行的时间;

  Ø “事务2”统计的时间为:

web_url("Folder.jsp_4",

    "URL=http://172.17.16.5/xpc71/jsp/com/folder/Folder.jsp",

    "Resource=0",

    "RecContentType=text/html",

    "Referer=http://172.17.16.5/xpc71/LoginAction.do",

    "Snapshot=t10.inf",

    "Mode=HTML",

    LAST);

web_url("TemplateAdminAction.do", 

"URL=http://172.17.16.5/xpc71/TemplateAdminAction.do?

forwardID=1",

    "Resource=0",

    "RecContentType=text/html",

    "Referer=http://172.17.16.5/xpc71/LoginAction.do",

    "Snapshot=t11.inf",

    "Mode=HTML",

    LAST);

web_submit_form("ScheduleCreationAction.do",

    "Snapshot=t12.inf",

    ITEMDATA,

    "Name=PTName", "Value=test", ENDITEM,

    "Name=headerTempID", "Value=ttte", ENDITEM,

    "Name=selectHeader", "Value=1", ENDITEM,

    "Name=schTempID", "Value=preProductionDetailTemplate", ENDITEM,

    LAST);

  所执行的时间;

  从上文我们可以看出事务之间可以嵌套使用,相互之间没有影响,事务计时仅仅以事务名称为标识。

  总结:

  • 使用LoadRunner transactions可以度量:

    – 业务流程中每一步所花费的时间

    – 整个业务流程所花费的时间

    – 业务流程中每一步的性能指标可以自动度量

  • 可以在录制过程中和录制完成后增加LoadRunner transactions

  • 利用“automatic LoadRunner transactions”可以很方便的度量每一步的性能指标。

33/3<123
价值398元的测试课程免费赠送,填问卷领取吧!

关注51Testing

联系我们

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

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

沪ICP备05003035号

沪公网安备 31010102002173号