Code Templates Tab - Step Type Properties Dialog Box

Code Templates Tab

Use the Code Template tab to associate one or more code templates with the step type. A code template is a set of source files that contain skeleton code to serve as a starting point for developing code modules for steps that use the step type. TestStand uses the code template when you click Create Code on the Module tab of the Step Settings pane or the Source Code tab of the Specify Module dialog box for a step.

You can use the default TestStand code template for any step type, and you can customize code templates for individual steps.

The listbox shows the code templates currently associated with the step type. The Description indicator displays the description string for the currently selected code template. The following command buttons appear to the right of the listbox:

  • Create —Launches the Create Code Templates dialog box, in which you can create a new code template.
  • Add —Associates an existing code template with the step type. Click Add to launch the Select Code Templates to Add to Step Type dialog box, in which you can select from a list of code templates. TestStand generates the list from the set of subdirectories in the <TestStand> \CodeTemplates and <TestStand Public> \CodeTemplates directories. If you specify a code template that is not in the list, the code template subdirectory must be in the TestStand search directory paths . Use the Edit Search Directories dialog box to customize the search directory paths.
  • Remove —Disassociates the currently selected code template from the step type.
  • Edit —Launches the Edit Code Template dialog box, in which you can modify properties of the currently selected code template.
  • Move Up and Move Down —Changes the order of the items in the code template list. The order of the code templates in the listbox is the same order TestStand uses to display the code templates in the Choose Code Template dialog box.

See Also

Choose Code Template dialog box

Create Code Templates dialog box

Creating and Customizing Code Template Files

Edit Code Template dialog box

Edit Search Directories dialog box

Module Tabs and Specify Module Dialog Boxes

Multiple Code Templates Per Step Type

Select Code Templates to Add to Step Type dialog box

Step Settings Pane

Template Files for Different Development Environments