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

详解loadrunner的think time(原创)

上一篇 / 下一篇  2007-04-24 12:12:26 / 个人分类:其他

)T)m q/hP0lr_start_sub_transaction

'GXmE&j4X0
51Testing软件测试网dcY9Lyt6A#Y

标记子事务的开始

k@U)y6_`^ b0

6q_9Zx@` Uc0lr_start_transaction

?z]us|])s0
51Testing软件测试网1Cr5`K2o7j.q%]

记事务的开始

d YON7|0
51Testing软件测试网a&^wp;Jm1c9vo-[

lr_end_sub_transaction 51Testing软件测试网!{1M~]dZ2M}H

/C:S9\5Tn6P-}b'h0标记子事务的结束以便进行性能分析 51Testing软件测试网!X;i7mf;\%e

;KQ+x/Y\E0lr_end_transaction

m!] wT dXBZu8q0

YI#~&c:i2ES0标记 LoadRunner 事务的结束 51Testing软件测试网W.GT(c~

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

~*?)r'a.h$j't9Z0 51Testing软件测试网 j6x*cD&Q5x y.}2]

脚本

`;g#JB6d#N0

~K;z+O_?0    lr_start_sub_transaction("think time1","t1");

Aa&s'Q(f*e'k0

:d6A a kJJ.ud w0    lr_think_time(10);51Testing软件测试网"J%] t(Baz+w

S rwnCS,X1Y2H0    lr_end_sub_transaction("think time1",LR_PASS);51Testing软件测试网M%\&BUr8T~ z xL.a

51Testing软件测试网![cU8Jy!g#s

    lr_start_sub_transaction("think time2","t1");51Testing软件测试网 {5]6f)n8K`'x!}

51Testing软件测试网3jng]4~l{O

    lr_think_time(10);

j }| vlC)H9M0 51Testing软件测试网/YOh~ PoNL$p:t

    lr_end_sub_transaction("think time2",LR_PASS);51Testing软件测试网U9o.\/ss#p$^A

51Testing软件测试网&~_h'w7Q}n

       lr_end_transaction("t1", LR_AUTO);

ogi0_*Z[p0

po|pa0 

!Y!y3U#l+eN nz0x0

7c {Yx7H@.`0输出:51Testing软件测试网2vH TX0To1q9z

51Testing软件测试网,XY0Aob"Up V

 51Testing软件测试网IYxZ[N

KcHg{#J?w1nU0Action.c(8): Notify: Transaction "t1" started.51Testing软件测试网FS4O"\6w1J7m2m

n*\&D'fqM:^0Action.c(9): Notify: Transaction "think time1" started.

` B Skd(WQ0

%q_8d"TQd0Action.c(10): lr_think_time: 10.00 seconds.

E7VQF*Ey'["S#l0 51Testing软件测试网O$b9]!X9rf

Action.c(11): Notify: Transaction "think time1" ended with "Pass" status (Duration: 9.9939 Think Time: 9.9892).51Testing软件测试网 [7J#C%D@"G9z5J&?

RH3gM*W0y C{0Action.c(12): Notify: Transaction "think time2" started.51Testing软件测试网E+kKgo

:t8R$P~3n$S Gz-CT0Action.c(13): lr_think_time: 10.00 seconds.51Testing软件测试网d"rb]*x;Tm

(xv p7eom v)v4b#O8I0Action.c(14): Notify: Transaction "think time2" ended with "Pass" status (Duration: 9.9954 Think Time: 9.9906).

U opIY0Q/q0

G.W7]:B [r0Action.c(15): Notify: Transaction "t1" ended with "Pass" status (Duration: 19.9994 Think Time: 19.9798).

*C)t ^.c} O/J0
C!KeS1Gu0
&a1|1a8W{8v @"@1d0
5t-~"q~3M\x _0
测试者家园 2006-12-18 12:31 发表评论
51Testing软件测试网c~|R Bx5QK#^J%i

|&S+AN T0Link URL: http://www.cnblogs.com/tester2test/archive/2006/12/18/595530.html

TAG:

 

评分:0

我来说两句

Open Toolbar