详解loadrunner的think time

发表于:2007-4-17 15:08

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

 作者:fish_yy    来源:51testing博客

lr_start_sub_transaction

标记子事务的开始

lr_start_transaction

标记事务的开始

lr_end_sub_transaction

标记子事务的结束以便进行性能分析

lr_end_transaction

标记 LoadRunner事务的结束

    思考时间大于阈值时生成:使用思考时间的阈值。如果录制思考时间小于该阈值,VuGen将不会生成思考时间语句。您也可以指定阈值。默认值为3 -如果思考时间少于3秒,VuGen将不会生成思考时间语句。如果禁用此选项,VuGen将不会生成任何思考时间。(默认情况下启用)

脚本:

   lr_start_sub_transaction("think time1","t1");

   lr_think_time(10);

   lr_end_sub_transaction("think time1",LR_PASS);

   lr_start_sub_transaction("think time2","t1");

   lr_think_time(10);

   lr_end_sub_transaction("think time2",LR_PASS);

      lr_end_transaction("t1", LR_AUTO);

 

输出:

 

Action.c(8): Notify: Transaction "t1" started.

Action.c(9): Notify: Transaction "think time1" started.

Action.c(10): lr_think_time: 10.00 seconds.

Action.c(11): Notify: Transaction "think time1" ended with "Pass" status (Duration: 9.9939 Think Time: 9.9892).

Action.c(12): Notify: Transaction "think time2" started.

Action.c(13): lr_think_time: 10.00 seconds.

Action.c(14): Notify: Transaction "think time2" ended with "Pass" status (Duration: 9.9954 Think Time: 9.9906).

Action.c(15): Notify: Transaction "t1" ended with "Pass" status (Duration: 19.9994 Think Time: 19.9798).

此文来自51testing博客,转载请注明出处
原始链接:http://blog.51testing.com/html/40/19940_itemid

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

关注51Testing

联系我们

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

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

沪ICP备05003035号

沪公网安备 31010102002173号