不要追求绝对的公平,红尘之中没有公平而言,人活一世,难得糊涂。                                           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


*\ LtC~+fO9[0
51Testing软件测试网 {g|D^Tc

)C$`*~#Nk"Zt'D|0
51Testing软件测试网+O%|5slrq(?J3|
51Testing软件测试网%Gd&W4YVa l4m

lr_start_sub_transaction

)u!yJl.dB!fj0
51Testing软件测试网:V0oIY.k+oR?)q7~

标记子事务的开始

a!@2k9| _f@by#n0
51Testing软件测试网T]0wQ\|

lr_start_transaction51Testing软件测试网:~ma$K{6pt {

y/I_[(e!IY [0标记事务的开始

5U1?9g$x8i&d Q0

_Z~Q.J0lr_end_sub_transaction51Testing软件测试网u XU hcm&N)o2Cd

51Testing软件测试网#R#|nb,[ r&w6g1Z U

标记子事务的结束以便进行性能分析

l&K"z}Tx0
51Testing软件测试网_#O"?$~AY#X*L8}

lr_end_transaction51Testing软件测试网/OV+SA0|

51Testing软件测试网-b~`;Y3Ho E

标记 LoadRunner事务的结束

.?^5K3_o6YBU'b T0
51Testing软件测试网Y GFYz7mh

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

S*mZ(|5KC#n0

5Tx._@:x0脚本:51Testing软件测试网"kPY0~"XF{

51Testing软件测试网&t$i/JU+]4O;f

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

R#E qQ$k] c nj w051Testing软件测试网R4u3P0{ q'rdz"a!K

   lr_think_time(10);

y8E_/b1d [$Mr)_&l*O0

6eOy+urPov0   lr_end_sub_transaction("think time1",LR_PASS);51Testing软件测试网9Kl"B~l6_%]9VF

Xj0~!v)nt0   lr_start_sub_transaction("think time2","t1");51Testing软件测试网)LqW(V e`q"c

51Testing软件测试网4t NW#w*o6LJ0Q

   lr_think_time(10);

O FN|UL6mKi051Testing软件测试网f7`x Y2l7Fc!`/U

   lr_end_sub_transaction("think time2",LR_PASS);51Testing软件测试网'Ig$BZ)OI%@b

[ecY\ c0      lr_end_transaction("t1", LR_AUTO);

H&D-UZS j"M4O%?051Testing软件测试网3T*MJR(H9v1hxF7u

 51Testing软件测试网]l4tV!i5y(x

l*?#_"[t%A p0输出:

8YG*s#[i6R051Testing软件测试网[^"Xf`0e:G_

 

2Fk%k[M(|;^D051Testing软件测试网4@L p#V!u |2j

Action.c(8): Notify: Transaction "t1" started.51Testing软件测试网(lfL\%?0P ]9KrE

51Testing软件测试网Zq QL$G'\

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

o#E'^O&oH Ka051Testing软件测试网]0N lJ)A;c/a4U

Action.c(10): lr_think_time: 10.00 seconds.51Testing软件测试网7~ nY^im4e

K m2G x*[4a~0Action.c(11): Notify: Transaction "think time1" ended with "Pass" status (Duration: 9.9939 Think Time: 9.9892).51Testing软件测试网!? r/PF?4Wc7}

51Testing软件测试网@9~%^jlx.gT)_!C

Action.c(12): Notify: Transaction "think time2" started.

0E%S:Jr6ux3_051Testing软件测试网@.iC I@?)Y

Action.c(13): lr_think_time: 10.00 seconds.51Testing软件测试网ltq `!p~)B

51Testing软件测试网Pt/zA Q*B.V9S

Action.c(14): Notify: Transaction "think time2" ended with "Pass" status (Duration: 9.9954 Think Time: 9.9906).51Testing软件测试网6`5Q0m.rf/v O

51Testing软件测试网7[y5{#C.y]-c_ z

Action.c(15): Notify: Transaction "t1" ended with "Pass" status (Duration: 19.9994 Think Time: 19.9798).51Testing软件测试网B T&t8y u |;Q$k


TAG:

 

评分:0

我来说两句

Open Toolbar