Test environment introduction

The CommonPoint application system Test environment provides the tools and protocols for developing tests to ensure that your code works properly. The Test environment gives you a standard way to connect your code to the test conditions and get the test results.

The Test environment consists of two major elements: the Test framework and the RunTest application.

The Test framework is a collection of classes that provide a standard format for writing tests and reporting results. The Test framework eliminates the need to reinvent solutions to recurring problems. For example, the Test framework contains ready-to-use classes to test proper protocol support, such as copying and streaming.


The Test framework provides the structure for you to link the tests you write to your code. To use the Test framework, you write test classes that evaluate the behavior of the target class you are testing.

You can then perform any Test framework compliant tests consistently with the RunTest application. When you perform the test, the test class creates an instance of your target class and then compares its actual behavior with the behavior you expect. If the results are the same, your test passes.

The Test framework supports:

The RunTest application gives you an execution environment that works with a shell scripting language allowing you to run tests, examine these tests at run time, and retrieve logged outputs after run time.

When you use the Test framework classes to write your test and then use RunTest to perform the tests, anyone can:

When you create a test script to perform your tests, the script includes all of the test functions and necessary options so that someone unfamiliar with the specifics of the test can run the script and interpret the results. This makes it easy for you to create automated regression tests.


[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