TestNg error is coming
I created the maven project using cmd and ran the mvn eclipse:eclipse command and then imported the project into eclipse.
When i am trying to run the test cases , I am getting the below error:-
java.lang.NoSuchMethodError: org.testng.TestRunner.addListener(Ljava/lang/Object;)V at org.testng.remote.support.RemoteTestNG6_9_10$1.newTestRunner(RemoteTestNG6_9_10.java:32) at org.testng.remote.support.RemoteTestNG6_9_10$DelegatingTestRunnerFactory.newTestRunner(RemoteTestNG6_9_10.java:61) at org.testng.SuiteRunner$ProxyTestRunnerFactory.newTestRunner(SuiteRunner.java:713) at org.testng.SuiteRunner.init(SuiteRunner.java:260) at org.testng.SuiteRunner.<init>(SuiteRunner.java:198) at org.testng.TestNG.createSuiteRunner(TestNG.java:1295) at org.testng.TestNG.createSuiteRunners(TestNG.java:1273) at org.testng.TestNG.runSuitesLocally(TestNG.java:1128) at org.testng.TestNG.runSuites(TestNG.java:1049) at org.testng.TestNG.run(TestNG.java:1017) at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:126) at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:152) at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:57)
Which file are you trying to execute?
Please follow the video carefully as you're missing some bits and pieces.
If the issue persists let us know about it here with more detailed information.
I am trying to execute the file which is explain in Module 23 - 2nd video abouit creating a maven project and importing it into eclipse and then running a simple testNg file.
please find the below screenshot of the error and file which i am trying to execute.
Please export your project in a zip file and share it with us so that we can suggest a solution.
I am also facing this isse.could you plese resolve that ?
Testng is not mentioned in POM
We offer online selenium and UFT/QTP training. The course is very comprehensive and covers every aspect of automation testing with UFT/QTP and selenium. All types of frameworks are covered in depth - data driven framework, hybrid framework, page object model with a live project
© 2020 Whizdom Trainings. All rights Reserved - Powered by Whizdom Trainings