LeanFT Tutorial

This post is in continuation with the LeanFT tutorial series. Refer to the last post on Getting Ready with LeanFT, if you would like to start over from the beginning. In this post, we will cover Browser Extensions that come with LeanFT and Settings.

Browser Extensions

To identify objects on different browsers, LeanFT needs to have a functional testing agent extension enabled for the browsers. Below browsers are supported

  1. Google Chrome
  2. Mozilla Firefox
  3. Internet Explorer
  4. Microsoft Edge
  5. Safari
  6. Embedded Browser Controls

Browser extensions come with LeanFT installation. After installation, you can find these at path <LeanFT Installtion>\Installations\<Browser Folder>

 

Setup Chrome, Mozilla and Safari Just by Drag-Drop

Chrome, Mozilla and Safari can be installed quickly by dragging the “Agent” file to the browser extension page.

Setup Internet Explorer

When you open internet explorer for the first time after Installing LeanFT, you will be prompted to enable HPE Functional Testing Agent. Don’t worry if you ignored it, you still can set this, go to Tools> Manage Add-ons and enable HPE Functional Testing Agent extension.

 

Setup Microsoft Edge for LeanFT

To set up Microsoft edge for leanFT, make sure that the Microsoft WebDriver is present in the LeanFT installation folder. Follow the steps below

  1. From the Microsoft WebDriver page, download the correct version of the WebDriver for your Microsoft Edge version.
  2. Copy the downloaded WebDriver.exe file to the <LeanFT installation>\bin folder, and rename it MicrosoftWebDriver.exe.
  3. Open an Edge browser session together with Edge Agent for Functional Testing. You can do this in one of the following ways:
  • From the Start Menu:  Edge Agent for Functional Testing.

For example, you would start Edge this way if you are working with the Object Identification Center (OIC) for Edge.

  • A BrowserFactory.Launch(BrowserType.Edge); statement.

After your browsers are set up with the required extensions:

  • If the LeanFT runtime engine or the OIC is open at the time you enable the agent for a browser, close and restart the LeanFT runtime engine after the browsers are configured.
  • When you use LeanFT to test Web applications, open your browser only after the LeanFT runtime engine is active. LeanFT does not recognize objects in browsers that were opened before the runtime engine.

Register embedded Browser Controls

If you have a non-Web application that hosts a browser control, you must register the control so that the LeanFT runtime engine can recognize the objects inside as Web objects.

See also  LeanFT Tutorial #5: Create Tests in LeanFT

You must register the browser control with LeanFT on any computer where you want to run your tests or use the OIC.

You register the control using the Register Browser Control Utility.

  1. Make sure UAC is disabled while using the utility or run the utility executable using Run As Admin.
  2. Run the Register Browser Control Utility from <LeanFT installation folder>\bin\SettingNewBrowserControlApplication.exe.
  3. Enter the path of the application containing the browser control and click Register.
  4. Restart the LeanFT runtime engine.

If needed, you can run this utility again at a later time to unregister the browser control.

LeanFT Settings

Settings can be accessed and modified from IntelliJ, Eclipse IDE or any other IDE if you are using. You can configure most of the LeanFT runtime engine settings, such as the technology add-in support to load, the connection port, Mobile Center connection information, and other connection settings in the LeanFTSettings dialog box.

 

LeanFT runtime engine settings – To adjust the port of engine and Engine Idle time out. You can also specify object synchronization timeout, with which LeanFT should wait for the objects to load.

Object Identification settings – It’s similar to what we have already seen in UFT, define identification parameters and priorities for all different types of objects

Add-ins – specify which add-ins are required for your test and you want to have it loaded

 

Mobile Settings – specify the mobile center server address to automate the mobile applications with LeanFT.

Hope you are enjoying this tutorial series, Stay tuned for upcoming posts

 

3 COMMENTS

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.