2016/08/30 14:12:34 INFO - jmeter.engine.StandardJMeterEngine: Running the test!
2016/08/30 14:12:34 INFO - jmeter.samplers.SampleEvent: List of sample_variables: []
2016/08/30 14:12:34 INFO - jmeter.gui.util.JMeterMenuBar: setRunning(true,*local*)
2016/08/30 14:12:34 INFO - jmeter.engine.StandardJMeterEngine: Starting ThreadGroup: 1 : Thread Group
2016/08/30 14:12:34 INFO - jmeter.engine.StandardJMeterEngine: Starting 1 threads for group Thread Group.
2016/08/30 14:12:34 INFO - jmeter.engine.StandardJMeterEngine: Thread will continue on error
2016/08/30 14:12:34 INFO - jmeter.threads.ThreadGroup: Starting thread group number 1 threads 1 ramp-up 1 perThread 1000.0 delayedStart=false
2016/08/30 14:12:34 INFO - jmeter.threads.ThreadGroup: Started thread group number 1
2016/08/30 14:12:34 INFO - jmeter.engine.StandardJMeterEngine: All thread groups have been started
2016/08/30 14:12:34 INFO - jmeter.threads.JMeterThread: Thread started: Thread Group 1-1
2016/08/30 14:12:34 INFO - jmeter.services.FileServer: Stored: NewOffenderInfo Alias: NewOffenderInfo@27949741
2016/08/30 14:12:34 ERROR - jmeter.threads.JMeterThread: Test failed! java.lang.IllegalArgumentException: File NewOffenderInfo must exist and be readable
at org.apache.jmeter.services.FileServer.createBufferedReader(FileServer.java:422)
at org.apache.jmeter.services.FileServer.getReader(FileServer.java:388)
at org.apache.jmeter.services.FileServer.getParsedLine(FileServer.java:379)
at org.apache.jmeter.config.CSVDataSet.iterationStart(CSVDataSet.java:196)
at org.apache.jmeter.control.GenericController.fireIterationStart(GenericController.java:405)
at org.apache.jmeter.control.GenericController.fireIterEvents(GenericController.java:397)
at org.apache.jmeter.control.GenericController.next(GenericController.java:158)
at org.apache.jmeter.control.GenericController.nextIsAController(GenericController.java:222)
at org.apache.jmeter.control.GenericController.next(GenericController.java:176)
at org.apache.jmeter.control.LoopController.next(LoopController.java:123)
at org.apache.jmeter.threads.AbstractThreadGroup.next(AbstractThreadGroup.java:87)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:239)
at java.lang.Thread.run(Unknown Source)
2016/08/30 14:12:34 INFO - jmeter.threads.JMeterThread: Thread finished: Thread Group 1-1
2016/08/30 14:12:34 INFO - jmeter.engine.StandardJMeterEngine: Notifying test listeners of end of test
2016/08/30 14:12:34 INFO - jmeter.gui.util.JMeterMenuBar: setRunning(false,*local*)
如果我删除我的CSV文件并运行脚本它会起作用,但只要我放入csv配置,我就无法运行我的脚本。我在EOF = False
上设置了回收,并在EOF =True
和Sharing mode= Current
线程组上设置了停止线程。有人可以帮我找出问题所在吗?
答案 0 :(得分:2)
您需要确保您提到的配置CSV的路径正确无误。根据Jmeter.log文件中的例外情况,它无法找到CSV。
检查以下内容:
文件名正确无误。如果Unix文件名区分大小写,请检查您在CSV数据集配置中提到的文件名和名称。
将CSV文件保存在JMX所在的文件夹中,并在CSV数据集配置中提及文件名。即使您将脚本移动到任何其他框,这也可以避免将来出现混淆。
还要确保文件末尾没有换行符。这将导致错误。
答案 1 :(得分:0)
正如日志所说:
文件NewOffenderInfo必须存在且可在
处读取
您的文件不在此处或没有正确的权利。
答案 2 :(得分:0)
请务必在CSV数据集配置中包含文件扩展名(.csv)。