qualityworld
unread,Jan 21, 2011, 5:24:14 PM1/21/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Selenium Users
I have an ant build file within the Eclipse IDE framework that
compiles and executes a group of Java/Junit/Selenium programs.
I start Eclipse, open the build.xml file within Eclipse, select RUN
AS / ANT BUILD, and everything runs correctly, including creating the
junit report.
Now, I want to schedule this to run unattended at a specific time and
date. I’ve tried and failed at this multiple times.
I thought about scheduling Eclipse to run using the windows task
scheduler, which worked, but I couldn’t figure out how to get the ant
build to start automatically in Eclipse from a parameter passed from
the task scheduler.
The other possibility seems to be scheduling ant to run directly
(outside eclipse completely) using the windows task scheduler and
pointing to the build file. From the DOS prompt, in the project
directory, “ant –f buildfilename.xml” displays “build successful” but
the java/junit programs don’t run as they do from Eclipse. I tried
several other things, even found a thread about this which I followed
but still wasn’t able to get this to work. Any help would be
appreciated.