An internal error occurred during launching testng in eclipse

落爺英雄遲暮 提交于 2019-12-24 07:30:02

问题


I have created the simple test class and getting error while executing it "An internal error occurred during: "Launching test". 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. I know, it is configuration problem but not able to figure out where?

Followed Steps to create the project:

  • Open Eclipse
  • Install TestNG Plugin
  • Create Java Project
  • Add TestNG Library
  • Create TestNG Class
  • Execute that class (as above)

Applied solution :

  • Reinstalled the Eclipse.
  • Reinstalled the TestNG Plugin
  • Uninstalled the MVC TestNG plugin

Source Code:

package usermigration;

import org.testng.annotations.Test;

public class test {


@Test   
public void a()
{
    System.out.println("a");
}

}

回答1:


Finally I have identified the root cause. I have removed the M2E jars from eclipse and it resolved the problem.




回答2:


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.


-- Edit

now the hotfix 6.12.0.201709050550 is released: https://dl.bintray.com/testng-team/testng-eclipse-release/6.12.0/



来源:https://stackoverflow.com/questions/46041736/an-internal-error-occurred-during-launching-testng-in-eclipse

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!