How can I run FEST Swing tests in Jenkins?

让人想犯罪 __ 提交于 2020-01-05 05:23:08

问题


I'm trying to run FEST Swing tests on Jenkins as a service on Windows 7.

I have already allowed the service to interect with the desktop with the necessary permission to do so. It was no use, though.

Most of what I found on the internet either shows how to do it on Linux (through the CLI shell) or how to run it on the prompt, which is not what I'm looking for.

I have also found some vague discussions on how to run the tests letting the desktop available (which was by running it on a VM). But that's not what I need either.

I need to run the GUI tests just as they are run on Eclipse, with the graphical appearance on the desktop. When I try to do it, the following happens:

execguitest:
[echo] ----------------------------------------------
[echo] project-name: Executing project's GUI tests
[echo] ----------------------------------------------
[junit] Running dev.AllGUITests
[junit] null
[junit] null
[junit] null
[junit] Tests run:33, Failures: 3, Errors: 30, Skipped: 0, Time elapsed: 112,375 sec
[junit Test dev.AllGUITests FAILED

Does anyone have a clue on how can it be done?

P.S.: Sorry for any english mistakes. English is not my mother language.


回答1:


The Documentation of FEST shows you how to configure Hudson (almost the same as Jenkins) unter Windows and how to run the tests on virtual Xvfb devices (Linux) for execution without real display devices.




回答2:


I did it with the Jenkins-XVNC-Plugin.

Look at this.



来源:https://stackoverflow.com/questions/19035110/how-can-i-run-fest-swing-tests-in-jenkins

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