The Editor

Relevant for: GUI actions, scripted GUI components, function libraries, and API test user code or event handler files

You can write customized code for your tests by modifying actions, components, function libraries, user code files, or event handlers in the Editor. Enhance your tests and function libraries using a few simple programming techniques.

Text and code editing features

The Editor supports common text and code editing features, including:

You can also define personalized options for using the Editor in the Text Editor tab of the Options dialog box (Tools > Options > Text Editor tab > General node.)

For a description of using the editor for GUI tests and components, see Programming Tests. For a description of using the editor for API tests, see Event Handlers for API test steps.

Back to top

Access the Editor

To access UFT One's editor, create or open an action, scripted GUI component, function library, or user code file.

If the Keyword View is displayed, click the Toggle between the Keyword View and Editor button in the toolbar.

Note: UFT One versions 2021 R1 and later: The view you are using when you close UFT One is maintained and used the next time you open UFT One.

Back to top

View and access object properties

View and access object properties for the test objects in your script directly from the Editor.

Right-click an object in a step, and then select one of the following:

  • Object properties. View the properties for the selected test object in a pop-up.
  • Open in repository. Open the object repository to the selected test object.

Back to top

Find functions in your document

Use the class and function browser at the top of the editor to quickly navigate to a function in your document.

In the dropdown lists, first select the necessary Class from the left dropdown menu, and then select the function (that is contained in the selected class) from the right dropdown menu.

Icon reference table

Type

Icon

Description

Class

Class

Internal class

Private class

Protected class

Delegate

Delegate

Internal delegate

Private delegate

Protected delegate

Enumeration definition

Enumeration definition

Internal enumeration definition

Private enumeration definition

Protected enumeration definition

Event

Event

Internal event

Private event

Protected event

Extension method

Extension method

Internal extension method

Private extension method

Protected extension method

Field

Field

Internal field

Private field

Protected field

Indexer

Indexer

Internal indexer

Private indexer

Protected indexer

Interface

Interface

Internal interface

Private interface

Protected interface

Keyword

Keyword

Literal

Literal

Local

Local

Method

Method

Internal method

Private method

Protected method

Namespace

Namespace

Operator

Operator

Parameter

Parameter

Property

Property

Internal property

Private property

Protected property

Reference

Reference

Structure

Structure

Internal structure

Private structure

Protected structure

Back to top

See also: