Questions tagged [leanft]

LeanFT (Lean Functional Testing) is a functional test automation tool from Micro Focus. Use this tag for questions related to creating functional tests with LeanFT.

MicroFocus LeanFT (Lean Functional Testing) is a functional test automation tool, built specifically for continuous integration and continuous testing. It integrates with the standard development IDEs, and enables automating AUTs of the most common technologies (web, mobile and desktop) on multiple platforms (Windows, Mac and Linux). For more information you can visit: https://software.microfocus.com/en-us/software/leanft

98 questions
5
votes
1 answer

Trying to suppress errors while attaching browser

EDIT: I'm using the LeanFT Java SDK 14.50 EDIT2: for text clarification I'm writing test scripts for a web application that sometimes opens popup browsers for specific actions. So natually when that happens, I will attach the new browser using…
4
votes
1 answer

LeanFT Opening Browser in Incognito Mode

Problem: LeanFT in C# doesn't have a way to open the browser in incognito mode unfortunately. I am unable to add -incognito to path as I don't have admin rights. What can I do? I was thinking Sendkeys(“^+N”); but not sure how to do that via keyboard…
BK Hasan
  • 121
  • 1
  • 1
  • 9
4
votes
1 answer

HP UFT Installer has IntelliJ plugin option unavailable

I have installed JetBrains IntelliJ 2016.2.3 and am in the process of installing HP UFT LeanFT runtime engine, SDK and IDE plugin. I am supposed to get an option for IntelliJ since I have it installed already, but this option is unavailable. See…
dmcgill50
  • 528
  • 6
  • 26
3
votes
1 answer

Automate screen resolution

I have an automation testing project using LeanFT automation tool (in Java). Those tests covers UI flows of a web application. Jenkins job execute those tests nightly on remote slave RDP VM. I realized that tests sometimes fail, but couldn't spot…
Udi
  • 31
  • 1
2
votes
1 answer

UFT Developer Reporter.GenerateReport() never ends

We are using Micro Focus UFT developer 15.01. About 1-2% of our tests never end, because they are stuck inside Reporter.GenerateReport(); The issue is rare, but for us it is annoying enough to re-trigger our tests manually. This is not our code.…
tomwaitforitmy
  • 509
  • 3
  • 16
2
votes
1 answer

LEANFT - [Web, Windows] Scrollable CLASS IS NOT WORKING with java

Unable to perform scrolling in a webpage and windows using LeanFT lib. Code works fine, but It doesn't perform any scroll action. import com.hp.lft.sdk.ScrollOrientation; import com.hp.lft.sdk.ScrollType; import com.hp.lft.sdk.Scrollable; public…
2
votes
1 answer

Verify if a certain image exists

I am trying to check if a certain image (the output of a a test result) exists in a browser session. I am using the C# SDK. Following an example of code from Micro Focus, the verification procedure uses a line of code like one that follows the…
2
votes
2 answers

Maximize browser window in LeanFT

I am looking for some solution, like this in Selenium WebDriver: ChromeOptions options = new ChromeOptions();options.addArgument("--start-maximized"); So browser window should be maximized when test is executed. I found a profile based solution for…
plaidshirt
  • 5,189
  • 19
  • 91
  • 181
2
votes
1 answer

LeanFT to verify specific text is present

I need to verify that a specific string of text is present on webpage and check the number of occurences in LeanFT. I have tried code below to verify if text is present: browser =…
plaidshirt
  • 5,189
  • 19
  • 91
  • 181
2
votes
2 answers

Running tests on VM does not work unless window is open

We are attempting to do our testing remotely, so we set up some Virtual Machines to run our GUI tests and to free up our local machines. What we were hoping for was to have the tests run just like they would on a physical machine, however they seem…
Tree55Topz
  • 1,102
  • 4
  • 20
  • 51
2
votes
1 answer

“invalid Appium session” when running LeanFT with Mobile Center

I've tried to run Mobile test from LeanFT using Mobile Center. However, when starting the test, getting "Invalid Appium Session" exception. Is there any way to overcome it?
Chief
  • 71
  • 2
2
votes
1 answer

LeanFT and test in multiple browsers

I am new to LeanFT and JUnit, LeanFT docs doesn't shed much light on how to use it. I need to run my test, written in JUnit/MeanFT mesh, in more than one browser. Now it looks like this: @Test public void testverify_Startsida() throws…
swe_mattias
  • 621
  • 1
  • 8
  • 15
1
vote
1 answer

Count number occurrences of an element in LeanFT

is there any LeanFT method that returns the number of an element? I wish to use it instead of the exists() method. Something like the following: if(PageX.Node.closeTabButton.count() > 0) { ... Treatement ... } I wanted to check if…
Badreddine
  • 11
  • 3
1
vote
1 answer

LeanFT 15.0.2 is not identifying Web Elements in MSEdge

We am using LeanFT with C# to automate my Sample Web Application which is heavily used in IE only. Since microsoft is ending support with IE, we are moving the tests to MSEdge where there are certain components which will be loaded in Browser if and…
Harshavardhan Konakanchi
  • 4,238
  • 6
  • 36
  • 54
1
vote
0 answers

How to Enable "Micro Focus UFT Agent" Add-on in Internet Explorer (IE) browser using command line

I want to enable "Micro Focus UFT Agent" Add-on in Internet Explorer (IE) browser using command line. This is how we use to do manually:
Anshak
  • 11
  • 1
1
2 3 4 5 6 7