我的地盘我做主! 博客:http://tester2test.cnblogs.com/   msn:win_soft@163.com

详解loadrunner的think time(原创)

上一篇 / 下一篇  2007-01-12 11:13:09 / 个人分类:性能测试

  51Testing软件测试网oE oC3HS,n/X:h

 

"W;k?U{0 51Testing软件测试网L ez'b [h`1r

 

^S ^{ Ct-Z!R0
51Testing软件测试网A+s9|5r Z/i:n0aV(G

lr_start_sub_transaction 51Testing软件测试网/E4[0c0Z@/p?_(Q q*{

51Testing软件测试网_}r;Uvm1Sbf/w

标记子事务的开始 51Testing软件测试网X*}q'DcM%v

J#tR*oh't0lr_start_transaction 51Testing软件测试网cK;sBt/M| Z/j&U

] X!f\fa.v0w O0标记事务的开始

mEp|(V0

q(X0s*]}*d0lr_end_sub_transaction

2U8U {?,nm3v0
51Testing软件测试网:{^/joP'[

标记子事务的结束以便进行性能分析 51Testing软件测试网-aIw_`8zq

51Testing软件测试网Ph+Mq?

lr_end_transaction 51Testing软件测试网 yk [a?7he

51Testing软件测试网w K zZp9LvF

标记 LoadRunner 事务的结束 51Testing软件测试网#U h r6bST U|

51Testing软件测试网 rYS2_r^!y.?

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

4|MD0g6j9l9K\0

9\1hSN;T8A0脚本:

h"|E1^:j BOU0

-NS0d`-Y:h;\0    lr_start_sub_transaction("think time1","t1");

p"QHL5^)c}0

3M ca7iAW m0    lr_think_time(10);51Testing软件测试网y ~$Cl`"pf

51Testing软件测试网'N a-|-F5D4|\:d#z

    lr_end_sub_transaction("think time1",LR_PASS);51Testing软件测试网$OdGb~V:E4{*\2qk

51Testing软件测试网;Kf/zG{*G:]!~ ~"oJE

    lr_start_sub_transaction("think time2","t1");51Testing软件测试网S H(g(nEP5z C R*}

51Testing软件测试网8s] eQ d,Im T-^}| n

    lr_think_time(10);

u ZZ e o)}:c%W'y:t0

~1~,J`+V_xp#W0    lr_end_sub_transaction("think time2",LR_PASS);51Testing软件测试网${+eP3^ Y(DQ U"i

6_'HB+t-x u?0       lr_end_transaction("t1", LR_AUTO);51Testing软件测试网*k!f2@+bDJL

51Testing软件测试网"D0^/oR.x3S)d9M^2@

 

-BLrd(t \ J0 51Testing软件测试网v5QEV]

输出:

v7hG S h&] P0

.|y,A&AtGl{!T q0 

H|:d r"yoG0

Z7@4Wu1u+r0Action.c(8): Notify: Transaction "t1" started.51Testing软件测试网` TOV9gd

51Testing软件测试网ym ~&l;OD9y:W i

Action.c(9): Notify: Transaction "think time1" started.51Testing软件测试网-d G#x~0kht,c

51Testing软件测试网+M5K(PH$}g0M)Xo

Action.c(10): lr_think_time: 10.00 seconds.51Testing软件测试网o5PL:z5\@8OY _r~

q:X"N;g#y'rk:fU5IQm#p0Action.c(11): Notify: Transaction "think time1" ended with "Pass" status (Duration: 9.9939 Think Time: 9.9892).

)Wt}Aew0

,mF#B0AX0Action.c(12): Notify: Transaction "think time2" started.

s,Wdv-L:J"~5Y MO e0 51Testing软件测试网 L9c!OFU \0g

Action.c(13): lr_think_time: 10.00 seconds.51Testing软件测试网c)w/C |&F.@ o

51Testing软件测试网A!rC|-\s

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

2^(xmMfV?0 51Testing软件测试网YCJ5Q|#i[GS

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

^bkZAwe0
[e$U1NO.W Hn9h!W2P0
,Pp4| V K.Q.} @4R8h0
测试者家园 2006-07-04 21:41 发表评论

6a{-ze;}\;j0
8i&~b7Yz1e8F1nK,}l0Link URL: http://www.cnblogs.com/tester2test/archive/2006/07/04/442814.html

TAG:

 

评分:0

我来说两句

Open Toolbar