简体   繁体   English

如何使用 Jenkins 运行 Robot Framework/Sikuli 测试用例?

[英]How to run Robot Framework/Sikuli test cases with Jenkins?

I am trying to run some automated tests for desktop apps.我正在尝试为桌面应用程序运行一些自动化测试。 The code is written in Robot Framework and Sikuli.代码是用 Robot Framework 和 Sikuli 编写的。 If I run them from command line, it is okay, but when I try it from Jenkins it is not.如果我从命令行运行它们,没问题,但当我从 Jenkins 尝试时,它不是。

Here is how I try to build in Jenkins这是我尝试在 Jenkins 中构建的方法

Here is the simple code:这是简单的代码:

 Help [Tags] help Capture Screen Click input_id

This is the result:这是结果:

As you see it could not see my screen.如您所见,它看不到我的屏幕。 What should I do to let the "Jenkins process" see my screen?我应该怎么做才能让“詹金斯进程”看到我的屏幕?

The issue was, that I installed Jenkins as a Windows service.问题是,我将 Jenkins 安装为 Windows 服务。 After I installed via the jenkins.war file, it works.通过 jenkins.war 文件安装后,它可以工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM