This is a migrated thread and some comments may be shown as answers.

System.NullReferenceException : Object reference not set to an instance of an object.

3 Answers 476 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ferry
Top achievements
Rank 1
Ferry asked on 21 Nov 2019, 06:56 AM

Hi,

 

I'm using VS 2019 Enterprise with Telerik Testing Framework. I'm using examples provided by your support document part 'WPF UI Automation'. I have added ArtOfTest.WebAii in the reference and created a test. But when running the test I keep getting the System.NullReferenceException. Can you help me out?

 

Greets

3 Answers, 1 is accepted

Sort by
0
Plamen Mitrev
Telerik team
answered on 22 Nov 2019, 07:45 AM

Hello F J,

Looking at the code, I can't say for sure what is causing the System.NullReferenceException. That said, I noticed that the LaunchNewApplication() method launches the MainWindow.xaml file. This method actually should start the application under test with its .exe file.

Please try using the .exe file of the application and let me know if you encounter the same issue. It will help me greatly, if you can let me know which line of code throws this exception.

Regards,
Plamen Mitrev
Progress Telerik

 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
0
Ferry
Top achievements
Rank 1
answered on 06 Dec 2019, 06:15 AM
Sorry for the late reply. But it was indeed the .exe that fixed the issue
0
Plamen Mitrev
Telerik team
answered on 06 Dec 2019, 11:25 AM

Hi F J,

I am glad to know that the issue is resolved and you can continue with the automation.

Please do not hesitate to write back, if you need any help in the future.

Regards,
Plamen Mitrev
Progress Telerik

 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
Tags
General Discussions
Asked by
Ferry
Top achievements
Rank 1
Answers by
Plamen Mitrev
Telerik team
Ferry
Top achievements
Rank 1
Share this question
or