Customizing a script template

HCL DevOps Test UI (Test UI) uses its default script templates to format and provide basic information when you create a script. You can customize the information and format by customizing the script templates.

About this task

To customize a script template, use the Test UI Script Templates Property Page. In Test UI, Eclipse Integration, you can also use the Java editor, which provides simple formatting of the template and help with the Java syntax. In Test UI, Microsoft Visual Studio .NET Integration, you can use the Code editor.

Procedure

  1. Right-click a functional test project in the Projects view, click Properties from the pop-up menu.
    The Properties for <project_name> dialog is displayed.
  2. Click Functional Test Script Templates.
    The Functional Test Script Templates page is displayed.
  3. In the Select template type list, click the script template to customize.
  4. Edit the script template:
    1. Edit the script template using the appropriate placeholder.
    2. Click Apply and Close to save all edits to all script templates.

    You can also edit a script template with the Java editor in Test UI, Eclipse Integration or the Code Editor in Test UI, Microsoft Visual Studio .NET Integration. Click Open current template in Editor to open the template in the appropriate editor.

    Tip: To omit associated punctuation for any null properties, enclose the placeholder in a pair of carets (^). For example:
    ^%map:contextComment%^