通过詹金斯机器人框架硒执行不起作用 [英] Robotframework selenium execution through jenkins not working

查看:57
本文介绍了通过詹金斯机器人框架硒执行不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法通过Jenkins使用robotframework执行硒测试用例. 已安装 Firefox,geekodriver.

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

无需使用Jenkins即可工作.

Works without using Jenkins.

获取异常

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命令配置

Jenkins shell command configuration

pybot test.robot

推荐答案

在robotframework服务器中安装xvfb.还可以在Jenkins中使用xvfb插件.

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

似乎已弃用xvfb,并听说有一个vncserver插件.需要尝试一下.

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

这篇关于通过詹金斯机器人框架硒执行不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆