LeanFT with Java
Introduction Supported applications Installation of LeanFT and plugins for IDEs Installing browser Extensions LeanFT settings,Object identification Center Understanding LeanFT SDK API Installing the LeanFT jar files in Maven Repository Creating LeanFT Maven Project Creating LeanFT Project with Gradle and TestNG LeanFT Properties Setting up LeanFT project in IntelliJ IDEA Creating maven project with JUnit with LeanFT in Eclipse Creating maven project with TestNG in Eclipse Description programming Application model Using regular expression in property values First web application test Identifying the Web elements using XPATH and CSS Identifying objects using Visual Relational Identifiers – VRI Handling embedded browser control in Windows app Firing events on Web Elements using LeanFT Executing JavaScript in web page Automating standard windows application Automating Java Application Automating WPF applicationsAutomating SAP Application Synchronization in LeanFT Assertions in LeanFTLeanFT with Cucumber Keyword Driven frameworks Data Driven Frameworks Converting the UFT Object Repository to Application models in LeanFTChallenges of LeanFT automation Working with third party objects using Native Object properties and methods LeanFT common issues and solutionsLeanFT Java ReferencesCommon issues in leanft in Java
I have listed down common issues and solutions that you may encounter while working with LeanFT.- Failed to connect to LeanFT run time engine on….This exception comes when LeanFT run time engine is not running. Just start the engine and this error should vanish.
- An Internal problem has occurred, please make sure the LeanFT SDK was properly initialized….This exception comes when you have not initialized LeanFT SDK. To get rid of this exception, add below lines at the beginning of the code.
ModifiableSDKConfiguration config = new ModifiableSDKConfiguration();
config.setServerAddress(new URI("ws://localhost:5095"));
SDK.init(config);
- IntelliJ IDEA does not start when LeanFT is plugin is enabled – To fix this issue kill the LeanFT plugin for IntelliJ IDEA in process explorer
- com.hp.lft.sdk.ReplayObjectNotUniqueException: Object not unique – This exception comes when LeanFT finds more than one object matching the description. To fix this issue, you need to add more properties so that only one object is identified.
- Object not found – This exception comes when LeanFT is not able to find the object in the application. To fix this issue, ensure that object really exists in the application and you are using correct description to identify the object.
Web development and Automation testing
solutions delivered!!