Page 1 of 1

Flash custom components cant be seen RanorexSpy

Posted: Tue Dec 11, 2012 1:54 pm
by Morph899
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.

Re: Flash custom components cant be seen RanorexSpy

Posted: Tue Dec 11, 2012 5:34 pm
by Support Team
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

Re: Flash custom components cant be seen RanorexSpy

Posted: Wed Dec 12, 2012 11:30 am
by Morph899
Here it is.
I hope it helps for you.I instrumented it correctly. I am using Ranorex 4.

Thank you.

Re: Flash custom components cant be seen RanorexSpy

Posted: Wed Dec 12, 2012 11:47 am
by Support Team
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

Re: Flash custom components cant be seen RanorexSpy

Posted: Wed Dec 12, 2012 1:56 pm
by Morph899
I attached the log.
I see a bunch of Error messages.
I am looking forward to your answer.

Re: Flash custom components cant be seen RanorexSpy

Posted: Wed Dec 12, 2012 3:39 pm
by Support Team
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

Re: Flash custom components cant be seen RanorexSpy

Posted: Fri Dec 14, 2012 10:43 am
by Morph899
Hey SupportTeam,

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

Good Day!