Error "Object Reference not set to an instance of an object"

Jan 25, 2010 at 5:56 PM

Hello everyone,

I am new to web test and coding so please pardon any mistakes!!

I am trying to use the custom validation rule for validating the Inner Text from the Web test plugins. But the problem is, when I use it with a recorded web test, it runs fine..but when I generate the code for it...the test fails and i get the above mentioned error...Please help me..I don't know where am I making a mistake, I have added all the references properly.

Please help since I am stuck and cannot find where the problem is!!!

Feb 1, 2010 at 8:28 PM

Based on the information provided, I am unable to repro this at my end. Could you please point me to or email me the .webtest file so I can try to repro it?

Jul 15, 2014 at 10:04 PM
I had the same problem. Building a test from scratch causes this issue.

I found the same thing you did, if you don't record the test it throws that error. IIRC, once you run the test, the error goes away.