Getting "Object reference not set to an instance" error!

Ranorex Spy, Recorder, and Studio.
aravin
Posts: 47
Joined: Mon Mar 09, 2015 7:43 am

Getting "Object reference not set to an instance" error!

Post by aravin » Wed Jun 17, 2015 7:26 am

Hi Team,

I am getting this error message. When I try to run the testcase from the recordings. Same testcase running successfully while running from TestSuite.

How to get grid of this error.

Error Log:
Can not intercept exception. Debugged program can not be continued and properties can not be evaluated for :
System.TypeInitializationException: The type initializer for 'ProjectName.Dummy' threw an exception. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at Temp4B0BB4.RecordingRunner.Run
at Temp4B0BB4.RecordingRunner.Main
Screenshot of error:
ranorex.PNG
Ranorex Exception Screenshot
ranorex.PNG (36.95 KiB) Viewed 1621 times

Ranorex Version: 5.3.2
System: Windows 7

Hi team, I don't have any other details. Don't ask for code & snapshot.

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 3930
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Getting "Object reference not set to an instance" error!

Post by odklizec » Wed Jun 17, 2015 7:53 am

Hi,

I believe this kind of error happens if you try to run a single recording module with module variables binded to a test case data source? In this case, you can't run just single recording, because this recording depends on other sources. You need to run it from a test suite. If you don't want to run entire test suite with all its test cases, then the best option is to use Run Configurations:
RunConfig.png
RunConfig.png (29.43 KiB) Viewed 1618 times
http://www.ranorex.com/support/user-gui ... html#c3019
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

aravin
Posts: 47
Joined: Mon Mar 09, 2015 7:43 am

Re: Getting "Object reference not set to an instance" error!

Post by aravin » Wed Jun 17, 2015 7:56 am

ok Thankz.