Flash custom components cant be seen RanorexSpy

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
Morph899
Posts: 4
Joined: Tue Dec 11, 2012 1:44 pm

Flash custom components cant be seen RanorexSpy

Post by Morph899 » Tue Dec 11, 2012 1:54 pm

Hello,

We just want to try and use automatic ui tester, and after finding Ranorex, we facing the problem that allmost all of our components is fail to be seen in RanorexSpy.

The connection between the browser is working, but there is a point in the hierarchy where we can not see the other objects.

AN example from top to bottom:

AdvancedToggleButton extends ToggleButton
ToggleButton extends Button
Button extends TextCompbase
TextCompbase extends SkinnableCompBase
SkinnableCompbase extends Compbase

And Compbase extends Sprite

This is the Class hierarchy to extend Sprite.

I think Ranorex can not recognise this.
Other thing is the app consist of 3 different FlaxLibrary.
Or do you have any idea why cant we see the other components on the tree?

Thank you for the answer.

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

Re: Flash custom components cant be seen RanorexSpy

Post by Support Team » Tue Dec 11, 2012 5:34 pm

Hello,

Which Ranorex version are you using?
Did you already instrument your Flash application as described on the following page?
Flash/Flex Testing
Could you send or post a Ranorex Snapshot file of your application under test?
This will help us to analyze the issue!
Following link will show you how to generate a snapshot file:
Creating Ranorex Snapshot Files.
It could have several reasons why Ranorex cannot identify specific elements but in order to answer this correctly we would at first need more additional information about your application.

Regards,
Markus
.
Image

Morph899
Posts: 4
Joined: Tue Dec 11, 2012 1:44 pm

Re: Flash custom components cant be seen RanorexSpy

Post by Morph899 » Wed Dec 12, 2012 11:30 am

Here it is.
I hope it helps for you.I instrumented it correctly. I am using Ranorex 4.

Thank you.
Attachments
snapshot.rxsnp
(422.52 KiB) Downloaded 191 times

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

Re: Flash custom components cant be seen RanorexSpy

Post by Support Team » Wed Dec 12, 2012 11:47 am

Hi,

Thanks for the snapshot!
Could you additionally send us the flash log file, which can be found here: "C:\Users\username\AppData\Roaming\Macromedia\Flash Player\Logs"?
Please check if you enabled "Flash Trace Log" in the instrumentation wizard.

Thanks,
Markus
.
Image

Morph899
Posts: 4
Joined: Tue Dec 11, 2012 1:44 pm

Re: Flash custom components cant be seen RanorexSpy

Post by Morph899 » Wed Dec 12, 2012 1:56 pm

I attached the log.
I see a bunch of Error messages.
I am looking forward to your answer.
Attachments
flashlog.txt
(13.26 KiB) Downloaded 200 times

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

Re: Flash custom components cant be seen RanorexSpy

Post by Support Team » Wed Dec 12, 2012 3:39 pm

Hi,

Thanks for the log file, it helped a lot!
We found the problem, in order to identify the elements in a flash application Ranorex calls the getChildAt() base method and in your case it seems that this method is overwritten and that an exception is thrown when Ranorex tries to call it.
In order to make a flash application identifiable for Ranorex it is important that this method doesn't throw an exception.

Regards,
Markus
.
Image

Morph899
Posts: 4
Joined: Tue Dec 11, 2012 1:44 pm

Re: Flash custom components cant be seen RanorexSpy

Post by Morph899 » Fri Dec 14, 2012 10:43 am

Hey SupportTeam,

Thank you very much for the fast responses!
Now we can continue our processes.

Good Day!