专注于软件测试理论+实践,自动化测试(功能、性能),希望广交天下爱好测试的朋友,积极加入我的圈圈!测试者家园期待您的加入!
详解loadrunner的think time(原创)
上一篇 /
下一篇 2007-06-20 16:56:12
MILY: 'Times New Roman'; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: 宋体; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">
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).
Link URL:
http://www.cnblogs.com/tester2test/archive/2006/07/04/442814.html
导入论坛
引用链接
收藏
分享给好友
推荐到圈子
管理
举报
TAG: