Using Jenkins, is it possible for me to run an application from my Master machine, that directly affects the GUI on my slave during a build?

14 views
Skip to first unread message

Jenkins Johnny

unread,
Oct 18, 2016, 11:50:23 AM10/18/16
to Jenkins Users

I have a Jenkins master setup that will open a web application on the slave machine and then opens a sendkeys application to input some keys into various fields on the web app.


I'm using powershell to open the web application as an object, then open the sendkeys application which automatically inputs some keys, and then return some values from the web app. (I can't input the info directly with powershell as some of it needs to go into pop up windows that I cannot access via the object).

$ie = New-Object -com InternetExplorer.Application
$ie.Navigate("http://www.url.com")
$ie.visible = $true

& C:\Sendkeys_Application_Folder\Sendkeys_Application.exe

$result = $ie.Document.getElementByID("result").innerHTML 
write-host $result


Now while this works fine on the master server, when I try and work it on the slave server it throws me an error, probably because it cannot find the application or its folder on the slave PC.


It isn't ideal that I'd have to set up this application on every slave machine I set up so I was wondering if it's at all possible to execute it from the master machine and have it affect the GUI on the slave machine?

Reply all
Reply to author
Forward
0 new messages