# FAQs

This topic answers some of the questions that are asked most frequently by LeanFT users.

In this topic:

## Before you begin

This section includes basic questions about LeanFT.

Can I use LeanFT to test Windows-based applications and other technologies in addition to browser-based applications?

Yes. LeanFT supports many technologies.

The .NET, Java, and JavaScript SDKs include support for Standard Windows, Web, Mobile, .NET Windows Forms, WPF, SAP GUI and SAPUI5, Java, and more.

For a complete list of supported technologies, see the .NET SDK Reference, Java SDK Reference, or JavaScript SDK Reference

To see supported versions of each technology, see the Product Availability Matrix.

Which environments are supported on LeanFT?

LeanFT supports Windows, Linux, and Mac environments.

For more details, see the Product Availability Matrix.

For a list of supported features on these environments, see Cross-platform feature support.

Which programming languages and IDEs are supported?

You can program your tests in C# using Visual Studio, or in Java using Eclipse, Spring Tool Suite, JBoss Developer Studio, IntelliJ IDEA, or Android Studio.

You can also program in JavaScript in any supported IDE.

For details on the supported IDE versions, see the Product Availability Matrix.

Can I use my existing UFT license to run LeanFT?

Yes. LeanFT supports a variety of license editions, giving you a different set of functionality.

For details, see LeanFT licensing.

Can I use UFT assets in LeanFT?

Yes and No. UFT tests are written in VBScript, while LeanFT tests are written in C#, Java, or JavaScript. However, you can convert your UFT object repositories to LeanFT application models.

For details, see Convert UFT object repositories to LeanFT application models.

In addition, the LeanFT SDK provides a very similar set of objects and methods to that provided by the UFT object model, and the LeanFT Application Model editor and Object Identification Center (OIC) provide a superset of the functionalities you are familiar with from the UFT Object Repository editor and Object Spy.

See also: LeanFT reference for UFT experts

Can I manage and run my LeanFT tests in ALM?

Yes. You can manage and run LeanFT tests from supported versions of ALM. For a list of supported versions, see the Product Availability Matrix.

For more information, see Integrate LeanFT and ALM.

Can I integrate my LeanFT tests into Jenkins or other CI systems?

Yes. For details, see Run tests using a CI system.

Does LeanFT integrate with source control tools?

LeanFT assets are standard source files, for example, code files, xmls, etc. You can use the same source control system for LeanFT assets as you use for all other code files.

Back to top

## Getting started

This section includes questions about performing common actions in LeanFT.

How do I include snapshots in the LeanFT report?

By default, LeanFT does not add snapshot images to the HTML Report, but you can modify the settings for your test so that it captures snapshots on errors or even for every step. You can also change this setting programmatically at any point in your test.

Additionally, you can use the TestObject.GetSnapshot method to capture an image of a test object at any point in your test and then pass the captured image to a Reporter.ReportEvent step to include it in the report.

For details, see Analyze run results and the .NET SDK Reference, Java SDK Reference, or JavaScript SDK Reference.

Note: In many cases, the generated HTML file is a standalone file.

If you selected to capture snapshots of all or failed steps, or your test includes steps that return images or other files, you may want to move the report to another location or share the report with others. In this case, make sure to keep the generated Resources folder together with the HTML file.

Can I use the same application model across different testing projects and for different browsers, mobile devices, or SAP GUI sessions?

Yes. You can create a central application model and reference it from all relevant testing projects.

When you create an instance of your application model class, you can pass any defined Browser, Device, or GuiSession test object as the constructor.

For details, see Application models and About the test object hierarchy in the application model.

How do I specify which LeanFT technology support (add-ins) to load?

By default, the LeanFT runtime engine is set to load all supported technologies when it runs.

Support for testing standard windows applications is always loaded.

For all other technologies, you can modify which add-ins (technology support) to load on the computer where the runtime engine is installed.

You should load only the add-in technologies you need.

The changes you make affect the technologies supported in the Object Identification Center (OIC) as well as for tests that you run on that computer.

For more details on modifying runtime settings, see: Customize LeanFT runtime engine settings.

Can I create a test on one browser and then run it on another version or another browser?

Yes. You can run your Web tests on any supported browser or version.

For details on supported versions, see the Product Availability Matrix.

As long as your application behaves the same in different browsers, you can run the test in different browsers.

To do this, use the BrowserFactory.Attach method to run on a browser that is already open, or change the browser type specified in a BrowserFactory.Launch step to specify the browser type you want for your run. All other test objects in your test, whether created via programmatic descriptions or via the application model, are independent of the browser type.

For more details, see the .NET SDK Reference, Java SDK Reference, or JavaScript SDK Reference.
See also: About the test object hierarchy in the application model

Where are my LeanFT product files stored if I install from UFT?

Throughout this Help Center, many instructions tell you to open files from the <LeanFT installation> folder. For example, many important files are found in <LeanFT installation>\bin or <LeanFT installation>\Tools.

When you install LeanFT standalone, you can specify the folder where you want to install LeanFT. By default, C:\Program Files (x86)\Micro Focus\LeanFT.

When you install LeanFT as part of the UFT setup program, the folder you choose for installing UFT is also used for LeanFT files. Therefore, you will find the above mentioned LeanFT files in <UFT installation folder>\bin or <UFT installation folder>\Tools.

Back to top

## Experienced users

This section includes questions about advances actions in LeanFT.

What if I upgrade my unit testing framework, Java JDK version, or IDE version after I've installed the LeanFT plugin?

For some of these upgrades, no action is required. For others you need to re-run the LeanFT installation in Change mode, as shown below:

If I upgrade: | Change:
--- | ---
NUnit framework version | No change required.
JUnit framework version | No change required.
Java JDK version | No change required
Visual Studio version | Run LeanFT installation in Change mode, and select the new Visual Studio version.
IDE version | Run LeanFT installation in Change mode.

For details, see Maintaining and uninstalling LeanFT.

Can I run tests remotely?

Yes. You can set up your environment to run tests in a configuration where your test is located on a different computer than the AUT. For details see Run tests remotely.

Note: In addition to these instructions, before you set up remote run configurations, make sure to review your network topology and read the LeanFT Security Reference, available from the Micro Focus Support Self-Solve Knowledge Library.

Can LeanFT continue to run if the RDP connection is locked or disconnected?

Yes. You enter the user name and encrypted password credentials in the runtime engine settings on the computer where the test is running so that the test can continue to run when the connection is locked or disconnected. For details, see Customize LeanFT runtime engine settings and Run tests remotely.

I have another application that listens to the same port as LeanFT. Can LeanFT use another port?

Yes. For details, see Modify the port used by LeanFT.

How do I create a data-driven test?

Use Excel data as input and take advantage of standard looping functionality available in the NUnit or JUnit frameworks or implement on your own.

How do I identify and handle errors that occur during a run?

When an error occurs in a step that the LeanFT runtime engine tries to perform on your application, it throws an exception. You can catch the exception in your code and handle it as needed.

All such errors are also included in the LeanFT report.

For details, see Analyze run results.

Can I use my own testing frameworks with LeanFT?

Yes. The LeanFT IDE plugins include templates that are based on leading frameworks like NUnit and MSTest (Visual Studio), and JUnit and TestNG (Eclipse, Spring Tool Suite, JBoss Developer Studio, IntelliJ IDEA, and Android Studio). Using these templates will help you get started working quickly and enable you to take advantage of their built-in functionality.

You can also build on top of the provided LeanFT templates or create tests from scratch with your own framework. Doing this requires some extra configuration.

For details, see Use your own frameworks with LeanFT.

Example: LeanFT with Cucumber

Can I run multiple LeanFT tests in parallel on the same host?

Yes.

Save testing time by running multiple tests, or a single test with multiple data sets, in parallel on the same host machine.

When using a seat license, LeanFT can run up to four test operations in parallel.

When using concurrent licenses, LeanFT dynamically consumes additional licenses, each enabling four parallel test operations. The maximum number of licenses to consume is defined in the LeanFT runtime engine settings.

Run parallel testing on:

- Native and hybrid mobile applications

- SAPUI5-based applications

- Web applications in the following browsers:

  Browser | Window | Linux | Mac | Mobile
  --- | --- | --- | --- | ---
  Google Chrome |  |  |  |
  Google Chrome (on Android) | N/A | N/A | N/A |
  Headless Chrome |  |  |  |
  Mozilla Firefox |  |  |  |
  PhantomJS |  |  |  |
  Safari (on iOS) | N/A | N/A |  |

Create and run your tests in a unit testing framework that supports running tests in parallel. LeanFT supports TestNG and NUnit 3, but you can also use any custom framework that launches tests in parallel.

Tip: To minimize performance issues when testing mobile applications, lock each device once for all tests. To do this, lock the device at the beginning of the class running your tests and not before each test.

For more details, see Run parallel tests in LeanFT.

What can I do if an interface in the LeanFT SDK doesn't have the operation I need?

- FireEvent. For Web, Java, and Windows Forms technologies, you can use a FireEvent method to perform events supported for that technology and object type.
- SendKeys. Many of the LeanFT SDK technologies offer the SendKeys method for all interfaces. You can use this method to type text or activate special keyboard modifiers on an object in your application.

- Mouse and Keyboard classes. (Windows only.) These classes provide methods that enable you to send a variety of mouse and keyboard events to your application. For example, you can use these methods to move the mouse to a particular coordinate and then perform a DoubleClick. Or you can use a regular test object method to bring a particular object into focus on your application, and then use a Keyboard.PressKey method to send the keyboard scan code for the `Enter` key.

  Keep in mind that unlike the FireEvent and SendKeys methods, the Mouse and Keyboard classes work at the device level and not within the context of a test object. You can use them for any technology, but they rely on coordinates relative to the screen, which can be tricky to maintain over time.

- NativeObject. You can use NativeObject to access and run the native methods and properties of the run-time object in your application. For guidelines and usage details, see Access native objects, methods, and properties.

For more information on all of these methods, see the see the .NET SDK Reference, Java SDK Reference, or JavaScript SDK Reference.

How do I create toggle button test objects in WPF?

WPF toggle buttons are a special type of Button test object.

Create a WPF Button test object, and then use the ToggleButton property (C#) or getToggleButton method (Java) to return a ToggleButton instance.

For example:

C#:

    var window = Desktop.Describe<HP.LFT.SDK.WPF.IWindow>(new HP.LFT.SDK.WPF.WindowDescription { Text = "MyWindow" });
    var toggle = window.Describe<HP.LFT.SDK.WPF.IButton>(new HP.LFT.SDK.WPF.ButtonDescription { ObjectName = "Button4" });
    toggle.ToggleButton.Set(CheckedState.Checked);

Java:

    Window appMainWindow = Desktop.describe(Window.class, new WindowDescription.Builder().objectName("MainWindow").fullType("window").windowTitleRegExp("MainWindow").build());
    Button buttonWithToggleButtonSupport = appMainWindow.describe(Button.class, new ButtonDescription.Builder().text("Toggle Button").objectName("Button4").build());
    ToggleButton toggleButton = buttonWithToggleButtonSupport.getToggleButton();

Back to top

See also:

- Troubleshooting

https://admhelp.microfocus.com LeanFT 8942
Tips to improve your search results...TOC Lean Functional Testing Help Center LeanFT Help Center 14.50 - 14.53 All View Local Help Center View Online Help Center back Go back in browser history forward Go forward in browser history Remove search highlights next topic Go to next topic previous topic Go to previous topic Print the current topic Version:(Undefined variable: _rscC_Basic_Variables.FloatingTocShow)