Avatar of jksung
jksung

asked on 

Is there a way to run Sikulix automation scripts with Windows Task Scheduler with the option "Run whether user is logged in or not"?

I'm able to use Windows Task Scheduler (OS version is Windows 7 Enterprise) to successfully run Sikulix automation scripts when the task has the option "Run only when user is logged on", however, the same script fails if I run with the option "Run whether user is logged in or not", as the Sikuli find() function to locate objects by image recognition isn't working (supposed because Sikuli requires an active monitor for image recognition), some information I have on this are:
http://superuser.com/questions/78359/why-is-windows-7-scheduled-task-running-hidden
https://technet.microsoft.com/en-us/library/cc722152.aspx

However, I would like to have the scripts running with the "Run whether user is logged in or not" option, because with the "Run only when user is logged on" option, the scheduled scripts will not run if the user is not logged on, either remotely or locally, and this will not be possible as this machine is shared with the offshore team.

Is there a way to run Sikulix automation scripts with Windows Task Scheduler with the option "Run whether user is logged in or not"?  Otherwise is there a way to successfully schedule Sikulix script runs without requiring the account scheduling the runs to always be logged on?
ProgrammingScripting LanguagesWindows OS

Avatar of undefined
Last Comment
Gerwin Jansen
ASKER CERTIFIED SOLUTION
Avatar of David Johnson, CD
David Johnson, CD
Flag of Canada image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
SOLUTION
Avatar of aikimark
aikimark
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
SOLUTION
Avatar of Gerwin Jansen
Gerwin Jansen
Flag of Netherlands image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
Avatar of jksung
jksung

ASKER

Basically we are trying to schedule the same sikuli scripts to test the same web application on eight different enviroments overnight, so that the results of the runs on all the environments can be posted to a webpage the next day.  The server that is running this is our sole server that allows non company sanctioned software to be installed (for the dev team to be able to try things) that is also running other things, so we cannot have a dedicated user logged in locally just to run these scripts.

I haven't tried the wake the system option, but the scripts will run with the monitor turned off, as long as the option in task manager is "Run only when the user is logged on".
SOLUTION
Avatar of Gerwin Jansen
Gerwin Jansen
Flag of Netherlands image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
Avatar of jksung
jksung

ASKER

Thanks all for your help, because of this issue with task scheduler, I will try to run the scripts on a dedicated virtual machine on Jenkins instead.
Avatar of Gerwin Jansen
Gerwin Jansen
Flag of Netherlands image

That's OK, if you have any results to share post back here. Thanks.
Windows OS
Windows OS

This topic area includes legacy versions of Windows prior to Windows 2000: Windows 3/3.1, Windows 95 and Windows 98, plus any other Windows-related versions including Windows Mobile.

129K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo