Each Occurrence
每次遇到參數就進(jìn)行更新。
多次使用同一參數,而且沒(méi)有什么關(guān)聯(lián),例如隨機數。
Each Iteration
每次迭代時(shí)發(fā)生更新。 如果參數出現幾次,虛擬用戶(hù)用同一個(gè)數值。
適用同一個(gè)關(guān)聯(lián)的參數。
Once
所有的地方都用同一個(gè)數值,包括所以的迭代。
文件類(lèi)型參數分派方法
Sequential
按照順序訪(fǎng)問(wèn)。
MILY: StoneSerif; FONT-SIZE: 12pt" lang=EN-US> |
更新方式 |
Sequential |
例子 |
1. |
Each Iteration |
所有用戶(hù)每次迭代同時(shí)取下一個(gè)數值。 |
All the Vusers use Kim in the first iteration, David in the second iteration, Michael inthe third iteration, etc. |
2. |
Each Occurrence |
所有用戶(hù)每次遇到同時(shí)取下一個(gè)數值,即使在同一個(gè)迭代。 |
All the Vusers use Kim in the first occurrence, David in the second occurrence,Michael in the third occurrence, etc. |
3. |
Once |
所有用戶(hù)第一次迭代時(shí)同時(shí)取第一個(gè)值,該用戶(hù)所有的子迭代值不變。 |
If you specified Once, all Vusers take Kim for all iterations. |
例子:
First Name |
Kim |
David |
Michael |
Jane |
Ron |
|
Ken |
Julie |
沒(méi)有足夠的值,從第一行開(kāi)始重新取值。
Random:每個(gè)虛擬用戶(hù)開(kāi)始運行時(shí)安排隨機的數值。
|
更新方式 |
Random |
1. |
Each Iteration |
每次迭代時(shí),隨機從數據表中取數。 |
2. |
Each Occurrence |
每次遇到隨機取一個(gè)數值,即使在同一個(gè)迭代。 |
3. |
Once |
第一次迭代時(shí)隨機取值,改用戶(hù)所有的子迭代值不變。 |
Unique
The Unique method assigns a unique sequential value to the parameter for
each Vuser.
|
更新方式 |
Unique |
例子 |
1. |
Each Iteration |
每個(gè)用戶(hù)每次迭代時(shí),虛擬用戶(hù)取下一個(gè)不同的數值。 |
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. |
2. |
Each Occurrence |
每個(gè)虛擬用戶(hù)每次遇到取一個(gè)新的不同的數值,即使在同一個(gè)迭代。 |
lr自己決定。 |
3. |
Once |
每個(gè)第一次迭代時(shí)取不同值,該用戶(hù)所有的子迭代值不變。 |
If you specified Once, the first Vuser takes Kim for all iterations the second Vuser takes David for all iterations, etc. |
數據必須足夠,例如20個(gè)虛擬用戶(hù),5次迭代,至少要有100個(gè)數據。
文章來(lái)源于領(lǐng)測軟件測試網(wǎng) http://kjueaiud.com/