Training, Open Source Computer Languages

This is page http://www.wellho.net/solutions/tcl-usin ... odule.html

Our email: info@wellho.net • Phone: 01144 1225 708225

This is now an archive web site.
Some is still relevant as at February 2026 but some is purely of historic interest.


Lisa and I (Graham) are now fully retired from IT training.We have made many friends over 30 years of teaching about Python, Tcl, Perl, PHP, Lua, Java, C and C++ - and MySQL, Apache, Linux and Solaris/SunOS too. Our training notes are out of date, but with upward compatability some examples remain operational and relevant. You are welcome to make use of them "as seen", at your own risk. We now live in what was our training centre in Melksham - happy to meet with former delegates here - but do check ahead before coming round. We remain active, enjoying the times that we are retired but still healthy enough in mind and body to do things!

I am also active in many other area and still look after a lot of web sites - you can find an index ((here))
Using Tcl to test a system with the tcltest module

PRINCIPLES OF THE TCLTEST MODULE

Many users of Tcl are using it for running applications which test other software, pieces of hardware, configurations, conditions, etc. Naturally, such testing environments require a great number of tests to be formulated, written, managed and run, and to have the results correlated.

It's also natural in such a testing environment for the system to be required to run hundreds or thousands of tests, with most of them being passed and only a few failing. In such a circumstance, the resultant reporting needs to be of a nature that it highlights the failures and summarises or even ignores the successes.

The test command in the tcltest package runs a command or block, and checks that the result is in line with a prediction. If it fails, output is generated with describes what was expected and what actually happened. If it succeeds, little or no feedback is given.

Tests can have constraints applied to them, and can have setup and cleanup operations described as well so that the mechanism can be used to run tests only in certain circumstances, or when there are certain pre-requisite actions performed.

A series of different tests can be developed in separate scripts and then run together as a test suite through a single controlling script, or even interactively - yet the maintenance of each test can remain with the original programmer who formulated the test


See also Tcl training modules

Please note that articles in this section of our web site were current and correct to the best of our ability when published, but by the nature of our business may go out of date quite quickly. The quoting of a price, contract term or any other information in this area of our website is NOT an offer to supply now on those terms - please check back via our main web site

Related Material

Tcl/Tk - The Tcltest Package
  [4457] - ()

resource index - TclTk
Solutions centre home page

You'll find shorter technical items at The Horse's Mouth and delegate's questions answered at the Opentalk forum.

At Well House Consultants, we provide training courses on subjects such as Ruby, Lua, Perl, Python, Linux, C, C++, Tcl/Tk, Tomcat, PHP and MySQL. We're asked (and answer) many questions, and answers to those which are of general interest are published in this area of our site.

© WELL HOUSE CONSULTANTS LTD., 2026: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • FAX: 01144 1225 793803 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho

PAGE: http://www.wellho.net/solutions/tcl-usin ... odule.html • PAGE BUILT: Wed Mar 28 07:47:11 2012 • BUILD SYSTEM: wizard