I'm very new to Ranorex so I'm hoping that this is a simple question that I'm just missing a crucial piece of info about.
I have a custom flex 4 class that extends the flex object type Panel. It has an additional property called collapsible. When I track the object in Ranorex Studio and then look at the property section for that object, I can't find the new property that I added. Another oddity is the Type that is shown for the object is Panel even though it should be CollapsiblePanel. What do I need to do get the custom properties of a custom flex object to be accessible to Ranorex so that I can do validation on them? Thanks in advance.
Custom class properties not availble
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Custom class properties not availble
Hi,
Usually, custom properties won't show up in Ranorex Spy, nevertheless you can use your custom properties in RanoreXPath and also get the values from those properties using the FlexElement.GetPropertyValue method.
Please, could you post us a bit more information for that issue.
Regards,
Peter
Ranorex Team
Usually, custom properties won't show up in Ranorex Spy, nevertheless you can use your custom properties in RanoreXPath and also get the values from those properties using the FlexElement.GetPropertyValue method.
Please, could you post us a bit more information for that issue.
- Which version of Ranorex is in use?
- Please create a Ranorex snapshot of your application
http://www.ranorex.com/support/user-gui ... html#c2072 - Please post us the code (Actionscript and MXML please) of your custom class where you want to track the custom properties
Regards,
Peter
Ranorex Team
Re: Custom class properties not availble
I am using Ranorex Studio version 2.3.3.8879
You do not have the required permissions to view the files attached to this post.
Re: Custom class properties not availble
Here is the custom object
You do not have the required permissions to view the files attached to this post.
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Custom class properties not availble
Hi,
About how to get the properties of your CollapsiblePanel:
As I said, you can use your custom properties in RanoreXPath and also get the values from those properties using the FlexElement.GetPropertyValue method. For example use following RxPath to get a panel which is collapsed.
http://www.ranorex.com/support/user-gui ... apter.html
and take a look at our screencast about the RxPath
http://www.ranorex.com/support/screencasts.html
Regards,
Peter
Ranorex Team
If the type which extends your custom class is a type from the Flex class library, this type will be shown in the Type section, because Ranorex knows that your custom class extends this type. In your case it is the "Panel Class" from Flex.jhorton wrote:Another oddity is the Type that is shown for the object is Panel even though it should be CollapsiblePanel.
About how to get the properties of your CollapsiblePanel:
As I said, you can use your custom properties in RanoreXPath and also get the values from those properties using the FlexElement.GetPropertyValue method. For example use following RxPath to get a panel which is collapsed.
container[@collapsed='true']Please also take a look at following documentation about Ranorex Adapter
http://www.ranorex.com/support/user-gui ... apter.html
and take a look at our screencast about the RxPath
http://www.ranorex.com/support/screencasts.html
Regards,
Peter
Ranorex Team