The online community for software testing & quality assurance professionals
   
Active Topics Today's Topics
Sponsors:
Lost Password?

Home
BetaSoft
Jobs
Training
News
Links
Downloads

News Group:
software.testing


Testing
Automation
Performance
Engineering
Miscellaneous
Statistics
Poll
  QA Forums
  SilkTest
  starting test run at a certain time with perl? batch file?

Post New Topic  Post A Reply
profile | register | preferences | faq | search

UBBFriend: Email This Page to Someone! next newest topic | next oldest topic
Author Topic:   starting test run at a certain time with perl? batch file?
silverter
Member

Posts: 49
Registered: Nov 2000

posted 05-29-2001 10:30 AM     Click Here to See the Profile for silverter   Edit/Delete Message Copy This Message   Reply w/Quote Search for more posts by silverter
I need to be running my automated test script at a certain time (at NIGHT !!! when the server goes up) and need help on how to get this done with a script? Is it possible with perl? batch files? Any examples? Please point to me (or send me examples) where (that) I can start with.

Thanks alot for your help.

------------------
Silverter - A profi was once a beginner

IP Logged

davidg
unregistered
posted 05-29-2001 10:56 AM         Edit/Delete Message Copy This Message   Reply w/Quote Search for more posts by davidg
Since SilkTest is a Windows application, just use the Windows Task Manager and the SilkTest command line arguments to start the test at your desired times and days.

------------------
David Genrich
Blackhog
932 Hamlin Court
Sunnyvale, CA 94089
dgenrich@blackhog.com

IP Logged

MikeF
Advanced

Posts: 139
Registered: Nov 2000

posted 05-29-2001 11:25 AM     Click Here to See the Profile for MikeF   Edit/Delete Message Copy This Message   Reply w/Quote Search for more posts by MikeF
The first idea will work very well. If however you want to let SilkTest execute the start up:

Set up a loop that sleeps for one hour, at the end of the hour check the current time against the time you want the script to start, if the times match execute the script you want to run, if there is more than 1 hour difference, sleep for an hour. If less than 1 hour difference sleep for 10 minutes then check the time again, until you reach the time you are looking for.

I have used this to execute a script up to 23 hours later than when the script was started.

You can also write information to the SilkTest status scren so you know how long before a script will start. If you would like some code to explain this let me know.

Mike

------------------

IP Logged

silverter
Member

Posts: 49
Registered: Nov 2000

posted 05-30-2001 07:04 AM     Click Here to See the Profile for silverter   Edit/Delete Message Copy This Message   Reply w/Quote Search for more posts by silverter
Thanks alot for all your replies. To be more specific about my problem: The tests I'm running need to access a server. This server goes up and down everyday at a certain time of the day, thus I can only run the tests between those specific times.

I run the test in a loop until the server goes down, at a time that is not specific, and this causes silktest to through and exception and stops the test.

When the server is up (at a time that I know) I want in a certain way to close the application under test, and tell Silk to restart the test run, saving the results of thew last run in a test file (or send it to me paer mail? is it possible?).

How canI achive this ?

Thanks a lot for your suggestions...

------------------
Silverter - A profi was once a beginner

IP Logged

All times are PT (US)

next newest topic | next oldest topic

Administrative Options: Close Topic | Archive/Move | Delete Topic | Top
Post New Topic  Post A Reply
Hop to:

Contact Us | BetaSoft Inc. | Privacy Statement

Copyright 1997-2003 BetaSoft Inc.


Ultimate Bulletin Board 5.45c