This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Error connecting to LeanFT runtime engine on ws://localhost:5095

I have set up the UFT developer on my system to run some tests which were created in LeanFT as i need to get them running in Edge, I think i have it all setup and was going to get it to run in IE for the moment which has been working fine on a VM for years but on my system i am getting the following error message, i will note that Leanft is installed on the VM and not the new UFT version.  Can anyone help me please as i have until June to get this working in Edge

Apr 29, 2022 12:30:02 PM java.util.prefs.WindowsPreferences
WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5.


Test ignored.

com.hp.lft.sdk.internal.communication.CommunicationException: Error connecting to LeanFT runtime engine on ws://localhost:5095

at com.hp.lft.sdk.internal.communication.DefaultSocketConnection.connect(DefaultSocketConnection.java:72)
at com.hp.lft.sdk.internal.communication.DefaultConnectionFactory.connect(DefaultConnectionFactory.java:51)
at com.hp.lft.sdk.internal.CommunicationClientImpl.init(CommunicationClientImpl.java:57)
at com.hp.lft.sdk.SDK.init(SDK.java:21)
at com.hp.lft.unittesting.UnitTestBase.initSDK(UnitTestBase.java:197)
at com.hp.lft.unittesting.UnitTestBase.init(UnitTestBase.java:176)
at com.hp.lft.unittesting.UnitTestBase.classSetup(UnitTestBase.java:50)
at unittesting.UnitTestClassBase.globalSetup(UnitTestClassBase.java:19)
at com.ttc.test.LoginToTropicsTest.setUpBeforeClass(LoginToTropicsTest.java:20)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55)
at org.junit.rules.RunRules.evaluate(RunRules.java:20)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:69)
at com.intellij.rt.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:33)
at com.intellij.rt.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:235)
at com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:54)


java.lang.NullPointerException
at com.hp.lft.report.DefaultReporter.closeAllReportLevels(DefaultReporter.java:158)
at com.hp.lft.unittesting.UnitTestBase.closeReportLevels(UnitTestBase.java:172)
at com.hp.lft.unittesting.UnitTestBase.classTearDown(UnitTestBase.java:65)
at unittesting.UnitTestClassBase.globalTearDown(UnitTestClassBase.java:33)
at com.ttc.test.TropicsBase.tearDownAfterClass(TropicsBase.java:308)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:33)
at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55)
at org.junit.rules.RunRules.evaluate(RunRules.java:20)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:69)
at com.intellij.rt.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:33)
at com.intellij.rt.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:235)
at com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:54)

Picked up JAVA_TOOL_OPTIONS: -agentlib:jvmhook
Picked up _JAVA_OPTIONS: -Xrunjvmhook -Xbootclasspath/a:"C:\Program Files (x86)\Micro Focus\UFT Developer\bin\java_shared\classes";"C:\Program Files (x86)\Micro Focus\UFT Developer\bin\java_shared\classes\jasmine.jar"

Process finished with exit code -1

  • 0  

    It looks like something wrong with your runtime engine, is it started before you run the test? Are you able to run any test at all or is this only happening to the edge test you created?