简体   繁体   English

在Eclipse中启动testng时发生内部错误

[英]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: 按照以下步骤创建项目:

  • Open Eclipse 打开Eclipse
  • Install TestNG Plugin 安装TestNG插件
  • Create Java Project 创建Java项目
  • Add TestNG Library 添加TestNG库
  • Create TestNG Class 创建TestNG类
  • Execute that class (as above) 执行该类(如上所述)

Applied solution : 应用解决方案:

  • Reinstalled the Eclipse. 重新安装了Eclipse。
  • Reinstalled the TestNG Plugin 重新安装了TestNG插件
  • Uninstalled the MVC TestNG plugin 卸载了MVC TestNG插件

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.

相关问题 TestNG 启动时发生内部错误 - TestNG An internal error occurred during launching Eclipse - JUnit - 在“启动 MyMavenModule”期间发生内部错误。 空指针异常 - Eclipse - JUnit - An internal error occurred during: “Launching MyMavenModule”. NullPointerException JUnit4 + Eclipse“启动期间发生内部错误” - JUnit4 + Eclipse “An internal error occurred during Launching” JRE 系统库在 Eclipse 中总是未绑定? (在“启动主程序”期间发生内部错误。模型不适用于 helloWorld) - JRE System Library is always unbound in Eclipse? (An internal error occurred during: "Launching Main". Model not available for helloWorld) 在以下过程中发生内部错误:“启动 <myApp> ”。 Java堆空间 - An internal error occurred during: “Launching <myApp>”. Java heap space 在以下过程中发生内部错误:“启动MyFirstApp”。 java.lang.NullPointerException - An internal error occurred during: “Launching MyFirstApp”. java.lang.NullPointerException 在以下过程中发生内部错误:“计算启动按钮工具提示”。 安装 TestNG 后,Eclipse Kepler 出现 java.lang.IllegalArgumentException - An internal error occurred during: "Compute launch button tooltip". java.lang.IllegalArgumentException with Eclipse Kepler after TestNG installation 启动eclipse时出错:初始化Java工具时发生内部错误 - Error launching eclipse : An internal error occured during initializing java tooling 在以下期间发生内部错误:“ TestNG结果监听作业”。 端口值超出范围:-1 - An internal error occurred during: “TestNG Result Listening Job”. Port value out of range: -1 期间发生内部错误:“启动<My_APP> &quot;. ATTR_EXCLUDE_TEST_CODE - An internal error occurred during: "Launching <My_APP>". ATTR_EXCLUDE_TEST_CODE
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM