测试先从
1
个模拟用户开始,每持续运行测试脚本
2
分钟,再增加
1
个用户,直至
30
个模拟用户。测试时负载在
2
个客户端上基本平均分配,
Monitor
所在客户端没有用来产生
Vuser
。
LoadRunner Monitor
的参数设置如下:
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
参数设置:
<!--[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”,内容空白