JMeter Non Gui模式 - 无法运行。请告知

时间:2017-03-08 23:21:16

标签: jmeter performance-testing

我有一个包含no of threads = 30ramp up = 1的线程组。我在这个线程组中有一个transaction controller。在Transaction controller内,有synchronizing timer设置为5 users per group,还有多个module controllers指向位于相同测试计划下的不同test fragments。这些test fragments中的每一个都包含transaction controlleruniform random timer设置为1000ms

我正在尝试以非gui模式执行脚本,如下所示

jmeter -n -t [path of script] -l [path of output file]

测试停止,我在日志文件中看到以下消息。当我实际将线程数设置为30时,不确定为什么日志显示0个线程。

2017/03/08 17:00:32 INFO  - jmeter.JMeter: Creating summariser <summary> 
2017/03/08 17:00:32 INFO  - jmeter.engine.StandardJMeterEngine: Running the test! 
2017/03/08 17:00:32 INFO  - jmeter.samplers.SampleEvent: List of sample_variables: [ID] 
2017/03/08 17:00:32 INFO  - jmeter.samplers.SampleEvent: List of sample_variables: [ID] 
2017/03/08 17:00:32 INFO  - jmeter.engine.util.CompoundVariable: Note: Function class names must contain the string: '.functions.' 
2017/03/08 17:00:32 INFO  - jmeter.engine.util.CompoundVariable: Note: Function class names must not contain the string: '.gui.' 
2017/03/08 17:00:33 INFO  - jmeter.JMeter: Running test (1489014033090) 
2017/03/08 17:00:33 INFO  - jmeter.engine.StandardJMeterEngine: Starting ThreadGroup: 1 : Thread Group 
2017/03/08 17:00:33 INFO  - jmeter.engine.StandardJMeterEngine: Starting 0 threads for group Thread Group. 
2017/03/08 17:00:33 INFO  - jmeter.engine.StandardJMeterEngine: Thread will continue on error 
2017/03/08 17:00:33 INFO  - jmeter.threads.ThreadGroup: Starting thread group number 1 threads 0 ramp-up 1 perThread Infinity delayedStart=false 
2017/03/08 17:00:33 INFO  - jmeter.threads.ThreadGroup: Started thread group number 1 
2017/03/08 17:00:33 INFO  - jmeter.engine.StandardJMeterEngine: All thread groups have been started 
2017/03/08 17:00:33 INFO  - jmeter.engine.StandardJMeterEngine: Notifying test listeners of end of test 
2017/03/08 17:00:33 INFO  - jmeter.reporters.Summariser: summary =      0 in 00:00:00 = ******/s Avg:     0 Min: 9223372036854775807 Max: -9223372036854775808 Err:     0 (0.00%)

请指导我哪里出错了。感谢。

1 个答案:

答案 0 :(得分:1)

在线程数之前存在额外的空间。在ThreadGroup中。删除空格后,它正在工作。