从 jenkins 运行构建时出现以下错误:我已将其范围缩小到 ant 或环境无法找到我的 BrowserLaunch.class 文件,“没有来自该文件的日志”,因此它说没有这样的方法。但是,我不知道为什么!我让这些测试在使用 Eclipse 的不同环境中工作,但不是使用 Ant + Jenkins + TestNG + Java。有任何想法吗 ?我有一个 selenium 网格在与 jenkins 构建服务器不同的 VM 上运行,他们可以 ping...远程 webdriver 代码指向网格集线器。我认为这可能是权限,但所有类文件都具有相同的 rw 访问权限。所有必要的类都在我从 ANT 构建的 .jar 中。
AILED CONFIGURATION: @BeforeTest beforeTest(org.testng.TestRunner@108c35f3)
[testng] java.lang.NoSuchMethodError:genericscripts.driverscripts.BrowserLaunch.createDriver(Ljava/lang/String;)Lorg/openqa/selenium/WebDriver;
[testng] tests.ManagementTests.beforeTest(Unknown Source)
[testng] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[testng] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[testng] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[testng] at java.lang.reflect.Method.invoke(Method.java:601)
[testng] at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:76)
[testng] at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:525)
[testng] at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:202)
[testng] at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:130)
[testng] at org.testng.TestRunner.beforeRun(TestRunner.java:624)
[testng] at org.testng.TestRunner.run(TestRunner.java:592)
[testng] at org.testng.SuiteRunner.runTest(SuiteRunner.java:317)
[testng] at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:312)
[testng] at org.testng.SuiteRunner.privateRun(SuiteRunner.java:274)
[testng] at org.testng.SuiteRunner.run(SuiteRunner.java:223)
[testng] at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
[testng] at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
[testng] at org.testng.TestNG.runSuitesSequentially(TestNG.java:1039)
[testng] at org.testng.TestNG.runSuitesLocally(TestNG.java:964)
[testng] at org.testng.TestNG.run(TestNG.java:900)
[testng] at org.testng.TestNG.privateMain(TestNG.java:1182)
[testng] at org.testng.TestNG.main(TestNG.java:1146)
[testng]
[testng] SKIPPED: createTenanttests(org.testng.TestRunner@108c35f3)
[testng]
[testng] ===============================================
[testng] Test
[testng] Tests run: 1, Failures: 0, Skips: 1
[testng] Configuration Failures: 1, Skips: 0
[testng] ===============================================