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

详解loadrunner的think time(原创)

上一篇 / 下一篇  2007-01-12 11:13:09 / 个人分类:性能测试

  51Testing软件测试网i!jJ9? }-x}/w

 

G3fkMf&q;} n$m0 51Testing软件测试网lPjpC$D_ R

 51Testing软件测试网-uw_6}z{%D.B \F

51Testing软件测试网SGV+Y t3R c6qd2K

lr_start_sub_transaction 51Testing软件测试网pn gS9B_B%vQ

51Testing软件测试网;?5r p4vq ZC

标记子事务的开始

n;qPCB&C,p'{0

$vh!_j?0lr_start_transaction

G"x#]9uc*@[%yP0

Y;UwXC(]tn0标记事务的开始 51Testing软件测试网1l @-yA2]r{

"k#V S:\]CR"C o0lr_end_sub_transaction 51Testing软件测试网7q\1F9\)mQ"M*c

RB9W:LY(?2O'Yr$y?0标记子事务的结束以便进行性能分析

rv$N#PWU:^,x6I(sX0

s'P)K)@^*V&U8Qz0lr_end_transaction

8i-c%\U'n'~*R0Dz0

!treue&~0H0标记 LoadRunner 事务的结束 51Testing软件测试网P#Y-MhUL kW

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

&Z+@ ~kIsn \:e0

4{lA Y!C%H0脚本:51Testing软件测试网U:n:w.P'f)A'hQ K

51Testing软件测试网 R'L$w*S9pX,p1df|

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

(We[/qI+w*s ~/t0

)m Be5S(M+@}0    lr_think_time(10);51Testing软件测试网YdH})Z7s5GI

51Testing软件测试网Oa ]2H_jd[[

    lr_end_sub_transaction("think time1",LR_PASS);

.v4r~g3{0

TNl'Q5|:~ x(Es0    lr_start_sub_transaction("think time2","t1");

2jr PL }"o(X[ j/j0

nGq7Sg8Y0    lr_think_time(10);

1R Cc4s:x ?0

s(xGi.`6e6Y0    lr_end_sub_transaction("think time2",LR_PASS);51Testing软件测试网"Z x$l"szI;s

51Testing软件测试网S0hD%d@7CyT

       lr_end_transaction("t1", LR_AUTO);51Testing软件测试网,u Zn;J^4Ui B

$M%hjPfX P;MQ0 51Testing软件测试网5r@-O%T H,}3f

)pn#E8B AZ}8?(k0输出:51Testing软件测试网-[3\3WW"s xJQ

51Testing软件测试网Le$D#I@9`y@

 51Testing软件测试网%H#H0gL2g`*pN

51Testing软件测试网!a6g9{'N5AepU1N

Action.c(8): Notify: Transaction "t1" started.51Testing软件测试网]@.JNg W

7T0wlM,O4ZrT7~*C5l0Action.c(9): Notify: Transaction "think time1" started.

n6X#Q Fj u0 51Testing软件测试网 ry&Vmz"v z_

Action.c(10): lr_think_time: 10.00 seconds.51Testing软件测试网5k$_\"|W#Y"| T

6z!{t(@ h b PS0Action.c(11): Notify: Transaction "think time1" ended with "Pass" status (Duration: 9.9939 Think Time: 9.9892).

@|6l Lj;Q.r3Be0 51Testing软件测试网Y.]d6qP yl W

Action.c(12): Notify: Transaction "think time2" started.51Testing软件测试网J9p6@i%\j8D&J0loz

-f~&P,J1M6fc!?0Action.c(13): lr_think_time: 10.00 seconds.

K x#B:|V[v0 51Testing软件测试网"e~&hSZ/d

Action.c(14): Notify: Transaction "think time2" ended with "Pass" status (Duration: 9.9954 Think Time: 9.9906).51Testing软件测试网B{%I4_1{9q%o

51Testing软件测试网7j4mtx:`-e*ob/A

Action.c(15): Notify: Transaction "t1" ended with "Pass" status (Duration: 19.9994 Think Time: 19.9798).51Testing软件测试网,^I5uH6|d4R)t

51Testing软件测试网 Pb1z TwC mOn4p2JZ
51Testing软件测试网"|G;{eY4rW t
测试者家园 2006-07-04 21:41 发表评论

9xACiL~.E0
;{ _8B(u[:V0Link URL: http://www.cnblogs.com/tester2test/archive/2006/07/04/442814.html

TAG:

 

评分:0

我来说两句

Open Toolbar