我正在尝试在JMeter中加载我的CSV文件,并且我一直收到以下错误。我将文件结构设置为
C:\ claimstest \ claimsload.jmx
C:\ claimstest \ policies.csv
非常感谢任何帮助。我还附上了CSV数据集配置
的屏幕截图2012/05/30 10:09:20 INFO - jmeter.threads.JMeterThread: Thread finished: Thread Group 1-1
2012/05/30 10:09:20 INFO - jmeter.engine.StandardJMeterEngine: Ending thread Thread Group 1-1
2012/05/30 10:09:20 INFO - jmeter.engine.StandardJMeterEngine: Notifying test listeners of end of test
2012/05/30 10:09:20 INFO - jmeter.services.FileServer: Close: policies.csv
2012/05/30 10:09:20 INFO - jmeter.gui.util.JMeterMenuBar: setRunning(false,*local*)
2012/05/30 10:09:20 INFO - jmeter.engine.StandardJMeterEngine: Test has ended on host null
2012/05/30 10:15:17 INFO - jmeter.engine.StandardJMeterEngine: Running the test!
2012/05/30 10:15:17 INFO - jmeter.gui.util.JMeterMenuBar: setRunning(true,*local*)
2012/05/30 10:15:17 INFO - jmeter.engine.StandardJMeterEngine: Starting 1 threads for group Thread Group.
2012/05/30 10:15:17 INFO - jmeter.engine.StandardJMeterEngine: Thread will continue on error
2012/05/30 10:15:18 INFO - jmeter.engine.StandardJMeterEngine: All threads have been started
2012/05/30 10:15:18 INFO - jmeter.threads.JMeterThread: Thread started: Thread Group 1-1
2012/05/30 10:15:18 INFO - jmeter.services.FileServer: Stored: policies.csv
2012/05/30 10:15:18 INFO - jmeter.services.FileServer: Stored:
2012/05/30 10:15:18 ERROR - jmeter.threads.JMeterThread: Test failed! java.lang.IllegalArgumentException: Could not read file header line
at org.apache.jmeter.services.FileServer.reserveFile(FileServer.java:275)
at org.apache.jmeter.config.CSVDataSet.iterationStart(CSVDataSet.java:132)
at org.apache.jmeter.control.GenericController.fireIterationStart(GenericController.java:387)
at org.apache.jmeter.control.GenericController.fireIterEvents(GenericController.java:379)
at org.apache.jmeter.control.GenericController.next(GenericController.java:144)
at org.apache.jmeter.control.GenericController.nextIsAController(GenericController.java:200)
at org.apache.jmeter.control.GenericController.next(GenericController.java:162)
at org.apache.jmeter.control.LoopController.next(LoopController.java:108)
at org.apache.jmeter.threads.AbstractThreadGroup.next(AbstractThreadGroup.java:75)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:268)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.FileNotFoundException: C:\claimstest (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:341)
at org.apache.jmeter.services.FileServer.readLine(FileServer.java:318)
at org.apache.jmeter.services.FileServer.readLine(FileServer.java:302)
at org.apache.jmeter.services.FileServer.reserveFile(FileServer.java:273)
... 10 more
2012/05/30 10:15:18 INFO - jmeter.threads.JMeterThread: Thread finished: Thread Group 1-1
2012/05/30 10:15:18 INFO - jmeter.engine.StandardJMeterEngine: Ending thread Thread Group 1-1
2012/05/30 10:15:18 INFO - jmeter.engine.StandardJMeterEngine: Notifying test listeners of end of test
2012/05/30 10:15:18 INFO - jmeter.services.FileServer: Close: policies.csv
2012/05/30 10:15:18 INFO - jmeter.gui.util.JMeterMenuBar: setRunning(false,*local*)
2012/05/30 10:15:18 INFO - jmeter.engine.StandardJMeterEngine: Test has ended on host null
答案 0 :(得分:0)
如果有人遇到这样的错误,请尝试使用管理员权限启动apache J-meter。 你只需要说“以管理员身份运行”&amp;它工作,它接受bin目录或系统中任何地方提供的csv路径。它对我有用。
答案 1 :(得分:0)
您使用 CSV数据集配置,空文件名(“”)。
JMeter尝试从路径{current directory} + "" = "C:\claimstest"
读取CSV文件。
但“C:\claimstest
”是目录。
JMeter写错误:
引起:java.io.FileNotFoundException:C:\ claimstest(访问被拒绝)
使用Ctrl+F
并找到“CSV
”。
您找到 CSV数据集配置,空文件名,将其删除。