2017-12-18 412 views
0

我想在詹金斯运行硒。当我在本地运行时,测试总是通过。但在詹金斯我总是得到错误:硒在詹金斯失败测试

Configuring TestNG with: [email protected]9f1 
Starting ChromeDriver 2.34.522932 (4140ab217e1ca1bec0c4b4d1b148f3361eb3a03e) on port 10010 
Only local connections are allowed. 
Dec 18, 2017 2:35:43 AM org.openqa.selenium.remote.ProtocolHandshake createSession 
INFO: Detected dialect: OSS 
_RegisterApplication(), FAILED TO establish the default connection to the WindowServer, _CGSDefaultConnection() is NULL. 
File cannot be found 
Tests run: 4, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 6.807 sec <<< FAILURE! 

没有这样的元素:找不到元素:

进出口使用詹金斯,硒和测试

+1

你在本地机jenkins或奴隶模式詹金斯运行? – jaibalaji

+1

看看'_RegisterApplication()','_CGSDefaultConnection()为NULL'似乎有些问题' – DebanjanB

+1

@Skyx什么是操作系统?詹金斯运行的过程? – Grasshopper

回答