Specifying advanced component test options

The Advanced Options dialog box allows you to specify a series of advanced test generation parameters in the Component Testing wizard. In most cases, you can leave the default values.

The actual options available in this dialog box depend on the programming language of the current Configuration:

  • C or Ada

  • C++

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 help 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 Reference section of the help 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.

  • Test each template instance: tells the wizard to generate C++ Test Script Language code for each instance of a template class. If this option is selected, there must be template class instances in the source file under test. By default, the Test Generation Wizard generates a single portion of C++ Test Script Language code for a template class.

  • Overwrite previous test scripts: tells the wizard to overwrite any previously generated .otc or .otd test scripts. if this option is not selected, no changes will be made to any existing .otc or .otd test scripts.

  • Path for included header files: specifies how include file names must be analyzed.

    • Select Relative for relative filenames.

    • Select Absolute for absolute filenames.

    • Select Copy to use include the path as specified.

  • Included files: use the Add and Remove buttons to add and remove files in the list. The include file list used by the Component Testing wizard is kept in the generated test node settings.

Related Topics

Component Testing Wizard | About Configuration Settings