UFT Developer provides test automation capabilities in your IDE for Agile Development, Continuous Integration, Mobile, and DevOps.
Note: This reference covers UFT Developer versions 2021 through 2023. Any version-specific changes are indicated where relevant.
Using the LFT Namespace
Start your code with a
var <variable name> = require ("leanFT") statement to load the main LeanFT module. In the code samples, we use the variable name LFT. Therefore, we refer to the main namespace as LFT.
Within this namespace, you can use the following functions, namespaces, classes, enumerations, and types:
Call this function after each test method.
Call this function before each test method.
Performs an SDK cleanup when connection ends.
Initializes the SDK with the specified configuration.
Provides the SDK for executing AI-based tests.
Provides the SDK for executing API tests.
Provides the SDK for image-based object identification.
Provides the SDK for testing Java objects.
Provides the SDK for testing objects in mobile applications.
Provides the SDK for testing Oracle objects.
Provides the SDK for testing SAPGUI objects.
Provides the SDK for testing SAPUI5 objects.
Provides the SDK for testing standard Windows objects.
Provides the SDK for testing Terminal Emulators objects.
(UFT Developer 2023)
|Provides the SDK for testing objects using UI Automation.|
Provides the SDK for testing Web objects.
Provides the SDK for testing .NET Windows Forms objects.
Provides the SDK for testing WPF objects.
A top-level Window or Dialog test object.
Provides image utilities, such as OCR, image comparisons, and image find operations.
|Keyboard||Enables low-level keyboard operations.|
|Mouse||Enables low-level mouse operations.|
|Reporter||Provides the means to report custom events, additional data, and configuration for the report.|
|SDK||The LeanFT SDK base class.|
|FunctionKeys||Represents the function keys.|
|KeyModifier||Represents additional pressed keys.|
|Keys||Represents keyboard keys.|
|ScrollOrientation||Represents the orientation of the scroll bar.|
|WindowExtendedStyles||Represents extended window style properties.|
|WindowState||Represents the window's current state (maximized/minimized).|
|WindowStyles||Represents window style properties.|
|CheckedState||The state of a check box.|
|DateFormatType||Indicates whether a date entity refers to a single date or to one or more date ranges.|
|GridSelectionMode||The selections that are possible in a grid.|
|Horizontal||The horizontal location of the related test object relative to the object to identify.|
|Location||The location (relative to an object in the application) at which to perform the operation.|
|MouseButton||The mouse button to use.|
|Point||The coordinates of a point on the screen.|
|Position||Indicates the corners or center of an object.|
|Proximity||The distance or hierarchical location of the related test object relative to the object to identify.|
|ScrollType||The type of scrolling operation.|
|SwipeDirection||The direction of the swipe.|
|Vertical||The vertical location of the related test object relative to the object to identify.|
|VerticalScrollPosition||The position of the Vertical scrollbar.|
|Aut||An abstraction of an AUT process launched by the user.|
Represents a native object in an application. Returned by any test object's nativeObject method, enabling you to access the object's native properties and methods.
|RectLocation||Describes the location and size of a rectangular area on the screen.|