简体   繁体   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

I faced in the problem with running selenium tests on jenkins. 我在詹金斯上进行硒测试时遇到了问题。 So in the IDE all works good and compile without any problems. 因此,在IDE中,所有程序都可以正常工作并且可以毫无问题地进行编译。 I don't have any ideas what is the root of the problem. 我不知道问题的根源是什么。 I used WebDriverManager as driver implementation. 我使用WebDriverManager作为驱动程序实现。 Also stacktrace have an warnings above error messages: 另外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.

相关问题 通过调用Ant从Jenkins运行Selenium测试 - Running Selenium tests from Jenkins by invoking Ant 在另一台服务器上使用Jenkins运行硒测试 - Running selenium tests with Jenkins on another server 在 jenkins 上运行 selenium 测试时出错 - Errors when running selenium tests on jenkins 在Jenkins中针对某个硒实例运行selenium 2测试 - Running selenium 2 tests within Jenkins against a certain selenium instance org.openqa.selenium.NoSuchSessionException:在使用 ChromeDriver Chrome 和 Java 的 Selenium 自动化测试中没有这样的会话错误 - org.openqa.selenium.NoSuchSessionException: no such session error in Selenium automation tests using ChromeDriver Chrome with Java NoSuchSessionException会话ID为null。 调用quit()后使用WebDriver吗? 并行运行Java测试时 - NoSuchSessionException Session ID is null. Using WebDriver after calling quit()? when running the java tests in parallel Jenkins:Jenkins未运行TestNG测试 - Jenkins: Jenkins not running TestNG Tests 如何在Jenkins中执行Selenium 2测试 - How to execute Selenium 2 tests in Jenkins Jenkins中的自动Selenium HTML测试 - Automated Selenium HTML tests in Jenkins Selenium 在并行运行测试时处理 ProtocolHandshake 错误 - Selenium handles ProtocolHandshake error while running tests parallel
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM