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

详解loadrunner的think time(原创)

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

  51Testing软件测试网~pA4PDE

  51Testing软件测试网!FKy,S o:y+`6P&H

51Testing软件测试网S*?_FKsA

 51Testing软件测试网G ?&xvX-W ^/l}k

51Testing软件测试网TlzGS`3Hm {

lr_start_sub_transaction 51Testing软件测试网bL0a~E

51Testing软件测试网-_ NT w @*n

标记子事务的开始 51Testing软件测试网)JB(y7`v)Rq8t

51Testing软件测试网V_4N)WXq

lr_start_transaction 51Testing软件测试网 kA+a[,S LM

!Z,P7p:kJ5ev)J0标记事务的开始

3Q(r&q[\+t&]0

2`!u XQ;I(^0lr_end_sub_transaction 51Testing软件测试网3fC7Hd[

+lW4GO*q1J:x0标记子事务的结束以便进行性能分析

:e"t4F)K'zz0
51Testing软件测试网#[z+V9Zd}\{X

lr_end_transaction 51Testing软件测试网3Cs#T4r4lur.|

sE.O&R:CEd0标记 LoadRunner 事务的结束 51Testing软件测试网#U l|;Ql)C

51Testing软件测试网w&F.Nju

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

Jf)q \%KI&Q0

:`;|0}fT0脚本:

bN(eW}n0

|[&LU0{ke7H0    lr_start_sub_transaction("think time1","t1");51Testing软件测试网g:R(yJ+C y

J6m4yJ `&W!a0    lr_think_time(10);

,B$M.{q@0^)dt2v3M0

%PD(v Gdes.y0    lr_end_sub_transaction("think time1",LR_PASS);51Testing软件测试网"O%V~NsF rrW

?W-Z?](w)h~)H*F0    lr_start_sub_transaction("think time2","t1");51Testing软件测试网K XMCON

51Testing软件测试网*ey5\!JG?P'?

    lr_think_time(10);51Testing软件测试网 iYDS_ O8N5d%M5Uo:]

51Testing软件测试网4}J4@%eE ZBf ?

    lr_end_sub_transaction("think time2",LR_PASS);51Testing软件测试网.t IoK!p

51Testing软件测试网%w+E7fe_t!P2c4Un/E

       lr_end_transaction("t1", LR_AUTO);51Testing软件测试网 ? |S.F i*z

r NP(dC*d|0 51Testing软件测试网"})D"K6ZxT4e J6^

51Testing软件测试网6A)NU8Y}Y Bq ?l

输出:

/j a-CyE|Fw$p bv0

.?.E4] x4u"l n:J*cuu0 

@4y4|;V B%l%w tP9y0

.g|t0f3I/W0Action.c(8): Notify: Transaction "t1" started.

8t%lt*hqA\;}0 51Testing软件测试网F$ZZ.c ]t5d

Action.c(9): Notify: Transaction "think time1" started.51Testing软件测试网,n1J LKjem~

zZ{~(j0Action.c(10): lr_think_time: 10.00 seconds.

;c!J n8l})g s0 51Testing软件测试网1e(t/s-F4i [6s

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

IN F[)UBJ ~0

@'aA+tsGL0Action.c(12): Notify: Transaction "think time2" started.51Testing软件测试网e-U}+YhVf5n:v"u

{$W!AoB-Jf7p0Action.c(13): lr_think_time: 10.00 seconds.

9W/Ut8\#g0 51Testing软件测试网)l&y |Y]R^1c ~3`*E

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

fn2L"Cl/f1N0

A+j/gl1o;C N.N0Action.c(15): Notify: Transaction "t1" ended with "Pass" status (Duration: 19.9994 Think Time: 19.9798).51Testing软件测试网,I%S$D7t1[G|I9@$A@


?VX6b/sN4e H051Testing软件测试网/h ^I"O&q*n
测试者家园 2006-07-04 21:41 发表评论

I0K/Z8@$k;z051Testing软件测试网(]sT6z;~ f5g,M.c}
Link URL: http://www.cnblogs.com/tester2test/archive/2006/07/04/442814.html

TAG:

 

评分:0

我来说两句

Open Toolbar