通过Jenkins执行测试时出错

时间:2016-10-06 12:52:42

标签: maven selenium jenkins webdriver continuous-integration

我从jenkins运行我的测试套件时出现此错误,当我通过Maven在eclipse中运行时它工作正常, 我正在为jenkins使用相同的pom.xml,它给出了这个错误:

Running TestSuite
 INFO [main] (BrowserManager.java:124) - Connecting to http://chromedriver.storage.googleapis.com/ to check lastest chromedriver release
 INFO [main] (BrowserManager.java:112) - Latest driver version: 2.9
 INFO [main] (Downloader.java:56) - Binary driver previously downloaded /var/lib/jenkins/.m2/repository/webdriver/chromedriver/linux64/2.9/chromedriver
 INFO [main] (Downloader.java:60) - Exporting webdriver.chrome.driver as /var/lib/jenkins/.m2/repository/webdriver/chromedriver/linux64/2.9/chromedriver
Tests run: 4, Failures: 1, Errors: 0, Skipped: 3, Time elapsed: 2.904 sec <<< FAILURE! - in TestSuite
Setup(webautomation.GetApp)  Time elapsed: 2.218 sec  <<< FAILURE!
java.lang.NoClassDefFoundError: org/openqa/selenium/ElementNotSelectableException
    at webautomation.GetApp.Setup(GetApp.java:57)
Caused by: java.lang.ClassNotFoundException: org.openqa.selenium.ElementNotSelectableException
    at webautomation.GetApp.Setup(GetApp.java:57)


Results :

Failed tests: 
webautomation.GetApp.Setup(webautomation.GetApp)
  Run 1: GetApp.Setup:57 » NoClassDefFound org/openqa/selenium/ElementNotSelectableExce...
  Run 2: PASS


Tests run: 3, Failures: 1, Errors: 0, Skipped: 2

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 18.671 s
[INFO] Finished at: 2016-10-06T17:27:37+05:00
[INFO] Final Memory: 26M/200M
[INFO] ------------------------------------------------------------------------

0 个答案:

没有答案