An internal error occurred during launching testng in eclipse

sudha vedi picture sudha vedi · Sep 4, 2017 · Viewed 7.3k times · Source

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");
}

}

Answer

sudha vedi picture sudha vedi · Sep 4, 2017

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