• Support
  • Articles
  • Resources
  • Products

Test Framework

Moderator: boris

2 postsPage 1 of 1

IshmaelCallMe
Guru

Posts:
675
Joined: Thu Jan 26, 2006 2:28 am
by IshmaelCallMe » Mon Feb 11, 2008 5:11 pm
This was in another category, but I think it belongs here more.

Here are some simple macros that allow a script to continue or stop if a failure occurs.

In swait.ttl:



In errout.ttl:



To use in your main script:



Note that pressing 'yes' to 'continue anyway?' at any time will mean the script will continue, but the end result will be a 'FAILED'. Pressing no will stop the script. Failure is logged in either case. This gives a good framework for tests.
IshmaelCallMe
Guru

Posts:
675
Joined: Thu Jan 26, 2006 2:28 am
by IshmaelCallMe » Fri Jul 25, 2014 5:58 pm
Here is a somewhat more polished version that includes auto logging. This version you just append this text to your existing script and use call instead of include:

Display posts from previous:
Sort by:

2 postsPage 1 of 1

Users browsing this forum: No registered users