我正在尝试将IP欺骗作为Blazemeter教程中的指南 我通过单个IP成功完成了它,但是当我通过CSV文件配置多个IP时,我无法达到预期的效果。
访问日志中只显示单个IP。
从JMeter可以清楚地看出,2个请求是从不同的IP生成的
屏幕截图1:
Screenshot2:
2016/08/22 12:11:40 INFO - jmeter.engine.StandardJMeterEngine: Running the test!
2016/08/22 12:11:40 INFO - jmeter.samplers.SampleEvent: List of sample_variables: []
2016/08/22 12:11:40 INFO - jmeter.gui.util.JMeterMenuBar: setRunning(true,*local*)
2016/08/22 12:11:40 INFO - jmeter.engine.StandardJMeterEngine: Starting ThreadGroup: 1 : Thread Group
2016/08/22 12:11:40 INFO - jmeter.engine.StandardJMeterEngine: Starting 1 threads for group Thread Group.
2016/08/22 12:11:40 INFO - jmeter.engine.StandardJMeterEngine: Thread will continue on error
2016/08/22 12:11:40 INFO - jmeter.threads.ThreadGroup: Starting thread group number 1 threads 1 ramp-up 1 perThread 1000.0 delayedStart=false
2016/08/22 12:11:40 INFO - jmeter.threads.ThreadGroup: Started thread group number 1
2016/08/22 12:11:40 INFO - jmeter.engine.StandardJMeterEngine: All thread groups have been started
2016/08/22 12:11:40 INFO - jmeter.threads.JMeterThread: Thread started: Thread Group 1-1
2016/08/22 12:11:40 INFO - jmeter.services.FileServer: Stored: D:\apache-jmeter-3.0\apache-jmeter-3.0\bin\IP.csv
2016/08/22 12:11:40 INFO - jmeter.protocol.http.sampler.HTTPHCAbstractImpl: Local host = IAPC76
2016/08/22 12:11:40 INFO - jmeter.protocol.http.sampler.HTTPHC4Impl: HTTP request retry count = 0
2016/08/22 12:11:42 INFO - jmeter.util.BeanShellTestElement: Ip should behttp://localhost:8080/
2016/08/22 12:11:43 INFO - jmeter.util.BeanShellTestElement: Ip should behttp://localhost:8080/
2016/08/22 12:11:43 INFO - jmeter.threads.JMeterThread: Stop Thread seen: org.apache.jorphan.util.JMeterStopThreadException: End of file detected
2016/08/22 12:11:43 INFO - jmeter.threads.JMeterThread: Thread finished: Thread Group 1-1
2016/08/22 12:11:43 INFO - jmeter.engine.StandardJMeterEngine: Notifying test listeners of end of test
2016/08/22 12:11:43 INFO - jmeter.services.FileServer: Close: D:\apache-jmeter-3.0\apache-jmeter-3.0\bin\IP.csv
2016/08/22 12:11:43 INFO - jmeter.gui.util.JMeterMenuBar: setRunning(false,*local*)
2016/08/22 12:12:16 INFO - jmeter.engine.StandardJMeterEngine: Running the test!
2016/08/22 12:12:16 INFO - jmeter.samplers.SampleEvent: List of sample_variables: []
2016/08/22 12:12:16 INFO - jmeter.gui.util.JMeterMenuBar: setRunning(true,*local*)
2016/08/22 12:12:16 INFO - jmeter.engine.StandardJMeterEngine: Starting ThreadGroup: 1 : Thread Group
2016/08/22 12:12:16 INFO - jmeter.engine.StandardJMeterEngine: Starting 1 threads for group Thread Group.
2016/08/22 12:12:16 INFO - jmeter.engine.StandardJMeterEngine: Thread will continue on error
2016/08/22 12:12:16 INFO - jmeter.threads.ThreadGroup: Starting thread group number 1 threads 1 ramp-up 1 perThread 1000.0 delayedStart=false
2016/08/22 12:12:16 INFO - jmeter.threads.ThreadGroup: Started thread group number 1
2016/08/22 12:12:16 INFO - jmeter.engine.StandardJMeterEngine: All thread groups have been started
2016/08/22 12:12:16 INFO - jmeter.threads.JMeterThread: Thread started: Thread Group 1-1
2016/08/22 12:12:16 INFO - jmeter.services.FileServer: Stored: D:\apache-jmeter-3.0\apache-jmeter-3.0\bin\IP.csv
2016/08/22 12:12:34 INFO - jmeter.util.BeanShellTestElement: Ip should behttp://192.168.1.140:8080/
2016/08/22 12:12:34 INFO - jmeter.util.BeanShellTestElement: Ip should behttp://192.168.1.140:8080/
2016/08/22 12:12:34 INFO - jmeter.threads.JMeterThread: Stop Thread seen: org.apache.jorphan.util.JMeterStopThreadException: End of file detected
2016/08/22 12:12:34 INFO - jmeter.threads.JMeterThread: Thread finished: Thread Group 1-1
2016/08/22 12:12:34 INFO - jmeter.engine.StandardJMeterEngine: Notifying test listeners of end of test
2016/08/22 12:12:34 INFO - jmeter.services.FileServer: Close: D:\apache-jmeter-3.0\apache-jmeter-3.0\bin\IP.csv
2016/08/22 12:12:34 INFO - jmeter.gui.util.JMeterMenuBar: setRunning(false,*local*)