当我想使用 CSV Data Set Config时,我不断收到此异常:
csv 配置屏幕 http://www.tinyuploads.com/images/RiFs0s.jpg
文件 data2.txt 仅包含一列:
num
19000716285
1148227951
2413658651
我已经尝试了所有可以想象但没有效果的方法。
java.lang.IllegalArgumentException:无法读取文件标题行
原因:java.io.FileNotFoundException: D:\aaa(访问被拒绝)
2012/11/05 09:56:21 ERROR - jmeter.threads.JMeterThread: Test failed! java.lang.IllegalArgumentException: Could not read file header line
at org.apache.jmeter.services.FileServer.reserveFile(FileServer.java:282)
at org.apache.jmeter.config.CSVDataSet.iterationStart(CSVDataSet.java:132)
at org.apache.jmeter.control.GenericController.fireIterationStart(GenericController.java:410)
at org.apache.jmeter.control.GenericController.fireIterEvents(GenericController.java:402)
at org.apache.jmeter.control.GenericController.next(GenericController.java:154)
at org.apache.jmeter.control.GenericController.nextIsAController(GenericController.java:211)
at org.apache.jmeter.control.GenericController.next(GenericController.java:172)
at org.apache.jmeter.control.GenericController.nextIsAController(GenericController.java:211)
at org.apache.jmeter.control.GenericController.next(GenericController.java:172)
at org.apache.jmeter.control.LoopController.next(LoopController.java:108)
at org.apache.jmeter.control.GenericController.nextIsAController(GenericController.java:220)
at org.apache.jmeter.control.GenericController.next(GenericController.java:172)
at org.apache.jmeter.control.LoopController.next(LoopController.java:108)
at org.apache.jmeter.threads.AbstractThreadGroup.next(AbstractThreadGroup.java:86)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:253)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.FileNotFoundException: D:\aaa (Access is denied)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(Unknown Source)
at org.apache.jmeter.services.FileServer.createBufferedReader(FileServer.java:398)
at org.apache.jmeter.services.FileServer.readLine(FileServer.java:325)
at org.apache.jmeter.services.FileServer.readLine(FileServer.java:309)
at org.apache.jmeter.services.FileServer.reserveFile(FileServer.java:280)
... 15 more
编辑现在我完全删除了 CSV 数据集配置节点,我仍然遇到异常......