Page 1 of 1

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

Posted: Wed Jun 17, 2015 7:26 am
by aravin
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 Version: 5.3.2
System: Windows 7

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

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

Posted: Wed Jun 17, 2015 7:53 am
by odklizec
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
http://www.ranorex.com/support/user-gui ... html#c3019

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

Posted: Wed Jun 17, 2015 7:56 am
by aravin
ok Thankz.