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".
java.lang.NullPointerException

Dec 15, 2020 in Selenium by sdsardar
• 120 points
6,282 views

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".
!STACK 0
java.lang.NullPointerException
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

I hope this helps!

Check out our Online Selenium Course to learn from industry experts!

Thanks!

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
2,486 views
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
12,617 views
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
6,105 views
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
8,572 views
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,140 points
38,143 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP