Saturday, 4 November 2023

java.lang.NoSuchMethodError: 'void org.testng.TestRunner.(org.testng.internal.IConfiguration, org.testng.ISuite, org.testng.xml.XmlTest, boolean, java.util.Collection, java.util.List)'

When you see below error add : TestNG to the build path


 
[RemoteTestNG] detected TestNG version 7.8.0

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".

SLF4J: Defaulting to no-operation (NOP) logger implementation

SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.

java.lang.NoSuchMethodError: 'void org.testng.TestRunner.<init>(org.testng.internal.IConfiguration, org.testng.ISuite, org.testng.xml.XmlTest, boolean, java.util.Collection, java.util.List)'

	at org.testng.remote.support.RemoteTestNG6_12$1.newTestRunner(RemoteTestNG6_12.java:33)

	at org.testng.remote.support.RemoteTestNG6_12$DelegatingTestRunnerFactory.newTestRunner(RemoteTestNG6_12.java:66)

	at org.testng.ITestRunnerFactory.newTestRunner(ITestRunnerFactory.java:52)

	at org.testng.SuiteRunner$ProxyTestRunnerFactory.newTestRunner(SuiteRunner.java:720)

	at org.testng.SuiteRunner.init(SuiteRunner.java:224)

	at org.testng.SuiteRunner.<init>(SuiteRunner.java:116)

	at org.testng.TestNG.createSuiteRunner(TestNG.java:1375)

	at org.testng.TestNG.createSuiteRunners(TestNG.java:1349)

	at org.testng.TestNG.runSuitesLocally(TestNG.java:1191)

	at org.testng.TestNG.runSuites(TestNG.java:1114)

	at org.testng.TestNG.run(TestNG.java:1082)

	at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:115)

	at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:251)

	at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:77)

No comments:

Post a Comment