Writing a Test Script

Component Testing for Ada

When you first create Component Testing for Ada test node with the Component Testing Wizard, OneTest Embedded produces a .ptu test script template based on the source under test.

To write the test script, you can use the Text Editor provided with OneTest Embedded.

Component Testing for Ada uses the Ada Test Script Language. Full reference information for this language is provided in the HCL OneTest Embedded Reference. section.



To learn about


Basic .ptu test script instructions

Structure Statements

Specifying the main Ada entry unit

Test Program Entry Point

Initializing and testing variable values

Initial and Expected Values

Simulating stub functions

Stub Simulation

Catching exceptions

Unexpected Exceptions

Other specific Ada testing notions

Advanced Ada Testing


Related Topics

Structure StatementsAbout the Text Editor