Jump to content
Sign in to follow this  

Issues in integrating autoit with Jenkins

Recommended Posts

We are trying to open a certain windows application and take a screenshot of that application and save it in a specific path through auto it script. It's working fine on my local machine triggered by Jenkins but the same code is not working on a remote server (multiple users can log in).  And we have provided the admin access inside services.msc for jenkins. When we start the Jenkins job it is able to call the autoit script and open the windows application which is the first line in the autoit script as well (it was running in the task manager) but somehow not able to complete the task and the job goes on running.

Share this post

Link to post
Share on other sites

Yes we are running auto script with admin privileges. Our code needs to interact with GUI but if we run it through jenkins on remote server it is running that as a background task. 

And this is our script


$hWnd = WinWait("Untitled - Notepad", "", 10) 

Send("Sending some special characters:{ENTER 2}")



Send("{UP 1}{ENTER}")



$hWnd = WinWait("Untitled - Paint", "", 10) 





Send("{TAB 3}{ENTER}")

If WinExists("Confirm Save As") Then


This works flawlessly in local machine. When I run above script manually it works fine even in remote server but not with the Jenkins.

Edited by sridhar_nvm

Share this post

Link to post
Share on other sites
36 minutes ago, sridhar_nvm said:

but not with the Jenkins

Makes sense as that likely runs in the background, thus the Send() commands will fail. Use ControlSend() instead.


Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
Live for the present,
Dream of the future,
Learn from the past.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...