Page 1 of 1

Object reference not set to an instance of an object

Posted: Fri Apr 10, 2015 11:47 am
by Karlsruhe87
In my actual work I should modify an existing textcase in some way.

Starting on this I made a copy of the testcase and tried to get it work - but whenever I start the Testplan it aborts with the message "Object reference not set to an instance of an object" (just in german). Since I know the Usercode in use works (that testcase runs every day) I guess my mistake is somewhere else - but where?

From Testcase.cs:

Code: Select all

Starting_Run_Application(varTestName, varFile);
In Data Binding, I connected the two variables to a certain row in the Data Source (Range) and the Modul Variables to Data Columns. Whatelse could cause the problem?

Re: Object reference not set to an instance of an object

Posted: Fri Apr 10, 2015 12:18 pm
by CookieMonster
Hi Karlsruhe87,

Could you please describe more in detail what you have done, may it helps also, if you post the stack trace. Try to use the debugger. Set a break point on this method and step through, and check where it crash's.
May,because you copied around some code you forgot somewhere to instantiate an object or somewhere your /or variable is null.

Cheers
Dan