測試先從
1
個模擬用戶開始,每持續(xù)運行測試腳本
2
分鐘,再增加
1
個用戶,直至
30
個模擬用戶。測試時負載在
2
個客戶端上基本平均分配,
Monitor
所在客戶端沒有用來產(chǎn)生
Vuser
。
LoadRunner Monitor
的參數(shù)設置如下:
1
、
Schedule Builder
的設置(與測試步驟對應):
<!--[if !supportLists]--> l?????????? <!--[endif]--> 選擇“Schedule by Scenario”
<!--[if !supportLists]--> l?????????? <!--[endif]--> 選擇“Initialize all Vuser before Run”
<!--[if !supportLists]--> l?????????? <!--[endif]--> Ramp Up:設置Start “1”Vusers? every “00:02:00”
<!--[if !supportLists]--> l?????????? <!--[endif]--> Duration:設置Run for “00:30:00”after the ramp up has been completed
?
2
、
Run-Time Settings
參數(shù)設置:
<!--[if !supportLists]--> l?????????? <!--[endif]--> Pacing:Start new iteration,選中“As soon as the previous iteration ends”
<!--[if !supportLists]--> l?????????? <!--[endif]--> Log:選中“Enable Logging”,“Send messages only when an error occurs”,“Standard Log”
<!--[if !supportLists]--> l?????????? <!--[endif]--> Think Time:選中“Ignore think time”(think time=0)
<!--[if !supportLists]--> l?????????? <!--[endif]--> Miscellaneous:選中Multithreading,“Run Vuser as a thread”;其他不作限制
<!--[if !supportLists]--> l?????????? <!--[endif]--> Speed Simulation:選中“Use maximum bandwidth”
<!--[if !supportLists]--> l?????????? <!--[endif]--> Browser Emulation:只選中“Simulate a new user on each iteration”
<!--[if !supportLists]--> l?????????? <!--[endif]--> ?Proxy:選中“No proxy”
<!--[if !supportLists]--> l?????????? <!--[endif]--> Preferences:只選中“Hits per second and HTTP codes”“Response bytes per second”“File and line in automatic transaction names”“Non-critical resource errors as warnings”
???
ContentCheck:選中“Enable ContentCheck during replay”,內容空白