TestNG启动源未找到时发生内部错误

时间:2018-01-13 17:46:43

标签: java eclipse testng

我创建了一个TestNG类(SampleTest.java),当我将测试用例作为TestNG Test运行时,我收到以下错误。

启动Sample Test遇到了问题。

在“启动SampleTest”期间发生内部错误。

来源未指定

堆栈追踪:

java.lang.IllegalStateException:未指定source     在org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:813)     at org.testng.eclipse.util.param.ParameterSolver.getParserNode(ParameterSolver.java:135)     at org.testng.eclipse.util.param.ParameterSolver.parseParameterNames(ParameterSolver.java:125)     at org.testng.eclipse.util.param.ParameterSolver.solveParameters(ParameterSolver.java:112)     at org.testng.eclipse.util.param.ParameterSolver.getParameterNames(ParameterSolver.java:90)     at org.testng.eclipse.util.param.ParameterSolver.solveParameters(ParameterSolver.java:59)     在org.testng.eclipse.ui.util.ConfigurationHelper.getLaunchSuites(ConfigurationHelper.java:422)     at org.testng.eclipse.launch.TestNGLaunchConfigurationDelegate.createVMRunner(TestNGLaunchConfigurationDelegate.java:296)     at org.testng.eclipse.launch.TestNGLaunchConfigurationDelegate.launchTypes(TestNGLaunchConfigurationDelegate.java:161)     at org.testng.eclipse.launch.TestNGLaunchConfigurationDelegate.launch(TestNGLaunchConfigurationDelegate.java:91)     在org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:885)     在org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:739)     在org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:1039)     在org.eclipse.debug.internal.ui.DebugUIPlugin $ 8.run(DebugUIPlugin.java:1256)     在org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)

Eclipse版本:版本:Oxygen.2版本(4.7.2)

请帮助!!!

0 个答案:

没有答案