Terminology
Before we dive into the step-by-step instructions, it's a good idea to define the terms and make sure the definition is clear.
Master – the system running Jmeter GUI, which controls the test
Slave – the system running jmeter-server, which takes commands from the GUI and send requests to the target system(s)
Target – the webserver we plan to stress test
Environment:
Target IP address: 192.168.5.3
Master IP address: 192.168.5.200
Slave 1&2 IP address: 192.168.5.112, 192.168.5.114
Master Configuration:
Go to jmeter/bin directory,open jmeter.properties in a text editor. Find "remote_hosts=" and add slave's IP address, for example:
remote_hosts=192.168.5.112, 192.168.5.114
Slave Configuration:
On the slave systems, go to jmeter/bin directory and execute jmeter-server.bat
Create Test Plan (on Master)
- Go to jmeter/bin directory and run jmeter.bat to start jmeter GUI.
- Add therad group.
- Set thread properties.
- Add ftp request.
- Set ftp properties. For example , download file from Target.
#Don't use root path as download destination, like "c:/123.exe". You should specific a folder as download destination, like "c:/test/123.exe"
# Username & Password must be filed, even ftp support anonymous login.
- Add Listener : View Results in Table & Summary Report.
Run Test (on Master)
沒有留言:
張貼留言