Since past couple of months, we have been receiving multiple emails from many of you asking for the posts related to LeanFT. We always tried to address all your questions as appropriately as possible and will continue to do so, this time we thought to come up with a comprehensive tutorial on LeanFT, which will help to address most of the scenarios around LeanFT. Here you go, the most awaited Series LeanFT Tutorial. This series will contain posts on various aspects, feature, components of LeanFT, our aim is to get yourself acquainted completely. If you don’t want to miss any post, subscribe now and as always feel free to reach us if you have any doubts, comments, suggestions.
What is LeanFT?
LeanFT is a solution by HPE built for continuous integration and testing. It’s a fully integrated in standard development IDEs: Visual Studio, Eclipse, and IntelliJ. It enables the development of test scripts based on standard unit testing frameworks, such as NUnit, JUnit, and TestNG. With various features and capabilities, it’s a great tool for efficient automation and for collaboration with Agile and DevOps teams.
We are not going to discuss much on the overview, you should take a look on the basic overview of LeanFT, read our earlier post on LeanFT by Vinayak Gaur
Try LeanFT free with demo license for 60 days.
A machine-specific license based on a specific locking code per computer. The key must be entered once only, and provides one installation per key.
A computer with multiple bootable partitions may generate a different locking code for each partition. When obtaining a seat license key, you must use the locking code for the partition on which you want to use LeanFT.
A license taken from a license server on a per-session basis. You must have an active network connection to install and check out commuter licenses.
Each time LeanFT starts, it tries to connect to the License Server for an available license.
Each key provides unlimited installations. The license server regulates the number of licenses in use at any given time.
Concurrent licenses are consumed as long as the LeanFT runtime engine is active, and include the following additional types:
Use a commuter license when you plan to have no access to the License Server.
With a commuter license, you can use LeanFT without an active network connection.
When you are finished using a commuter license, return it to make it available for other users.
Remote commuter licenses
Request a remote commuter license if you are not able to connect to the License Server to check one out.
You must send the request to another user who does have access to the License Server, who in turn must send you the required key.
Concurrent licenses are released if the LeanFT runtime engine is idle beyond the defined timeout. The engine is active only when it interacts with your application via the Object Identification Center (OIC) or while running tests.
In order to install LeanFT you have two choices. You can install along with Unified Functional Testing(UFT); Lean FT is packaged together with HP UFT. Or you can choose to install standalone version. Note than standalone version can only be installed on the machine where UFT is not installed. If you need to install on the same machine, its required to use the same package and install LeanFT as part of your UFT installation. If you already have UFT installed, you can install LeanFT from Program and Features and select the change option for your UFT installation.
It has been observed that, Installation with UFT is a lot smoother than installing standalone LeanFT. Where the installer notifies you with all the necessary action to take about the environment if it is not setup. whereas to begin with LeanFT standalone, it’s not that straight forward. Its recommended to have the environment setup ready before you begin with the installation. Install Visual Studio or Eclipse (depends on what you prefer) before starting the installation.
Installing LeanFT with UFT
Launch setup from your installation media and select Unified Function Testing Setup Option. This option is to setup UFT as well as LeanFT. You will need to choose the options to install LeanFT in further installation window.
The installation wizard starts with the window for UFT Configuration where you can select all the different features which you would like to install. One of the feature you will find there for LeanFT. Click on the drop-down button and select ‘Entire feature will be installed on local hard drive’. You should select or deselect the other features, specially add-in which you want to install with UFT.
The next screen appears to select the IDEs you would like work with, which is installed on your machine. If you select eclipse and you don’t have the machine ready to run Eclipse, the setup will pop up that it can’t find node.Js and instruct to install the same. You should download the node.js from the node.js website (download link below) and start installation again.
Once done with installation you will get the configure UFT, here you should hit next button and in a few mins you are all set.
Installing LeanFT Standalone
Launch setup from installation media and select LeanFT Setup option. As mentioned earlier, you have to have the IDE environment ready on your machine. If not, you can install LeanFT run-time engine only.
The installation wizard starts and after checking the pre-requisites and Installation path screen the window for LeanFT Configuration appears. Here you will need to select what feature you want to install. For example you might want to install LeanFT engine only or you would like to go with full installation along with the IDE plugin. In which case you will need to select which IDE you would like to use to work with LeanFT.
As you can see in the screenshot below, the setup has detected the available IDEs on my machine i.e. Visual Studio, Eclipse and IntelliJ Idea. I have all these three IDE setup already on my machine, depending on what you machine has, the setup will automatically enable for you to select. You might to select all or any one of your choice.
If you are planning to use Eclipse, you will need to mention the path of eclipse folder where its installed on your machine.
Hit Install and that’s it, in couple of minutes the installation completed with everything. If you want, go through the readme file and familiarize yourself with LeanFT. You might want to open installation log in case of any occurred during setup.
Verify LeanFT Installed
To verify that you have done everything correct and LeanFT is ready to use. Check the few things below
Go to Programs and check that you have “LeanFT Runtime” listed under HP Software >> HP LeanFT
Launch Visual Studio >> Create New Project
You should find the new project templates which is for LeanFT
You should also see a new menu option added for LeanFT
Launch IntelliJ IDEA, select option to create new Project
You should find templates for LeanFT Test and LeanFT Application Model
Also, you should see the LeanFT menu option as for Visual Studio
Launch Eclipse >> you will find a new Menu Option for UFT. This menu option contains all different options for LeanFT
So you see, doesn’t matter which tool you choose to go with, Options are likely to be same for all. Mostly we are going to use IntelliJ Idea for this tutorial but will cover the different aspects with Visual Studio and Eclipse as and when applicable.