Getting a NullReferenceException Launching our AUT from LeanFT
Category:
Question ID: 109693
2
1

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: 387, Answers: 66)
Asked on July 24, 2020 11:27 am
161 views
0
Thanks, that worked for me as well.
( at July 24, 2020 11:29 am)
Answers (1)
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: 17, Answers: 807)
Answered on July 24, 2020 11:29 am
EyeOnTesting

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

X
Scroll to Top