Getting a NullReferenceException Launching our AUT from LeanFT

Question ID: 109693

Using LeanFT 14.52, I’m getting a NullReferenceException when launching the sample Flight GUI application that comes with UFT/LeanFT.

Using this line of code to launch:

IAut FlightsApp = Desktop.LaunchAut("C:\\Training\\Flights Application\\FlightsGUI.exe");

Does anyone know what I need to change to get this to work?

Marked as spam
Posted by (Questions: 338, Answers: 20)
Asked on July 24, 2020 11:27 am
Thanks, that worked for me as well.
( at July 24, 2020 11:29 am)
Answers (1)
Private answer

Try doing this instead, it worked for me:

var env = EnvironmentFactory.Get(new EnvironmentDescription());
IAut FlightsApp = env.LaunchAut("C:\Training\Flights Application\FlightsGUI.exe");

Marked as spam
Posted by (Questions: 16, Answers: 748)
Answered on July 24, 2020 11:29 am