Ok, so we focus on processing the AutomationRecordEvent.CUSTOM_RECORD / AutomationCustomReplayEvent method pair.
If so, what must be done to have the AutomationCustomReplayEvent triggered?
Describe it in classinfo XML file and call it from RIATest script.
Do I understand correctly, we need to include the AutomationCustomReplayEvent in the classinfo - like this??
| Code: |
<ClassInfo Name="PropertyEditorPanelRead" Extends="FlexPanel">
<Internal Class="com.icw.cdm.workflow.view.propertyeditor.view.components::PropertyEditorPanelRead"/>
<Properties>
<Property Name="automationClassName" Describes="true">
<PropertyType Type="String"/>
</Property>
<Property Name="automationName" Describes="true">
<PropertyType Type="String"/>
</Property>
<Property Name="className" Describes="true">
<PropertyType Type="String"/>
</Property>
<Property Name="automationIndex" Describes="true">
<PropertyType Type="String"/>
</Property>
<Property Name="automationIDPart" Describes="true">
<PropertyType Type="String"/>
</Property>
<Property Name="numAutomationChildren" Verify="true" DefVerify="true">
<PropertyType Type="Integer"/>
</Property>
</Properties>
<Events>
<Event Name="TextLink">
<Internal Class="flash.events::TextEvent" Type="LINK"/>
</Event>
<Property Name="linkText">
<PropertyType Type="String" Codec="automationObject"/>
</Property>
<Event Name="AutoReplay">
<Internal Class="mx.automation.events.AutomationCustomReplayEvent" Type="CUSTOM_REPLAY"/>
</Event>
</Events>
</ClassInfo>
|
These events should already be known to Riatest, shouldn't they?
Anyways, even when doing so, there is still no event being triggered/the handler is not called.
Do I miss any details on defining the event/the event listener or anything?
If you have not yet looked at automation delegate source codes for built-in Flex components, I highly recommend you to do so. There are tons of examples of event instrumenting in Flex automation source codes.
You are certainly right here, yet from what I found these delegates (of course) do not contain handling of custom events.
But, this problem will most probably solvable once the
AutomationCustomReplayEvent is properly triggered.
Any help on that?