Test Driver/Script Generation
The Test Vector Generator stores test vectors in a generic textual format. This format is not well-suited for test execution. Typically, these generic test vectors are transformed into formats that support manual or automated test execution. There are a variety of formats, including:
- Manual Test Procedure in text, HTML or some other document format
- Test Driver in programming source code such as C, C++, Java, PERL, etc.
- Test Scripts for commercial test execution tools such as WinRunner
- Test Scripts for custom and/or proprietary test harness or simulation systems
The Test Driver Generator is completely general. By customizing the test driver template and mappings, it generates any sort of textual output.
The Test Driver Generator transforms generic test vectors into other formats, especially formats specialized for test execution. This transformation is accomplished by combining the test vectors with a generic template. The generic template defines the high-level structure of the desired format. Additional details of the transformation are specified for each test input and output, if necessary.
The figure illustrates the process of test driver generation, test driver execution and results analysis. The Test Driver Generation combines the generic test vectors, test driver template and custom mappings to generate the test driver source code and a file containing the test expected outputs. The test driver is used to execute the tests in the testing environment. The results of each test are stored for later comparison. Finally, the expected test results are compared to the actual test results to complete the testing process.
|