Test framework quick start

The easiest way to see how the Test framework works is to create a simple test. To help you get started quickly, this chapter describes two simple examples of how to write a test class. These examples show you the basic elements of a test class and show the mechanics of writing a test function. You can compile and run these samples to see what to expect when you run a test.

These examples assume you know how to use the tools to build a CommonPoint application system program. You do not need to understand the concepts behind the Test framework to use these samples but after looking at these samples, you will have some context for the concepts described later. Before attempting to write tests for your own code, you should refer to Chapters 3 and 5, "Test framework concepts" and "Developing tests".

Writing a simple test
Building the SimpleTest program
Writing a test function

[Contents] [Previous] [Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.

Generated with WebMaker