Robotframework selenium execution through jenkins not working

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-11 14:50:09

问题


I am not able to execute selenium test cases using robotframework through Jenkins. Installed Firefox, geekodriver.

Works without using Jenkins.

Getting the exception

WebDriverException: Message: Process unexpectedly closed with status: 1

Its a simple test case that has

*** Settings ****
Library    Selenium2Library

*** Test Cases ***
Testing Selenium
     Open Browser    http://google.com    Firefox

Jenkins shell command configuration

pybot test.robot

回答1:


Install xvfb in the robotframework server. Also use xvfb plugin in Jenkins.

Seems like xvfb is deprecated and heard that there is a vncserver plugin. Need to try this.



来源:https://stackoverflow.com/questions/48984806/robotframework-selenium-execution-through-jenkins-not-working

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!