Known issues

This section displays the known issues when working with LeanFT.

LeanFT inherits its capabilities from UFT and is affected by UFT's known issues as well. For details, see Known issues in the UFT Help Center.

Plugins

General

When using the Highlight option in the application model for a test object with VRI objects defined, the highlight operation succeeds only if exactly one object matches the description (including the VRI definitions). If multiple objects match, nothing is highlighted.

Workaround: Use the VRI Preview option to check the description.

Eclipse Kepler/Luna users

To use the Eclipse IDE for Java EE Developers or Eclipse Standard editions with the LeanFT plugin, you must deploy the Google Gson plugin to your Eclipse folder:

  1. Download the Google Gson plugin, version 2.1 or later, from MVN Repository.

  2. Copy the downloaded .jar file to your <Eclipse deployment>\plugins folder and reopen Eclipse.
Visual Studio

Web-based AUTs

If your IDE is in front of your browser when you click the Highlight option from the Application Model editor or from the Object Identification Center, the Highlight rectangle appears, but sometimes the IDE window stays in focus and may block the object.

Workaround: Arrange your screen so that the IDE does not block your application.

IntelliJ IDEA When moving an application model's .tsrx file to a different module/location while viewing it in the Editor's Design tab, the view changes to the Text tab.

Back to top

Parallel test execution

  • Parallel test execution is not supported on Internet Explorer and Edge browsers.
  • The WebElement.dragAndDropOn method is not supported in parallel test execution.

Back to top

Test recorder

  • You cannot use the test recorder to record an action on a Web.FileField. Add this code manually to your test script.
  • The Browser.closeAllTabs action does not work as expected on Firefox during a test recording. Add this code manually to your test script.
  • You cannot use the test recorder to record actions on dialog or slider objects on Safari on Mac. Add this code manually to your test script.
  • In LeanFT 14.50, you cannot use the test recorder to record the action of launching an Internet Explorer browser. Add this code manually to your test script.

Back to top

Technologies - general

  • When using the getSnapshot method, you can save the snapshot as a .png file only.
  • On Windows 10, if you have only the German language pack installed, the Keyboard.sendString method sends some special characters incorrectly.

    Workaround: Install the English language package in addition to the German one.

Back to top

Web technology

This section described known issues when working with LeanFT on various web browsers.

Chrome

  • The FireEvent OnBlur event is not supported in Chrome.
  • If a Chrome browser is open and has an alert message box displayed prior to the start of a LeanFT test run, you must manually close the message box before starting the run.
  • Using the Forward method when the current browser page is about:blank throws an exception and fails the test.

    Workaround: when on an about:blank page use the Navigate method instead of the Forward method.

Headless Chrome

  • If you run a LeanFT test on Headless Chrome on a Mac, make sure that your test closes the browser by the end of the run. Otherwise, you will not be able to open Chrome again until you manually kill the Headless Chrome process.

  • SAPUI5-based applications are not supported on headless Chrome.

  • Menu, TabStrip, and TreeView objects are not supported.

  • Cross-domain iFrame objects are not supported.

  • The following operations are not supported:

    • Drag-and-drop operations

    • Browser Dialog operations: HandleDialog, HasDialog, GetDialogText

    • ImageUtils operations

    • Browser.ClearCache

    • BrowserFactory.GetAllOpenBrowsers

    • WebFile.Set()

    • VRI

  • BrowserFactory.Attach. You can attach only to the first tab for each browser. You cannot attach to a tab opened from the web page or by an Open New Tab command.

    Note: In LeanFT 14.50 the Attach method is not supported.

Internet Explorer

  • When using Internet Explorer 11 on a computer with UAC enabled:

    If a step in the test navigates from a protected-mode zone to a non-protected-mode zone, the navigation step succeeds, but any subsequent step will fail.

    Workaround: Reattach to the browser by calling BrowserFactory.Attach and then continuing with the browser that is returned.

  • When running tests in parallel on Internet Explorer 11, snapshots for controls received by the findChildren method do not appear in the run results report.
  • When recording on Internet Explorer on a computer with UAC enabled, whenever you navigate from a protected-mode zone to a non-protected-mode zone, an additional browser-launch step is recorded.

Edge

  • LeanFT can work with Microsoft Edge browser only when launched with the Edge Agent for Functional Testing.
  • For LeanFT to work with the Edge browser, UAC must be enabled.

  • LeanFT has changed the way that the Microsoft WebDriver program (required for the Edge Agent for Functional Testing) is used. For details on the required steps to perform, see the Set up Microsoft Edge for LeanFT (Windows only).

Multiple instances

You cannot open more than one instance of the Edge browser. This includes multiple BrowserFactory.Launch methods without closing the previous instances, or other methods that create a new browser instance such as Browser.OpenNewTab

Frame or iFrame objects

You cannot spy on or run steps on Frame or iFrame objects, or any elements inside these objects, using Microsoft Edge.

Unsupported methods

The following methods are not supported in Microsoft Edge:

  • FullScreen()

  • DeleteCookies()

  • File.SetValue()

PhantomJS

Menu, TabStrip, and TreeView objects are not supported.

The following operations are not supported:

  • Drag-and-drop operations
  • Browser Dialog operations: HandleDialog, HasDialog, GetDialogText
  • WebFile.Set() operation
  • ImageUtils operations
  • VRI

Safari

Functionality and Settings

  • Web pages that modify the browser's JavaScript functionality (for example, a web page that replaces the JSON object) may cause LeanFT to behave unexpectedly.

  • The font and color properties for link objects contain different values in different browsers.

  • If you have multiple Safari users defined, you must delete all users.

  • Safari does not work on Mac using a remote access window.

Test Objects, Methods and Properties

  • When using Safari, the innertext, outertext, innerhtml and outerhtml property values may differ from other browsers. Therefore, using these values in parameters may cause the steps to fail.

  • The following test objects, methods, and other Web-specific functionalities are not supported in Safari:

    • ViewLink test object

    • about://* pages

    • Browser.Home method

    • Browser.FullScreen method

    • Browser.Object method

    • Modal or modaless dialog boxes
    • Developer Tools pane. (Running steps or Safari while the Developer Tools pane is open is supported.)
    • Dialog boxes opened by the browser, such as Alert, Confirmation, or Prompt messages.

    • WebXML test object (and, accordingly, XML checkpoints and output value steps).

    • Web-based environments, such as Web-based SAP, Siebel, Java, .NET Web Forms, and so on.

Other

  • Web 2.0 test objects or Web Add-in Extensibility-based test objects are not supported on Safari

  • LeanFT does not recognize internal Safari pages, such as the New Tab page.

  • The following test objects and test object methods are not supported when running on Safari:

    • WebFile.Set method

    • Browser.ClearCache method

    • Browser.DeleteCookies method

    • Drag & Drop methods (on all Web test objects)

    • Web test objects located inside iFrame controls with a blank or about:blank SRC value.

  • During a run session, steps that click on a Web object that is supposed to open a new browser tab fail to open the new tab.

    Workaround: Disable the popup blocker in Safari. (Safari > Preferences > Security, clear the Block pop-up windows check box).

  • Performing Back or Forward options on Safari version 9 causes unexpected behavior in LeanFT.

    Workaround: Do the following:

    1. In Safari. select Preferences > Advanced.

    2. In the menu bar, select the Show Develop menu in menu bar option.

    3. In the Develop menu, select Disable caches.

  • In certain configurations, the Object Identification Center and test runs do not work properly on the first browser tab that is opened.

    Workaround: Select the Auto Proxy Discovery protocol in your network settings:

Attributes property (C#) or getAttributes property (Java)

In some cases, the Attributes collection returned by Attributes property (C#) or getAttributes (Java) may be different between Internet Explorer and other browsers such as Chrome or Firefox.

Navigating to a new page

If you perform a step that navigates to a new page immediately followed by an image capture operation such as OCR operations, image verifications or comparisons (VerifyImageMatch, VerifyImageExists, CompareImage, LocateImage) or the GetSnapshot method, the step may fail.

Workaround: Add a browser.Sync() step before your image capture operation.

SAPUI5

If the SAPUI5 add-in is loaded (selected in Settings > Engine tab ), LeanFT cannot recognize Web TreeView, Menu, or TabStrip test object types.

Back to top

.NET Windows Forms and WPF technologies

WPF ComboBox / WPF List test object

You cannot use the following to create the test object descriptions of WPF ComboBox or WPF List test objects:

  • C# properties: Items, SelectedItem, or SelectedItems
  • Java methods: getItems, getSelectedItem, getSelectedItems
WinForms Button test object

LeanFT cannot identify a WinForms Button test object if WindowId is the only property in its test object description.

WinForms Edit object

Before performing a Select operation on a WinFormsEdit object, you must first perform a Click operation on it.

Back to top

Standard Windows technology

The ListViewItem.EnableLabelEditing method works only if it is preceded by an ActivateItem step.

Back to top

SAPUI5 technology

When spying on an SAPUI5 list box, the Object Identification Center (OIC) displays the control type as Unknown.

Back to top

Terminal Emulator technology

  • The GetVisibleText()method from TestObjectBase does not work as expected for Terminal Emulator technology because of the third party library for text recognition (OCR) used by LeanFT. This issue is known for other technologies as well.
  • SendKeys(Keys.ENTER) is not supported for TeTextScreen. To send the Enter key, use the Keyboard class. For details, see Send keystrokes to the AUT.

  • SetCursorPos and the properties current row and current column are not supported for TeTextScreen.

Back to top

Support

When working with Java 9 on Mac versions Sierra or later, the LeanFT tray icon is not displayed. To start and stop the LeanFT runtime engine and to open the Settings dialog box, use command line scripts as described in the relevant topics. For details, see Customize LeanFT runtime engine settings and Start/Stop the runtime engine.

Back to top

Integrations

  • Testing mobile apps with LeanFT. For notes and limitations related to testing mobile apps with LeanFT, see the Mobile Center Help.

  • UFT API Tests. UFT API tests that are parametrized from excel files cannot be called and run from LeanFT tests (C# and Java).

Back to top