繁体   English   中英

在詹金斯上运行硒测试时出现NoSuchSessionException

[英]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

我在詹金斯上进行硒测试时遇到了问题。 因此,在IDE中,所有程序都可以正常工作并且可以毫无问题地进行编译。 我不知道问题的根源是什么。 我使用WebDriverManager作为驱动程序实现。 另外stacktrace在错误消息上方也有警告:

[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的第一个元素之前失败,尽管它在我的本地系统中运行良好。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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