Robot Framework- Jenkins

640 views
Skip to first unread message

Jagdish pyati

unread,
Feb 9, 2012, 7:47:19 AM2/9/12
to robotframework-users
Hi,
I am currently working on a web-application which is automated using ironpython and all the scripts work fine. This we wanted to integrate with Jenkins so that it runs for every build and we get the results automatically. We have configured Jenkins to run a batch file which contains the command to run my scripts like "ipybot test.html". The problem is that, when the Jenkins job is started, the IE is not opening visibly and my scripts are failing. If I see the task manager, I see that IE process is started but in the background and hence not visible. Am I missing something here. Please help. The Jenkins is on some box where the job is started, my box has been added as a node where I have the Robot framework and scripts.
 
Regards
Jagdish

Thomas Robinson

unread,
Feb 9, 2012, 10:01:01 PM2/9/12
to robotframework-users
Hi Jagdish,

We have a similar setup to you (albeit more complex) but I seem to
remember having a similar problem.

Perhaps you could take a look at prefixing your ipybot command with
some variation of the windows start command. For example, "start cmd /
C ipybot test.html".

This should open a new command prompt window (in the foreground) with
ipybot running inside. The /C will close the command prompt window
when ipybot finishes.

Other behaviours are possible and you can find them by taking a look
at "start /?" and "cmd /?".

Hope this helps,
Thomas

Jagdish pyati

unread,
Feb 10, 2012, 5:45:13 AM2/10/12
to robin...@gmail.com, robotframework-users
Hi Thomas,
Thanks for your reply. I tried the options provided by you, but Jenkins terminates saying, exit 0
D:\Hudsonslave\workspace\PTAAutomation>exit 0
Process leaked file descriptors. See http://wiki.jenkins-ci.org/display/JENKINS/Spawning+processes+from+build for more information
Robot results publisher started...
-Parsing output xml:
Failed!
I am really stuck in this problem now and I even tried to start a VBS file which will open a new windows shell and execute this command, but even that starts in the background.
 
Regards
Jagdish

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To post to this group, send email to robotframe...@googlegroups.com.
To unsubscribe from this group, send email to robotframework-u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/robotframework-users?hl=en.


Lars Nordin

unread,
Feb 10, 2012, 7:39:55 AM2/10/12
to robotframework-users

[snip]

. The problem is that, when the Jenkins job is started, the IE is not opening visibly and my scripts are failing. If I see the task manager, I see that IE process is started but in the background and hence not visible. Am I missing something here. Please help. The Jenkins is on some box where the job is started, my box has been added as a node where I have the Robot framework and scripts.

[Lars Nordin]

Tell us more about what you are doing with IE. If you are using Selenium internally to the browser then I would suggest using Selenium as a server – doing it this way also has the benefit of an easy transition to Selenium Grid and running your actions on any browser.

If you are try to just hit a URL then a simpler tool would be better – something like curl.

Reply all
Reply to author
Forward
0 new messages