Page 1 of 1

Application fails if run using Ranorex

Posted: Fri May 16, 2014 10:42 am
by mcmilj1
When I run my test though Ranorex the application is throwing an

"Object reference not set to in instance of an object" error.

If I run the application outside of Ranorex and perform the same steps the application does not error.

I have tried re-recording the steps.

Anyone got any ideas what might be going on?

thanks

June

Re: Application fails if run using Ranorex

Posted: Fri May 16, 2014 1:34 pm
by krstcs
A few questions for you:

Is it your application that is throwing the error or is it Ranorex?

What version of Ranorex are you using?

Are you writing your own code (user-code modules or pure C# with Ranorex library reference)?

What technology is your application under test written in (Java, .NET, Web, etc.)?



My guess without these answers (is a guess, so take it for what it's worth... :D ) is that the error is actually in Ranorex and that you probably have some code or action that is trying to reference a repository object or an attribute of an object when that object or attribute doesn't exist, so you are getting a null reference exception (which is basically what that error is).