2017-12-07 12 views
0
[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 

jenkins에서 셀렌 테스트를 실행하는 데 문제가 있습니다. 그래서 IDE에서 모든 문제없이 잘 작동하고 컴파일됩니다. 나는 문제의 근원이 무엇인지 알지 못한다. 나는 드라이버 구현으로 WebDriverManager을 사용했다. 또한 오류 메시지 위의 경고가 스택 트레이스 :jenkins에서 셀렌 테스트를 실행하는 동안 NoSuchSessionException

[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] 
+0

Jenkins에서 전체 그래픽 버전의 Chrome을 실행하고 있습니까? 그게 효과가 없을거야! 헤드리스 모드를 사용해야합니다. – SiKing

+0

@SiKing 일단이 크롬 드라이버를 사용하여 빌드를 시작할 수 있었고 젠킨스와 함께 올바른 방법으로 컴파일되었지만 어떻게되었는지 알지 못하고 일부 테스트가 통과되었습니다. 그러나 그때 어떤 일이 잘못되어 그러한 오류 메시지가 나타나기 시작했습니다. 헤드리스 브라우저 (phantomjs 및 htmlunit)에 관해서는 오류가 있지만 다른 유형이 있습니다. –

+0

** 크롬 헤드리스 **. PhantomJS는 포기되었으며 HTMLUnit은 그다지 유용하지 않습니다. – SiKing

답변

-1

가에서 잘 실행하지만 우리는 셀레늄 테스트, 젠킨스를 통해 실행에 첫 번째 요소를 클릭하기 전에 실패로 젠킨스에서 헤드리스 실행을 위해 설정 한 특정 작업을 수행해야합니까 내 로컬 시스템.