Application fails if run using Ranorex

Ask general questions here.
Posts: 3
Joined: Mon Aug 05, 2013 10:55 am

Application fails if run using Ranorex

Post by mcmilj1 » Fri May 16, 2014 10:42 am

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?



Ranorex Guru
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

Re: Application fails if run using Ranorex

Post by krstcs » Fri May 16, 2014 1:34 pm

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).
Shortcuts usually aren't...