Test RealTime for Eclipse CDT
You can use the component test editor to edit the contest of a Test RealTime component. The component test editor is composed of three pages:
Overview: This page provides a view of the files that are in the test and the properties of the test.
Settings: This page enables you to edit the configuration settings of the test. These settings can be linked to a Test RealTime configuration. In this case, whenever a setting is changed in the linked configuration, it changes also in the test configuration settings.
Compare: This page enables you to edit the compare configuration settings. See Comparing two component test runs for more information.
To edit a component test in Eclipse:
In the Eclipse workbench, select the test perspective and double click a Test RealTime test in the test navigator.
Use the component test editor to configure your test. In the General section specify the name of the test and provide a description, if necessary.
In the File section, specify the files that are required to run the test:
Test scripts: In C, the .ptu test script. In C++, the .otc, .stb, .dcl, and .otd test scripts.
Tested files: The source files that are under test.
Additional sources: Source files that are required by the test script, but not actually tested.
Linked files: Sources files that are linked to by the source files under test.
Simulated files: The source files to simulate—or stub—upon execution of the test.
Datapool: import .csv table files and to turn these into standard .h header files. The resulting header file uses the same filename with a .h extension. Once included in your .ptu or .otd test script, this data can be used by the test driver script or the application under test. See Importing a data table (.csv file) for more information on data tables.
Click Add or Remove to add or remove files from the test. Click Edit to edit a test script or source file.
In the Test Elements section (for C only), enable or disable the individual tests or test families from the test scripts that you want to include in the test driver.
In the Configuration Settings section, click Edit to change the configuration settings for the test.
In the Compare Mode section (for C only), select whether to enable the compare mode and edit the compare configuration settings.
Save or close the test.
Related Topics
Writing a C Test Script |C++ test driver script | C++ contract check script | Automatically updating a .ptu test script | Enabling and disabling tests, services and families | Comparing two component test runs | Writing a test script | Integrated, simulated and additional Files (C) | Additional and included files (C++)