I got error as An internal error occurred during Launching learn1test java lang NullPointerException when tried to run a Sample TesNG script can any one please help me to solve the error

0 votes

An internal error occurred during: "Launching learn1test".

Dec 15, 2020 in Selenium by sdsardar
• 120 points

1 answer to this question.

0 votes

Hey, @Sdsardar,

I encountered a problem with similar symptoms today. I'm not sure if it is the same problem but it matches everything in your question.

In my case, the log files said:

!ENTRY org.eclipse.core.jobs 4 2 2015-12-03 15:49:19.369
!MESSAGE An internal error occurred during: "Launching NewTest".
at org.testng.eclipse.maven.MavenTestNGLaunchConfigurationProvider.getVMArgsFromPom(MavenTestNGLaunchConfigurationProvider.java:74)

So my problem was that the TestNG-plugin in Eclipse failed to find the pom-file, as I don't use Maven. Anyway, after uninstalling the optional M2E (Maven...) part of the TestNG Eclipse plugin I could run my TestNG test cases successfully.

If you have the same issue, you uninstall the M2E part in Eclipse by selecting

  • Help
  • Install new software...
  • What is already installed?
  • Select the TestNG M2E software and click uninstall

Hope this helps!

answered Dec 15, 2020 by Rajiv
• 8,910 points

Related Questions In Selenium

0 votes
0 answers
0 votes
2 answers

What is the role of TestNG & JUnit frameworks in Selenium?

TestNG and JUnit are test frameworks . it ...READ MORE

answered Sep 4, 2020 in Selenium by Sri
• 3,190 points
0 votes
2 answers

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,500 points
0 votes
1 answer

Diff between WebDriver listeners and TestNG listeners?

This is not a very important concept ...READ MORE

answered Apr 14, 2018 in Selenium by king_kenny
• 3,710 points
0 votes
2 answers

Problem while using InternetExplorerDriver in Selenium WebDriver

enable trusted connection  in internet explorer by ...READ MORE

answered Aug 31, 2020 in Selenium by Sri
• 3,190 points
0 votes
5 answers
+1 vote
4 answers

How to get typed text from a textbox by using Selenium Webdriver?

Hey Ashmita, to get the typed text ...READ MORE

answered Jun 25, 2019 in Selenium by Abha
• 28,060 points