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

详解loadrunner的think time(原创)

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

 

'|(N h4U8Zr.e0  51Testing软件测试网g9x _ Tk'_\M QX

51Testing软件测试网dI!nw^ e

 51Testing软件测试网5_ qm0q qzY ?-h

;X#zE2`WAm0lr_start_sub_transaction

Q` \rRw0
51Testing软件测试网 j9S7R6@Y a&GaMo)q

标记子事务的开始 51Testing软件测试网#K {}@(r L b1}

5N G(\v"]iJG.J0lr_start_transaction

B[`ccc0m0
51Testing软件测试网[T5DC$o

标记事务的开始 51Testing软件测试网,r&H ps$]D#h/y

Wdw U6Y aY0lr_end_sub_transaction

*L`d L.o4t p{0

b Qi)Q9m d H&e0标记子事务的结束以便进行性能分析 51Testing软件测试网q?,S@a

51Testing软件测试网7H8J3slMN$R6U#F(S

lr_end_transaction

^5m+_t)k:b:U0

)s*j plt)Ma-TU[0标记 LoadRunner 事务的结束 51Testing软件测试网T7K b8X:g0s6}{kp

51Testing软件测试网o@8D;?Y9kE1xG v

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

^0g K*],np;D:J D$hf0脚本:

:r7G1B-dz#p6X3X0

EK#Z MO xzf xl;M0    lr_start_sub_transaction("think time1","t1");

(v:x+d Q z9GMy;gC0a?0 51Testing软件测试网U u| U6Q/^?

    lr_think_time(10);51Testing软件测试网nl%]$I trQ

cDj0D`h0    lr_end_sub_transaction("think time1",LR_PASS);51Testing软件测试网i9MC)QSV&M

!n~ d'GM Y:DV:}V?0    lr_start_sub_transaction("think time2","t1");51Testing软件测试网a^2b uP:g$`8J

51Testing软件测试网3q.o c1IL

    lr_think_time(10);

/F,I;B*[V5w!H+q0

R/km,iEDK0    lr_end_sub_transaction("think time2",LR_PASS);51Testing软件测试网{.`KF,C8l%q'^ s

51Testing软件测试网Z/}cHJ]G6Pc?

       lr_end_transaction("t1", LR_AUTO);51Testing软件测试网pt)@|C

51Testing软件测试网Y3I?bLXX6m.Y~9\

 51Testing软件测试网+X*JMS0s4?{(EH[[

51Testing软件测试网^A,\(~L$Ok-uW

输出:51Testing软件测试网t:?OGgu7_:z

Z\CG0y7{0 

z1A,vB3iCr%Gsw%O0

1NL O:L@H@hY#[0Action.c(8): Notify: Transaction "t1" started.51Testing软件测试网^LQ%R!p~

51Testing软件测试网3fI| X d`'?F'L

Action.c(9): Notify: Transaction "think time1" started.

,xNZ3Q V:J,DK0

5q7}uU^0Action.c(10): lr_think_time: 10.00 seconds.

;SC J5a|iY2W0 51Testing软件测试网%S5V*{:E j7w5F

Action.c(11): Notify: Transaction "think time1" ended with "Pass" status (Duration: 9.9939 Think Time: 9.9892).

+lOwaf0

d5U"x N*_7k^@&E-k0Action.c(12): Notify: Transaction "think time2" started.51Testing软件测试网3H F3RT}x(ya

cwbb;]!U/T-v0Action.c(13): lr_think_time: 10.00 seconds.51Testing软件测试网M'{w}#xXEi*b

51Testing软件测试网@gG8rW

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

e{,`.Y6X'Cja#b0

3?}K4xA a7Q N0Action.c(15): Notify: Transaction "t1" ended with "Pass" status (Duration: 19.9994 Think Time: 19.9798).

4h9L5B7a-x+q(\5?0
cDf.IdE3M051Testing软件测试网 S.bJ%~(E
测试者家园 2006-07-04 21:41 发表评论

;ruBTD0
B(vn ]C1DK;XY0Link URL: http://www.cnblogs.com/tester2test/archive/2006/07/04/442814.html

TAG:

 

评分:0

我来说两句

Open Toolbar