简体   繁体   中英

how to run robot framework(autoit) test in jenkins?

I have a robot file, written with autoit library. Using it for testing a 3rd party software installation in Windows 7.

If I run this robot file, a pop-up window will appear, from here I need to proceed with next steps of software installation. (Please NOTE : I know that , I can do silent installation here. But my job is to validate the pop-up window :( )

Now the problem is :

If I run this robot file from windows command prompt, using "pybot test.robot" command. its working as expected. But when I integrate this with jenkins, the pop-up window NOT appearing. I am getting the below error:

[Job to run RFW test] $ cmd /c call C:\Windows\TEMP\hudson8861333201655586740.bat

C:\Program Files (x86)\Jenkins\workspace\Job to run RFW test>pybot Software_install_testsuite.robot 
==============================================================================
Software install testsuite                                                      
==============================================================================

TESTCASE1 : ID 1234                                                   | FAIL |
**AutoItError: timeout on wait for activate window**
------------------------------------------------------------------------------

I have tried with "xshell", "power shell" and "Windows batch command" in ADD BUILD STEP in jenkins. But still I am seeing the same error.

From last two weeks I am trying to fix this. Any help on this is really appreciated.

Thanks.

尝试安装vnc(例如ultravnc),在此vnc会话中运行jenkins slave(不要使用RDP连接),然后尝试从jenkins触发测试。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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