Is three.xml a build file or your test ? For my example below I'll
assume it is your test.
Here is what I suggest ...
1) Make sure you have the path to <yourWebtestHomeDir>\bin in
your path environment variable
2) Assuming you have set up a project in the manner that is done
with wt.createProject, copy the build.xml file and call it
runOneTest.xml. Keep it at the root of your project like the build.xml
one is.
3) Open the runOneTest.xml and change the line where it has:
<property name="wt.testInWork" value="tests/allTests.xml"/>
to have just the one test you want to run .... Like three.xml
<property name="wt.testInWork" value="tests/three.xml"/>
4) Create a bat file in the root of your project that contains
either :
DOSKEY webtest="c:\<yourPathToWebtestHomeDir>\webtest" $1
cd c:\<yourPathToProjectDir>
webtest -Dwt.headless=true -f runOneTest.xml
or this if you want the visuals popping up like the webtest monitor and
browser ( but I haven't tried whether this will be ok from windows
scheduler)
DOSKEY webtest="c:\<yourPathToWebtestHomeDir>\webtest" $1
cd c:\<yourPathToProjectDir>
webtest -f runOneTest.xml
NOTE: I was not having any luck creating a bat file that worked until I
tried putting in the DOSKEY line.
5) Now point your windows scheduler at that bat file you created.
Hope it works for you.
Lynn
________________________________
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Dinesh Kumar
Sent: Monday, February 25, 2008 6:41 AM
To: [email protected]
Subject: [Webtest] Webtest script Batch file
Hi Marc,
I would like to run a batch file on regular timings, Say for example run
the script three.xml every day by using scheduler in windows .
How can we run create a batch file to run the canoo webtest script , Is
that possible?
Please assist me in this..
Thanks,
Dinesh
________________________________
Chat on a cool, new interface. No download required. Click here.
<http://in.rd.yahoo.com/tagline_webmessenger_10/*http:/in.messenger.yaho
o.com/webmessengerpromo.php>
This message and any attachments are intended only for the use of the addressee
and may contain information that is privileged and confidential. If the reader
of the message is not the intended recipient or an authorized representative of
the intended recipient, you are hereby notified that any dissemination of this
communication is strictly prohibited. If you have received this communication
in error, please notify us immediately by e-mail and delete the message and any
attachments from your system.