← Back to team overview

sikuli-driver team mailing list archive

[Question #246773]: How to Automate Running a Java Class

 

New question #246773 on Sikuli:
https://answers.launchpad.net/sikuli/+question/246773

I have created a Java class that runs some Sikuli tests.  How can I run this class automatically?  I have tried using Windows' Task Scheduler without success.  I would like to set up a time for this class to run over night.

This is the batch file code I run:
"C:\Program Files (x86)\Java\jre7\bin\javaw.exe" -Dfile.encoding=Cp1252 -classpath C:\C1_Manager\Dev\C1_ManagerAutomation\SikuliX\sikuli-script.jar;C:\C1_Manager\Dev\C1_ManagerAutomation;C:\C1_Manager\Dev\C1_ManagerAutomation\images;C:\C1_Manager\Dev\C1_ManagerAutomation\Guava\guava-16.0.1.jar sikuliAutomation.sikuliTest

It works fine if I open the batch file manually.  
When run using Task Manager, the process runs but all tests fail.  This is because when the code is called, no internet browser opens.

Any ideas?  Thank you.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.