《LoadRunner性能測試實戰》圖書配套性能測試課程:
2、LoadRunner Controller使用基礎(點擊進入)
更新方式:<?xml:namespace prefix = o />
. Each Occurrence
每次遇到參數就進行更新。
多次使用同一參數,而且沒有什麼關聯,例如隨機數。
Each Iteration
每次迭代時發生更新。 如果參數出現幾次,虛擬用戶用同一個數值。
適用同一個關聯的參數。
Once
所有的地方都用同一個數值,包括所以的迭代。
文件類型參數分派方法
Sequential
按照順序訪問。
|
更新方式 |
Sequential |
例子 |
1.
|
Each Iteration |
所有用戶每次迭代同時取下一個數值。 |
All the Vusers use Kim in the first iteration, David in the second iteration, Michael inthe third iteration, etc. |
2.
|
Each Occurrence |
所有用戶每次遇到同時取下一個數值,即使在同一個迭代。 |
All the Vusers use Kim in the first occurrence, David in the second occurrence,Michael in the third occurrence, etc. |
3.
|
Once |
所有用戶第一次迭代時同時取第一個值,該用戶所有的子迭代值不變。 |
If you specified Once, all Vusers take Kim for all iterations.
|
例子:
First Name |
Kim |
David |
Michael |
Jane |
Ron |
<?xml:namespace prefix = st1 />Alice |
Ken |
Julie |
沒有足夠的值,從第一行開始重新取值。
Random:每個虛擬用戶開始運行時安排隨機的數值。
|
更新方式 |
Random |
1.
|
Each Iteration |
每次迭代時,隨機從數據表中取數。 |
2.
|
Each Occurrence |
每次遇到隨機取一個數值,即使在同一個迭代。 |
3.
|
Once |
第一次迭代時隨機取值,改用戶所有的子迭代值不變。 |
Unique
The Unique method assigns a unique sequential value to the parameter for
each Vuser.
|
更新方式 |
Unique |
例子 |
1.
|
Each Iteration |
每個用戶每次迭代時,虛擬用戶取下一個不同的數值。 |
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 |
每個虛擬用戶每次遇到取一個新的不同的數值,即使在同一個迭代。 |
lr自己決定。 |
3.
|
Once |
每個第一次迭代時取不同值,該用戶所有的子迭代值不變。 |
If you specified Once, the first Vuser takes Kim for all iterations the second Vuser takes David for all iterations, etc. |
數據必須足夠,例如20個虛擬用戶,5次迭代,至少要有100個數據。
First Name |
Kim |
David |
Michael |
Jane |
Ron |
Alice |
Ken |
Julie |
Fred |