Test Framework Application

VTS versions 7.5 and later include a Test Framework application that allows VTS programmers to test VTS applications. The Test Framework application can be launched while the Source Debugger is running (see Source Debugger: Tool Bar), or from the VAM (see note below).

Note: If the Test Framework application is not referenced in the VAM, you must manually add it. The Test Framework application's directory is named "TestFramework", and is stored within the VTS installation directory. If you require assistance in adding the Test Framework application to the VAM, please refer to the instructions provided in Add an Existing Script Application to the VAM.

Tests are organized on an application-by-application basis. You may choose which application to test, and Test Framework will load an independent copy of the application and automatically discover all tests that are defined within the application.

Note: It is the responsibility of the VTS programmer to write their own tests for their individual applications. Information on writing tests for the Test Framework is provided in Writing Tests for the Test Framework .

A tree showing all tests and all modules that directly or indirectly contain tests will automatically be generated. Tests may be enabled or disabled on an individual basis, or at a tree-node level.

 

For an understanding of how to design and use tests, the following Internet sites may be of use:

http://www.agiledata.org/essays/tdd.html

http://en.wikipedia.org/wiki/Test-driven_development

Topics in this section:

Test Framework Application Components

Writing Tests for the Test Framework

Running Tests Using the Test Framework Application