LoadRunner参数化功能详解

上一篇 / 下一篇  2011-12-19 14:50:50 / 个人分类:LoadRunner

更新方式

4A%V2L~H E@+Y\0

.      Each Occurrence

E4Q"~(J1MwW9O W*a0

每次遇到参数就进行更新。51Testing软件测试网/R1K/Hyx,`,Y a3}H

多次使用同一参数,而且没有什么关联,例如随机数。51Testing软件测试网^6Y_3D$v5t7[

Each Iteration

5PmNr$}5Z3F!D W+[0

每次迭代时发生更新。 如果参数出现几次,虚拟用户用同一个数值。51Testing软件测试网k tx7u+B4]DC#|q

适用同一个关联的参数。51Testing软件测试网 P$N"eT;M L7`W

Once

DvV f Ww.h0

所有的地方都用同一个数值,包括所以的迭代。

{9D:qg p"n-\@0

文件类型参数分派方法51Testing软件测试网oUHz^;DKU,?

Sequential

|pn4gc({#XX5n0

按照顺序访问。51Testing软件测试网/j"]mN:z,X8P

 

1W)bIU+G,z^0

 

wY'g'RF#v,J`&y0

更新方式

5i^9nfY@6}0

Sequential51Testing软件测试网ql3D'i/k

例子

#o!m/uM(\f]0

1.  51Testing软件测试网^r{ @ U_a1zl4I

Each Iteration51Testing软件测试网M'Ym%\#o

所有用户每次迭代同时取下一个数值。

btDF[7s7B"w0

All the Vusers use Kim in the first iteration, David in the second iteration, Michael inthe third iteration, etc.51Testing软件测试网\7z5` _G'}'G\t

2.  51Testing软件测试网Wg{7nE h t

Each Occurrence51Testing软件测试网3}'yL ~JG,SH

所有用户每次遇到同时取下一个数值,即使在同一个迭代。51Testing软件测试网c.XO`[G

All the Vusers use Kim in the first occurrence, David in the second occurrence,Michael in the third occurrence, etc.

6B)S#hZ5\ p]4CC;o;k |0

3.  51Testing软件测试网,|@'qlZ.b GAL9V

Once51Testing软件测试网6e+qa GQZ

所有用户第一次迭代时同时取第一个值,该用户所有的子迭代值不变。51Testing软件测试网R+L/I;a}j0I1Bxd

If you specified Once, all Vusers take Kim for all iterations.

Q+|u7`f0

 51Testing软件测试网1Vz,Wl1u&|^5X6]

 51Testing软件测试网;DRWr"H-na,u'\;hnk

例子:51Testing软件测试网(I0s,PKW(IaBg

First Name

*a%D(?O_8g'Z0

Kim

6t:n1t$DP T0

David51Testing软件测试网 f1]v"JA[__!~

Michael

S$GMOf0

Jane

I2G&I&spa~0

Ron

:yRpO3T s5a0

Alice51Testing软件测试网)CV+^ ` I;vD{.l

Ken51Testing软件测试网EX1M5A4u

Julie

#o^z7b~2uP"R0cw }$D0

 51Testing软件测试网Vq+|r9[E-C q

没有足够的值,从第一行开始重新取值。

0h%X$O,`+c"a;s_0

 

|FBSy$@(h0

 

mnN-p8c3e,l e0

 51Testing软件测试网K,iW8So l)~

 

C&QuL4sq OU0

 51Testing软件测试网5fOtF3C}L7F

Random:每个虚拟用户开始运行时安排随机的数值。51Testing软件测试网5R^$\ kO&~,L0X

 51Testing软件测试网w9a)s sQO|

 

jX#[AR@(i n%wR7H0

更新方式

-q@3JEh?-S'T0

Random

HRE%_ QoG0

1.   

Q/S4C I+f"q3OYXY0

Each Iteration51Testing软件测试网:Ao@5\0YZ

每次迭代时,随机从数据表中取数。

;Z+zG/ya0

2.   

(ks'l(O x*C0

Each Occurrence51Testing软件测试网 S py!PUQ1S9N!K

每次遇到随机取一个数值,即使在同一个迭代。

2h?4|u3v1Kz0

3.   

&Z&F4f|JW"QS!zR0

Once

B k5g p#E7F e8n0

第一次迭代时随机取值,改用户所有的子迭代值不变。

-WH!U] {5kj R W N0

Unique

Y-PD)r5}Xc0

The Unique method assigns a unique sequential value to the parameter for51Testing软件测试网1t u5p+|c/G&KZ

each Vuser.51Testing软件测试网QO)o&x.m_

 51Testing软件测试网\D$\V @j0qC

更新方式

Y.N8T"g7k;gb&]um0

Unique51Testing软件测试网A"Ho'p'c8N \4r

例子51Testing软件测试网0UB5q6^2dYRt

1.         

*GnMzdx[[;O0

Each Iteration51Testing软件测试网"_ v;z2ao3M9[Ky^

每个用户每次迭代时,虚拟用户取下一个不同的数值。

N*h-K6Gb!n0

If you specified Each Iteration, for a test run of 3 iterations, the first Vuser takes Kim in the first iteration,David in the second, and Michael in the third. The second Vuser takes Jane, Ron, and Alice. The third Vuser,Ken, Julie, and Fred.

(b?d3q7v,n0

 51Testing软件测试网 J(r0CAX O}

2.         

.a;LJm#_n-@C;^z0

Each Occurrence51Testing软件测试网0Z;m)A]H:z#D9C

每个虚拟用户每次遇到取一个新的不同的数值,即使在同一个迭代。51Testing软件测试网_ZrN#we

lr自己决定。

e4S4H;sI8HB0

3.         51Testing软件测试网t;z+ZKQ:P

Once51Testing软件测试网~,SV$h(gv&^8v

每个第一次迭代时取不同值,该用户所有的子迭代值不变。51Testing软件测试网0oN Gw&}4w

If you specified Once, the first Vuser takes Kim for all iterations

O-y4E'{;}0

the second Vuser takes David for all iterations, etc.51Testing软件测试网R Gm`3u

数据必须足够,例如20个虚拟用户,5次迭代,至少要有100个数据。

%{kcd7Cf0

 51Testing软件测试网-N.cH+k2M \7P

First Name51Testing软件测试网:mRXKm#qF

Kim

'{A8MujO0

David

-rHkrhf ?0

Michael

tPN9E)a{ a0

Jane

;We,FOV0

Ron

~/Re_*R1Vc2O {+_0

Alice51Testing软件测试网,hRSb}@

Ken51Testing软件测试网khi4TNu3W#}*UXr

Julie51Testing软件测试网*b JT-O3P)T9F

Fred51Testing软件测试网 h,Le0?.V m.q%v4Tq

 51Testing软件测试网1p*mF,P;\Bd2~

 

TAG:

 

评分:0

我来说两句

Open Toolbar