51Testing软件测试论坛
标题:
ant执行testng时报错
[打印本页]
作者:
alchaochao
时间:
2015-4-26 17:57
标题:
ant执行testng时报错
在用ant执行testng时报错了,求指导
test:
[testng] java.lang.NoClassDefFoundError: com/beust/jcommander/ParameterException
[testng] at java.lang.Class.getDeclaredMethods0(Native Method)
[testng] at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
[testng] at java.lang.Class.getMethod0(Unknown Source)
[testng] at java.lang.Class.getMethod(Unknown Source)
[testng] at sun.launcher.LauncherHelper.getMainMethod(Unknown Source)
[testng] at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)
[testng] Caused by: java.lang.ClassNotFoundException: com.beust.jcommander.ParameterException
[testng] at java.net.URLClassLoader$1.run(Unknown Source)
[testng] at java.net.URLClassLoader$1.run(Unknown Source)
[testng] at java.security.AccessController.doPrivileged(Native Method)
[testng] at java.net.URLClassLoader.findClass(Unknown Source)
[testng] at java.lang.ClassLoader.loadClass(Unknown Source)
[testng] at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
[testng] at java.lang.ClassLoader.loadClass(Unknown Source)
[testng] ... 6 more
[testng] The tests failed.
BUILD SUCCESSFUL
Total time: 1 second
作者:
alchaochao
时间:
2015-5-3 12:09
已解决,原因是少了jcommander.jar包,加入包后重新运行OK
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2