Page 1 of 1

Cannot recognize Flex objects after compiling Ranorex lib in

Posted: Mon Mar 04, 2013 11:28 pm
by acalhoun
We are trying to test our flex application by compiling the ranorex lib into our app rather than using the PreLoader to avoid having to install the debug flash player. However, after following the instructions on how to load the lib, re-compiling the app, and restarting both the app and ranorex we are still getting a flash/flex technology limitation error when trying to use the spy to see the flex objects. I've attached a screenshot of our compiler showing the lib included. We are running Ranorex 4.0.2 and testing in IE8. I did try running the instrumentation wizard, un-checking Enable Preloader (and all other boxes) to ensure the preloader was disabled.

Re: Cannot recognize Flex objects after compiling Ranorex lib in

Posted: Tue Mar 05, 2013 3:31 pm
by Support Team
Hello,

Could you please initialize this lib in your code as described in our User Guide?
import Ranorex.RxAutomation;   
RxAutomation.Init();
Please take a look at our User Guide:
http://www.ranorex.com/support/user-gui ... html#c2245

Regards,
Markus (T)

Re: Cannot recognize Flex objects after compiling Ranorex lib in

Posted: Tue Mar 05, 2013 6:52 pm
by acalhoun
Hi Markus,
The user guide indicates that those steps are for AIR apps, which ours is not. That is why we did not do it in the first place and our developer is hesitant to do it now. Can you explain the reasoning behind doing this?

Thanks!

Re: Cannot recognize Flex objects after compiling Ranorex lib in

Posted: Wed Mar 06, 2013 5:02 pm
by Support Team
Hello,

You are right.
Unfortunately, our User Guide is currently not up-to-date in this matter.

In previous versions of Ranorex, it was only necessary for AIR2 apps.
We have changed the process of loading Ranorex Lib into Flex apps.
Now, it is necessary to initialize this Lib.

Regards,
Markus (T)