background image
<< To select a unit for test | Component Testing for Java >>
<< To select a unit for test | Component Testing for Java >>

Component Testing for C and Ada

Test RealTime - User Guide
·
C or Ada
·
C++
·
Java
Component Testing for C and Ada
The following advanced options are available in the Component Testing wizard with
a C or Ada Target Deployment Port:
·
Tested file: name of the source file under test
·
Test script and path: location and name of the generated test script template
·
Test static/private data or functions: specifies whether the file under test is
included in a #include statement.
·
Additional options: allows you to add specific command line options for the C
or Ada Source Code Parser. See the Command Line Reference section in the
Rational Test RealTime Reference Manual for further information.
Component Testing for C++
The following advanced options are available in the Component Testing wizard for
C++:
·
Tested file: name of the source file under test.
·
Test driver script: specifies whether an .otd test driver script is to be generated.
·
Contract-Check script: specifies whether an .otc Contract Check driver script is
to be generated.
·
Test script and path: location and name of the generated .otd test driver script
template.
·
Directory for Contract-Check script files: sets the location where the .otc
Contract Check script files are created.
·
Additional options: allows you to add specific command line options for the
C++ Source Code Parser. See the Line Command section in the Rational Test
RealTime Reference Manual for further information.
·
Ignore #line directive: by default, the Test Generation Wizard analyzes
#line
directives, although use of preprocessed files with Component Testing for C++
is not recommended. Select this option when
#line
directives should be ignored.
·
Test union and struct as class: tells the Test Generation Wizard to consider
classes defined with the
struct
or
union
keyword as candidate classes. This
option is only available if the auto-select candidate classes was selected on the
File and Classes under Test page.
312