Object Recognition w/i Flash

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
swambach
Posts: 7
Joined: Tue Oct 19, 2010 6:31 pm

Object Recognition w/i Flash

Post by swambach » Thu Oct 20, 2011 9:26 pm

Does Ranorex make use of the External Interface to recognize objects within Flash applications?

I'm trying to debug an issue where Ranorex doesn't recognize that the application has been loaded with the automation swc. I'd like to know if I can try calling any external interface methods from javascript, or if there's another way to figure out what objects cannot be recognized.

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Object Recognition w/i Flash

Post by Support Team » Fri Oct 21, 2011 12:43 pm

Hi,
Does Ranorex make use of the External Interface to recognize objects within Flash applications?
Which External Interface do you mean?
I'm trying to debug an issue where Ranorex doesn't recognize that the application has been loaded with the automation swc
Are you sure that you correctly included the Ranorex Lib?
Therfore take a look at the following link.
I'd like to know if I can try calling any external interface methods from javascript, or if there's another way to figure out what objects cannot be recognized.
Which external interface methods do you mean?
To determine if Ranorex can find all your elements you can open the Ranorex Spy and identify your application.
Which version of Ranorex are you using, do you have tried to use the new preloader to identify your Flash elements?
If you are using 3.1.1 you can start the Instrumentation Wizard to install the preloader, but please consider that you have to remove the old instrumentation first.
For more information take a look at the following link.

Regards,
Markus
Ranorex Support Team
.
Image

swambach
Posts: 7
Joined: Tue Oct 19, 2010 6:31 pm

Re: Object Recognition w/i Flash

Post by swambach » Fri Oct 21, 2011 1:06 pm

I mean the actionscript external interface - http://help.adobe.com/en_US/FlashPlatfo ... er_air=2.6

I'm sure that the automation library is included, I compiled the swc in with the application and have also tried the preloader. I think the problem is how our application is deployed, but in trying to debug the issue I wanted to see if there were *Ranorex* methods exposed via the actionscript external interface - said another way, I want to ensure that the appropriate hooks in to the app are being exposed and not consumed somehow by our application.

Ranorex does not identify any objects, thus my question on debugging.

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Object Recognition w/i Flash

Post by Support Team » Mon Oct 24, 2011 2:39 pm

Hi,

You could use following code snippet to check if Ranorex is loaded
var ranorexClass:Class = ApplicationDomain.currentDomain.getDefinition("Ranorex::RxAutomationBase") as Class;
var test:Object = ranorexClass["autoApp"];				 
if(test != null)
	Alert.show("Ranorex loaded successfully");
else
	Alert.show("Ranorex not loaded");
But this piece of code doesn't work with the PreLoader, because you cannot reach the AppDomain of the PreLoader.

Hopefully this is what you need.

Regards,
Peter
Ranorex Team
.
Image