标签:解决办法 ror 新版 depend java method exec dep scope
[TestNG] [WARN] Ignoring duplicate listener : org.testng.IDEATestNGRemoteListenerEx
[TestNG] [WARN] Ignoring duplicate listener : org.testng.IDEATestNGRemoteListenerEx
[TestNG] [WARN] Ignoring duplicate listener : org.testng.IDEATestNGRemoteListenerEx
.................
<dependency> <groupId>org.testng</groupId> <artifactId>testng</artifactId> <version>6.10</version> <scope>test</scope> </dependency>
java.lang.NoSuchMethodError: org.testng.IDEARemoteTestNG.addListener(Lorg/testng/ISuiteListener;)V
at org.testng.IDEARemoteTestNG.run(IDEARemoteTestNG.java:72)
at org.testng.RemoteTestNGStarter.main(RemoteTestNGStarter.java:121)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
<dependency> <groupId>org.testng</groupId> <artifactId>testng</artifactId> <version>RLEASE</version> <scope>test</scope> </dependency>
使用6.9.9版本testng,可以解决上述两个问题
<dependency> <groupId>org.testng</groupId> <artifactId>testng</artifactId> <version>6.9.9</version> <scope>test</scope> </dependency>
[TestNG] [WARN] Ignoring duplicate listener : org.testng.IDEATestNGRemoteListenerEx
标签:解决办法 ror 新版 depend java method exec dep scope
原文地址:https://www.cnblogs.com/kevinsteve/p/10163227.html