所有文章均来自网络(除测试总结部分),如果涉及到版权问题请与我联系,我会及时删除~~~~
详解loadrunner的think time(转贴)
上一篇 /
下一篇 2007-01-18 08:48:05
/ 个人分类:性能测试
51Testing软件测试网YL
ld.r"b~eO
lr_start_sub_transaction51Testing软件测试网C6E2Px4S|
标记子事务的开始51Testing软件测试网:t&G2Qo,UIj
lr_start_transaction
8I3bKT%S0标记事务的开始51Testing软件测试网qKTQ;O%~#W
lr_end_sub_transaction
*Ct$gU
X!R Zb0标记子事务的结束以便进行性能分析
_#g8Qk:hb8r$R0lr_end_transaction
b:`:| P]o`0标记LoadRunner事务的结束
%SL0Z'RY*nA0思考时间大于阈值时生成:使用思考时间的阈值。如果录制思考时间小于该阈值,VuGen 将不会生成思考时间语句。您也可以指定阈值。默认值为 3 - 如果思考时间少于 3 秒,VuGen 将不会生成思考时间语句。如果禁用此选项,VuGen 将不会生成任何思考时间。(默认情况下启用)51Testing软件测试网/|$] s7|\vo
脚本:
F2_dUjz{x0 lr_start_sub_transaction("think time1","t1");51Testing软件测试网FVu0hl&t])`"bzX
lr_think_time(10);
[#N#~0P+B)P.Zc"S&@0 lr_end_sub_transaction("think time1",LR_PASS);
3]'c7Dnc9T8~"]0 lr_start_sub_transaction("think time2","t1");51Testing软件测试网/x6?)dg2d0|1gj
lr_think_time(10);
9f
P.^*Uo6^Vt;v3B0 lr_end_sub_transaction("think time2",LR_PASS);
Nu;Nm
w0 lr_end_transaction("t1", LR_AUTO);
$FDEdZzoJ0 51Testing软件测试网,j(g&ga6}Y*O
输出:
3n4G8A+g+]&Cj}*r0
i q2Aj,B0Action.c(8): Notify: Transaction "t1" started.
%y4n[f B2C/i0Action.c(9): Notify: Transaction "think time1" started.