[英]An internal error occurred during launching testng in eclipse
I have created the simple test class and getting error while executing it "An internal error occurred during: "Launching test". java.lang.NullPointerException". 我已经创建了简单的测试类,并在执行它时出错:“在发生内部错误:“启动测试”。java.lang.NullPointerException”。
I am fed up with this problem. 我受够了这个问题。 I searched a lot on google and applied all the possible solutions but still getting same problem.
我在Google上搜索了很多,并应用了所有可能的解决方案,但仍然遇到相同的问题。 I know, it is configuration problem but not able to figure out where?
我知道,这是配置问题,但无法弄清楚在哪里?
Followed Steps to create the project: 按照以下步骤创建项目:
Applied solution : 应用解决方案:
Source Code: 源代码:
package usermigration;
import org.testng.annotations.Test;
public class test {
@Test
public void a()
{
System.out.println("a");
}
}
looks like it's a regression introduced by PR #351 , it should now be fixed in the beta channel: http://beust.com/eclipse-beta
, will deploy a hotfix soon. 看起来这是PR #351引入的回归,现在应该在beta通道中对其进行修复:
http://beust.com/eclipse-beta
: http://beust.com/eclipse-beta
,将很快部署一个修补程序。
-- Edit -编辑
now the hotfix 6.12.0.201709050550 is released: https://dl.bintray.com/testng-team/testng-eclipse-release/6.12.0/
现在发布了6.12.0.201709050550修补程序:
https://dl.bintray.com/testng-team/testng-eclipse-release/6.12.0/
://dl.bintray.com/testng-team/testng-eclipse-release/6.12.0/
Finally I have identified the root cause. 最后,我确定了根本原因。 I have removed the M2E jars from eclipse and it resolved the problem.
我已经从Eclipse中删除了M2E罐子,它解决了这个问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.