我在Windows 7上使用JMeter 4.0和最新的Lock File Config plugin,
它正在使用文件名,但选项Also check filemask
无效
您还可以使用通配符指定文件名以检查现有锁文件
日志错误:
2018-03-27 14:13:01,124 DEBUG k.a.j.c.LockFile: Return filename: c:/temp/2.txt
2018-03-27 14:13:01,124 DEBUG k.a.j.c.LockFile: Return filemask: *2*
2018-03-27 14:13:01,124 INFO k.a.j.c.LockFile: and by wildcard at C:\temp*2*
2018-03-27 14:13:01,124 DEBUG k.a.j.c.LockFile: Return filemask: *2*
2018-03-27 14:13:01,124 DEBUG k.a.j.c.LockFile: Return filemask: *2*
2018-03-27 14:13:01,124 DEBUG k.a.j.c.LockFile: Return filemask: *2*
2018-03-27 14:13:01,125 ERROR o.a.j.JMeter: Uncaught exception:
java.lang.NoClassDefFoundError: kg/apc/io/FileSystem
at kg.apc.jmeter.config.LockFile.testStarted(LockFile.java:45) ~[jmeter-plugins-lockfile-0.1.jar:?]
at kg.apc.jmeter.config.LockFile.testStarted(LockFile.java:21) ~[jmeter-plugins-lockfile-0.1.jar:?]
at org.apache.jmeter.engine.StandardJMeterEngine.notifyTestListenersOfStart(StandardJMeterEngine.java:215) ~[ApacheJMeter_core.jar:4.0 r1823414]
at org.apache.jmeter.engine.StandardJMeterEngine.run(StandardJMeterEngine.java:384) ~[ApacheJMeter_core.jar:4.0 r1823414]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_25]
Caused by: java.lang.ClassNotFoundException: kg.apc.io.FileSystem
at java.net.URLClassLoader$1.run(Unknown Source) ~[?:1.8.0_25]
at java.net.URLClassLoader$1.run(Unknown Source) ~[?:1.8.0_25]
at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_25]
at java.net.URLClassLoader.findClass(Unknown Source) ~[?:1.8.0_25]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_25]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_25]
... 5 more
是否可以/应该使用特定的案例掩码?或者我不应该使用这个选项?我应该添加一个依赖jar吗?是特定于操作系统的问题吗?
答案 0 :(得分:1)
java.lang.NoClassDefFoundError:kg / apc / io / FileSystem
你在jmeter-plugins-common中丢失了JMeter Classpath jar,从上面的链接下载它,然后放到你的JMeter安装的“lib”文件夹中,然后重启JMeter以选择.jar。
如果没有使用JMeter Plugins Manager自动安装jar,让JMeter Plugins开发人员和维护人员了解它是有意义的,您可以通过JMeter Plugins forum
与他们联系