This post is in continuation with LeanFT tutorial series. Refer the last post on Getting Ready with LeanFT, if you would like to start over from beginning. In this post we will cover Browser Extensions that comes with LeanFT and Settings.
In order to identify objects on different browsers, LeanFT needs to have functional testing agent extension enabled for the browsers. Below browsers are supported
- Google Chrome
- Mozilla Firefox
- Internet Explorer
- Microsoft Edge
- Embedded Browser Controls
Browser extensions comes with LeanFT installation. After installation>>>link<<<, 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 “Agent” file to the browser extension page.
[fvplayer src=”http://automated-360.com/wp-content/uploads/2017/08/Extension.flv” width=”800″ height=”600″ autoplay=”true” embed=”true”]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, goto Tools> Manage Add-ons and enable HPE Functional Testing Agent extension.
Setup Microsoft Edge for LeanFT
To Setup Microsoft edge for leanFT, make sure that the Microsoft WebDriver is present in the LeanFT installation folder. Follow the steps below
- From the Microsoft WebDriver page, download the correct version of the WebDriver for your Microsoft Edge version.
- Copy the downloaded WebDriver.exe file to the <LeanFT installation>\bin folder, and rename it MicrosoftWebDriver.exe.
- 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.
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.
- Make sure UAC is disabled while using the utility or run the utility executable using Run As Admin.
- Run the Register Browser Control Utility from <LeanFT installation folder>\bin\SettingNewBrowserControlApplication.exe.
- Enter the path of the application containing the browser control and click Register.
- Restart the LeanFT runtime engine.
If needed, you can run this utility again at a later time to unregister the browser control.
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 – Its 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