F1@bq"dL N3o$~M0lr_start_sub_transaction51Testing软件测试网G6we0l.D1o/wEb6Qa
标记子事务的开始51Testing软件测试网GH(YYX~q
lr_start_transaction
#z2q2l]"mj!r0标记事务的开始51Testing软件测试网eo6^
_/`h
lr_end_sub_transaction51Testing软件测试网V1]xg.Sf1X
标记子事务的结束以便进行性能分析51Testing软件测试网9Z(wB7R5m
lr_end_transaction
*Emc[#]8V0标记LoadRunner事务的结束51Testing软件测试网.Td_0l(d{`
思考时间大于阈值时生成:使用思考时间的阈值。如果录制思考时间小于该阈值,VuGen 将不会生成思考时间语句。您也可以指定阈值。默认值为 3 - 如果思考时间少于 3 秒,VuGen 将不会生成思考时间语句。如果禁用此选项,VuGen 将不会生成任何思考时间。(默认情况下启用)
h)f$U(g@&};p9b8A0脚本:51Testing软件测试网{e(U
w;{.L[xa
lr_start_sub_transaction("think time1","t1");
C_4Q2I+Ae C0 lr_think_time(10);51Testing软件测试网]-C.ka.z2{#J$JR8O
lr_end_sub_transaction("think time1",LR_PASS);51Testing软件测试网lJ YXY7\O-`
lr_start_sub_transaction("think time2","t1");51Testing软件测试网 }.M j,M.f0J6i
lr_think_time(10);
3oO|#JW8B0 lr_end_sub_transaction("think time2",LR_PASS);
/U [6\:m+AV,`L0 lr_end_transaction("t1", LR_AUTO);51Testing软件测试网1W)D1D4yP{1]"~$k^
:i,{F7T;V4B4ub0输出:
0?ceAJAG0
p-n-YYe0Action.c(8): Notify: Transaction "t1" started.51Testing软件测试网K(~M:NQqf X
Action.c(9): Notify: Transaction "think time1" started.
7W8A,@~0x0Action.c(10): lr_think_time: 10.00 seconds.51Testing软件测试网*^YqX{*Z
N0rpo;Z
Action.c(11): Notify: Transaction "think time1" ended with "Pass" status (Duration: 9.9939 Think Time: 9.9892).
4^y0NUo'j/m;a1H0Action.c(12): Notify: Transaction "think time2" started.
i,sw%{0?UC0Action.c(13): lr_think_time: 10.00 seconds.51Testing软件测试网#d
V2ZC.Z'j
Action.c(14): Notify: Transaction "think time2" ended with "Pass" status (Duration: 9.9954 Think Time: 9.9906).51Testing软件测试网Iz,vF
N
Action.c(15): Notify: Transaction "t1" ended with "Pass" status (Duration: 19.9994 Think Time: 19.9798).
[MF+H*YS0
tE^ Vg0源文档 <http://cache.baidu.com/c?word=loadrunner&url=http%3A//tester2test%2Ecnblogs%2Ecom/archive/2006/07/04/442814%2Ehtml&b=0&a=2&user=baidu>51Testing软件测试网
xx6P[zM J"_xL
.]0Z;rS$P7C KB0