Coding Tab (Options Dialog Box)
Relevant for: GUI testing and API testing
This tab enables you to set options that facilitate designing code.
To access
|
Select Tools > Options > Coding tab.
|
Important information
|
-
The Restore Factory Defaults button resets all Options dialog box options to their defaults.
-
You can edit the names, keywords, descriptions, and code snippets of any template defined in this pane.
-
UFT One provides default file types and snippets. You can add additional lists of file types and snippets as needed.
|
Relevant tasks
|
Use code snippets and templates
|
This tab includes the following panes:
Code Templates Pane
UI Element
|
Description
|
File types
|
The file types for which the displayed list of templates is used.
Select an item from the drop-down list to display the templates associated with the selected file extensions.
Default options include:
- .vb files .
- .cs files (used for API tests)
- .mts, .qfl, or .vbs files (used for GUI tests)
|
Add List
|
Adds a new list of templates and the file types for which to use them.
A new item is added to the File types drop-down list.
|
Remove List
|
Removes the currently displayed list of templates and the associated File types item.
Caution: Deleting a list is irreversible.
|
Edit List
|
Enables you to edit the file extensions associated with the displayed list of templates.
|
Template
|
The name of the template.
|
Keyword
|
The keywords that trigger the use of the template when invoking code completion in files of the selected types.
|
Description
|
A string that describes the code snippet.
|
<code snippet>
|
The code that is inserted into your document. The snippet can include text that is inserted as is, as well as variables (prefaced by a dollar sign $) that are replaced with actual values when they are inserted into the document.
Tip: To edit the code snippet, modify the text in this area and click another template row or OK.
|
See also: