Highlighted
New Member.
961 views

LeanFT Test Execution from ALM

Hi All,

I am trying to run a simple LeanFT Test by integrating it from ALM. I have created a LeanFT Test using Visual Studio with help of LeanFT MSTest Template provided by HP and it's runnning perfect if I run from Visual Studio.

Now I want to integrate it with ALM. So have created a LeanFT type test and added the required parameters under TestScript tab for my Test.

Framework: MsTest

DLL Path: Full path of my project dll from Debug folder of my project.

Fully Qualified ClassName: Namespace.ClassName

Test Method Name: my Test method name in my class mentioned above.

Now I have pulled my Test in TestLab and trying to run. Always gives same error. 

LeanFT test runs on this host are not allowed.  You can change these permissions in the Remote Agent configuration file on the host computer.

Even I have verified my Remote Agent Configuration file and it has correct data as it expects.

<remoteAgent allowRun="true">
<mstest>
<runner path="C:\myDotNetSolution\LFT_MSTest\bin\Debug\"/>
</mstest>
</remoteAgent>

Anyone have any idea about what's wrong here? Is there anything I missed here? 

Accept as solution/Give Kudos to the author if the piece of information answered/helped you to solve your problem.
All the thoughts here are mine not related to my employer nor anyone.
Test Automation Ecstasy
0 Likes
1 Reply
Highlighted
Super Contributor.. Super Contributor..
Super Contributor..

Have you started the LeanFT Runtime Engine manually on the test host? Please see this link for instructions:
https://leanft-help.saas.hpe.com/en/14.01/HelpCenter/Content/HowTo/Config_Engine_Prefs.htm#hp-minitoc-item-1

You may have some sort of DCOM issue blocking it. You can set the DCOM permissions using this command:

<LeanFT installation>\Tools\Remote Agent\LFTDcomPermissions.exe -set


More details about DCOM can be seen here:
https://leanft-help.saas.hpe.com/en/14.01/HelpCenter/Content/ALMintegration/LFT-ALM_ConfigureHost.htm#hp-minitoc-item-1

Micro Focus has instructions here:
https://leanft-help.saas.hpe.com/en/14.01/HelpCenter/Content/ALMintegration/LFT-ALM-Intro.htm
and be sure you've followed instructions here:
https://leanft-help.saas.hpe.com/en/14.01/HelpCenter/Content/ALMintegration/LFT-ALM_ConfigureHost.htm#RemoteAgentStep

And here is an article with step-by-step instructions:
http://eyeonquality.com/running-hpe-leanft-tests-from-hpe-alm-part-two/
Even though this article was created for older versions of VS and LeanFT, the steps are basically the same.

Also, if you are using the MsTest Framework, ALM has to be at least version 12.53 with Patch 2.

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.