Error Checking

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
lebrocoli
Pro Scripter
Posts: 53
Joined: Tue Sep 06, 2005 9:28 pm

Error Checking

Post by lebrocoli » Wed Oct 10, 2007 7:21 pm

Me again!

I have a general question on Error checking.

What kind of error checking Macro Scheduler has? Is there something available that would look like an 'Expect' statement in TCL ?

Or some process that could look in realtime in the log viewer of my tested app that could tell me if a new log has been generated ?

In general, what is suppose to happen when my tested app craps-out ?

I did a simple test by changing the 'WaitWindowOpen>' value in one of my script and the script continued, after a small delay, as if everything was fine. Do we have some controls to check these things ?

Thanks a lot!

Me_again
Automation Wizard
Posts: 1101
Joined: Fri Jan 07, 2005 5:55 pm
Location: Somewhere else on the planet

Post by Me_again » Wed Oct 10, 2007 8:29 pm

MS has a lot of ways to make scripts reliable, like using IfFileExists> IfDirExists> IfWindowOpen>, checking for ##EOF## when doing ReadLn>, checking result variables for those commands that have them, etc.

User avatar
Marcus Tettmar
Site Admin
Posts: 7391
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Thu Oct 11, 2007 6:31 am

WaitWindowOpen and WaitWindowClosed will wait for ever unless you have specified a timeout (WW_TIMEOUT). If you have specified a timeout you can check the value of WW_RESULT to see whether the command timed out or was successful.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts