NOTICE: Significant community changes coming soon
The header menu and the home page on our community will be changing soon. Get more information HERE.
Highlighted
Frequent Contributor.
Frequent Contributor.
650 views

Running LeanFT/NUnit test for standalone application through command line

We are using leanFT & NUnit to run our standalone app. Currently, we use the Test Explorer window to execute our tests locally, all by using the UI. What we would like to do is to figure out a command that we can use instead that will execute the tests. Is there an easy way to do this with LeanFT? Thanks.

Tags (2)
0 Likes
1 Reply
Trusted Contributor.
Trusted Contributor.

Hello, 

If you want to run LeantFt Test from a command line you could use the the Nunit console to run the test

<NUnit Path>\bin\nunit-console-x86.exe" "%PATH_TO_TEST_PROJECT_DLL%\DLLFileName.dll 

or in my case 

<NUnit Path>\bin\nunit-console-x86.exe" C:\Users\<User>\Documents\Visual Studio 2012\Projects\LeanFtNUnit\LeanFtNUnit\bin\Debug\LeanFtNUnit.dll

I would also look into a Jenkins integration, once you have it configure is a great way to execute an even shedule your test both (LFT and UFT)

for more information take a alook at 

The official documentation

https://leanft-help.microfocus.com/en/14.01/HelpCenter/Content/HowTo/CI_Tools.htm 

This community post 

https://community.microfocus.com/t5/Quality-and-Testing-Blog/Integrating-LeanFT-with-Jenkins-in-just-a-few-simple-steps/ba-p/247321#.WahKtMig9aR

Regards

Arturo

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.