Hi Lynn,

Cool, It works perfectly as you mentioned below. Thanks a lot

Thanks,
Dinesh

----- Original Message ----
From: "Walton, Lynn" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]; Dinesh Kumar <[EMAIL PROTECTED]>
Sent: Monday, 25 February, 2008 10:52:14 PM
Subject: RE: [Webtest] Webtest script Batch file

    
<!--
 _filtered {font-family:Tahoma;panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;margin-bottom:.0001pt;font-size:12.0pt;font-family:"Times 
New Roman";}
a:link, span.MsoHyperlink
        {color:blue;text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;text-decoration:underline;}
span.EmailStyle17
        {font-family:Arial;color:navy;}
 _filtered {margin:1.0in 1..25in 1.0in 1.25in;}
div.Section1
        {}
 _filtered {}
 _filtered {}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
-->
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  inyour path 
environment variable


 2)       Assuming you have set up a project in the manner that is done 
withwt.createProject,  copy the build.xml  file and call it  runOneTest.xml.  
Keepit 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 abat 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 
triedputting in the DOSKEY line.


 5)       Now point your windows scheduler at that bat file youcreated.  


 Hope it works for you.
 Lynn
   
 
From:[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dinesh Kumar
Sent: Monday, February 25, 20086:41 AM
To: [email protected]
Subject: [Webtest] Webtest scriptBatch file
 
  
 Hi Marc,

I would like to run a batch file on regular timings, Say for example run 
thescript three.xml every day by using scheduler in windows .
How can we run create a batch file to run the canoo webtest script , Is 
thatpossible?
Please assist me in this..

Thanks,
Dinesh
 




 
Chat on a cool, new interface. No download required. Click
here.
 

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.







      Chat on a cool, new interface. No download required. Go to 
http://in.messenger.yahoo.com/webmessengerpromo.php

Reply via email to