不要追求绝对的公平,红尘之中没有公平而言,人活一世,难得糊涂。                                           it is no use doing what you like, you have got to like what you do.

详解loadrunner的think time

上一篇 / 下一篇  2007-04-18 16:55:36 / 个人分类:Mercury LoadRunner


A'~%YC$pQJ6I w&Px0

(lx'LH[_0

BCG d2v)P/X |0
51Testing软件测试网f/yZ]ugZ&Tr

w5^l0d2[ Y8sFA0lr_start_sub_transaction

6q"p1kt1s;t"q J2vV0

]+WXT _ p,d0标记子事务的开始51Testing软件测试网H!p w6zh0r._

51Testing软件测试网f'pOKl!N$U

lr_start_transaction

]-I6Nv|D%H E0
51Testing软件测试网qp0x-p3U/H

标记事务的开始51Testing软件测试网H{5L5O%W!]&Jwe1h8D4C

c;fb%Qh K0lr_end_sub_transaction51Testing软件测试网'fX^PAz!l@+c

u4klu-MD0J/~0标记子事务的结束以便进行性能分析

P)R^&op$U&k Qg2yx0

2V;yM+n&V2K[ i0lr_end_transaction

8Le-}~.L.m2`K_9r0
51Testing软件测试网qUd(j:KsX

标记 LoadRunner事务的结束51Testing软件测试网^%EijC!s

51Testing软件测试网vdHykW/N

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

)['W-iB Ez@ RW051Testing软件测试网;^%Uf'L8{y1X3D

脚本:51Testing软件测试网9@p%f*amn

r4S7Ow)s!djh0   lr_start_sub_transaction("think time1","t1");

\&Er5Po Z:T0

hlq0~Q8C*Pi7}0   lr_think_time(10);

X7w h'`'x0

?:S4QJYY0   lr_end_sub_transaction("think time1",LR_PASS);51Testing软件测试网!W Nc [,b3sp#g

51Testing软件测试网2CO$|@IZ V0[

   lr_start_sub_transaction("think time2","t1");

,HD6I-y.o|.u051Testing软件测试网3Rh%CHnd1ew)hV fx

   lr_think_time(10);

6S2~ v#~/]0

'spGt}N0   lr_end_sub_transaction("think time2",LR_PASS);51Testing软件测试网.hGIKg o gU

g0gU!X1\7|3N0      lr_end_transaction("t1", LR_AUTO);51Testing软件测试网V0[~sa }'P0]

:e+_\oO~ F}6_0 

6Nr lk;DU0

e Ni F.d+] F9H:E0输出:51Testing软件测试网9A+`P9uOdUm)Y?

51Testing软件测试网-TJmR3@J

 

X5zK4m5a}O8o t051Testing软件测试网;WN A)]GU Tg-H[

Action.c(8): Notify: Transaction "t1" started.51Testing软件测试网w v%t E4wz1T

wi9R5J,nC0Action.c(9): Notify: Transaction "think time1" started.51Testing软件测试网9_*nh-qk8n U4jn

?9m_ G[R+i0Action.c(10): lr_think_time: 10.00 seconds.

(O(?$bS?3T051Testing软件测试网%Fqe9r'r.xw1S+I

Action.c(11): Notify: Transaction "think time1" ended with "Pass" status (Duration: 9.9939 Think Time: 9.9892).51Testing软件测试网 H I5MIW9J8~ ?

51Testing软件测试网JE wa'qz*w+r|6f

Action.c(12): Notify: Transaction "think time2" started.51Testing软件测试网` um*?~g

5l7B:zl.j/A~r0Action.c(13): lr_think_time: 10.00 seconds.

Ulh!gq"w5Z#n051Testing软件测试网 S)~5M*["i?E)n

Action.c(14): Notify: Transaction "think time2" ended with "Pass" status (Duration: 9.9954 Think Time: 9.9906).51Testing软件测试网 @6vL \_SD8aCr

51Testing软件测试网MTU6y4Q

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

`!{vPd0_YW$W(`0

TAG:

 

评分:0

我来说两句

Open Toolbar