LeanFT Error trying to launch Flights GUI demo
Category:
Question ID: 109126
1
0

I’m using Visual Studio. Getting a NullReferenceException error when trying to launch the Flights GUI demo application from LeanFT. Here’s the code I’m trying to use:

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

Marked as spam
Posted by (Questions: 387, Answers: 66)
Asked on July 30, 2019 3:47 pm
46 views
Answers (1)
0
Private answer

Try this code instead:

//Remember to include this 'using' statement
using System.Diagnostics;

//in your test method:
Process appProcess = new Process { StartInfo = { FileName = @''C:UsersAdministratorDesktopFlights ApplicationFlightsGUI.exe'' } };
appProcess.Start();

Marked as spam
Posted by (Questions: 17, Answers: 807)
Answered on July 30, 2019 3:47 pm
0
Awesome! That code worked perfectly! Thank you!!
( at July 30, 2019 3:48 pm)
EyeOnTesting

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

X
Scroll to Top