Skip to main content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.


The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Automation and Testing of Character-Graphic Programs



Don E. Libes


This paper describes a technique that allows automation and testing of character graphic programs using existing public-domain tools. Specifically, Tcl, Tk, and Expect are augmented with a terminal emulator in order to build a screen representation in memory. This screen can be queried in a high-level way and the interaction can be further controlled based on the screen representation. One immediate use of this tool is to build a test suite for automating standards conformance of the interactive programs in POSIX 1003.2 (Interactive Shells and Utilities). This technique is portable and inexpensive. All the software described in this paper is free or in the public domain.
Software - Practice & Experience, John Wiley & Sons, West Sussex, England


conformance testing, Expect, interaction automation, POSIX 1003.2, regression testing, Tcl/Tk
Created February 1, 1997, Updated February 17, 2017