Custom component Automation – Part II
April 12, 2010 at 6:11 am 6 comments
prerequisite: read the part I session on custom component.
http://raniskumar.wordpress.com/2009/09/01/custom-compone…n-introduction
What all information is needed to make a flex component automatable.
1. Record support of the user interactions.
2. Replay support of the recorded script.
3. Allowing verification of the properties of the object.
4.Allowing to get the tabular representation of the object (if applicable)
5. Provide test friendly methods to get specific data from the component.
These are done by different different components in the automation framework.
We will understand how each thing can be done. Now let us discuss mainly on the recording and replay aspect in the first step.
What all delegate should do?
Basically they
1. Provide the recording and replay of user interaction based component.
2. Provide information about its chidren and ways to access them, if they are a container type.
Let us discuss on this in details:
Provide recording.
1. Identify the events on the component which needs to be recorded.
2. Add event listeners for these events in the delegate.
3. Identify information which needs to be captured from the event, which can be later needed to recreate the event properly and identify the user interactable component.
4. Collect these information and pass to the automation manger to record. If these information is not part of the event (special case, we wil discuss this later. TBD)
5. Have an entry in the XML file to describe the event for the component which talks about the required arguments of the event.
Working with Delegates :
Let us take each of this case and address one by one. I am planning to cover each of these case. As time permits i will cover and add the links here.
1. Extending from non container class, but current class is contianer.
refer – http://raniskumar.wordpress.com/2010/04/12/cca_containerclass
2. Extending from contianer class, but current class would like to be treated as a single unit.
3. Item renderer automaiton
3. How to handle new events to existing classes/derived classes or handle less events of the existing/derived components.
4. How to get special data for testing from the component
5. How to get tabular data of the component etc…
Entry filed under: Flex Automation. Tags: Custom component automation, Flex Automation.
1. Custom component Automation – Part III – Container class extending from non container class « Flex Automation | April 12, 2010 at 9:11 am
[...] http://raniskumar.wordpress.com/2010/04/12/cca-part-ii [...]
2.
ven | May 27, 2010 at 6:17 pm
its interesting to see ur article on how to do automation on flex custom components.
3.
rajesh bhadra | November 25, 2010 at 2:21 pm
Also, can you provide some information on automation of item renderer inside advDG
4.
raniskumar | July 21, 2011 at 1:00 pm
refer the automation delegate source code available in flash builder
5. Flex 自动化工具 | 测试自动化超级群 | May 19, 2011 at 6:15 am
[...] Custom component Automation – Part II http://raniskumar.wordpress.com/2010/04/12/cca-part-ii/ Custom component Automation – Part III – Container class extending [...]
6. Writing delegates for components | deeptikablog | November 17, 2011 at 5:52 am
[...] http://raniskumar.wordpress.com/2010/04/12/cca-part-ii/ and [...]