简体   繁体   中英

NoSuchSessionException while running selenium tests on jenkins

[ERROR] Tests run: 33, Failures: 32, Errors: 0, Skipped: 1, Time elapsed: 65.649 s <<< FAILURE! - in TestSuite
[ERROR] testHomeWidgetValidData(test.desktop.HomePageTest)  Time elapsed: 0.454 s  <<< FAILURE!
org.openqa.selenium.NoSuchSessionException: 
no such session
  (Driver info: chromedriver=2.33.506092 (733a02544d189eeb751fe0d7ddca79a0ee28cce4),platform=Linux 4.10.0-40-generic x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 4 milliseconds
Build info: version: '3.0.0', revision: '350cf60', time: '2016-10-13 10:48:57 -0700'
System info: host: 'hp', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '4.10.0-40-generic', java.version: '1.8.0_152'
Driver info: org.openqa.selenium.chrome.ChromeDriver
Capabilities [{message=unknown error: Chrome failed to start: exited abnormally
  (Driver info: chromedriver=2.33.506092 (733a02544d189eeb751fe0d7ddca79a0ee28cce4),platform=Linux 4.10.0-40-generic x86_64), platform=ANY}]
Session ID: 944b193854ef4f0fb75de599eb1d5610

I faced in the problem with running selenium tests on jenkins. So in the IDE all works good and compile without any problems. I don't have any ideas what is the root of the problem. I used WebDriverManager as driver implementation. Also stacktrace have an warnings above error messages:

[WARNING] 
[WARNING] Some problems were encountered while building the effective model for GLIC-test:webdriver:jar:1.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for io.qameta.allure:allure-maven is missing. @ line 78, column 21
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING] 

我们是否需要做一些特定的设置来在Jenkins中运行无头运行,因为Selenium测试在单击运行Jenkins的第一个元素之前失败,尽管它在我的本地系统中运行良好。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM