2 Replies Latest reply on Jun 30, 2010 9:47 PM by pgpradeep

    Automation for spark components using FlashBuilder 4

    pgpradeep Level 1

      Hi,

      When I try recording for TextInput (SDK 4.0; spark TextInput) using my custom recording agent, just double-clicking on the TextInput gives me the following error message :

      Error: Unable to find automation method 'mx.automation.events.TextSelectionEvent' for class 'name: FlexObject

      superClassName: FlexDisplayObject

      event2descriptor: (Object)#0

      flash.events.FocusEvent|keyFocusChange = (custom::CustomAutomationEventDescriptor)#1

      args = (Array)#2

      [0] (custom::CustomAutomationPropertyDescriptor)#3

      asType = "keyFocusChange"

      defaultValue = "false"

      forDescription = true

      forVerification = true

      name = "shiftKey"

      [1] (custom::CustomAutomationPropertyDescriptor)#4

      asType = "keyFocusChange"

      defaultValue = "TAB"

      forDescription = true

      forVerification = true

      name = "keyCode"

      eventClassName = "flash.events.FocusEvent"

      eventType = "keyFocusChange"

      name = "ChangeFocus"

      flash.events.MouseEvent|click = (custom::CustomAutomationEventDescriptor)#5

      args = (Array)#6

      [0] (custom::CustomAutomationPropertyDescriptor)#7

      asType = "click"

      defaultValue = "false"

      forDescription = true

      forVerification = true

      name = "ctrlKey"

      [1] (custom::CustomAutomationPropertyDescriptor)#8

      asType = "click"

      defaultValue = "false"

      forDescription = true

      forVerification = true

      name = "shiftKey"

      [2] (custom::CustomAutomationPropertyDescriptor)#9

      asType = "click"

      defaultValue = "false"

      forDescription = true

      forVerification = true

      name = "altKey"

      eventClassName = "flash.events.MouseEvent"

      eventType = "click"

      name = "Click"

      flash.events.MouseEvent|mouseMove = (custom::CustomAutomationEventDescriptor)#10

      args = (Array)#11

      [0] (custom::CustomAutomationPropertyDescriptor)#12

      asType = "mouseMove"

      defaultValue = "0"

      forDescription = true

      forVerification = true

      name = "localX"

      [1] (custom::CustomAutomationPropertyDescriptor)#13

      asType = "mouseMove"

      defaultValue = "0"

      forDescription = true

      forVerification = true

      name = "localY"

      [2] (custom::CustomAutomationPropertyDescriptor)#14

      asType = "mouseMove"

      defaultValue = "false"

      forDescription = true

      forVerification = true

      name = "ctrlKey"

      [3] (custom::CustomAutomationPropertyDescriptor)#15

      asType = "mouseMove"

      defaultValue = "false"

      forDescription = true

      forVerification = true

      name = "shiftKey"

      [4] (custom::CustomAutomationPropertyDescriptor)#16

      asType = "mouseMove"

      defaultValue = "false"

      forDescription = true

      forVerification = true

      name = "altKey"

      eventClassName = "flash.events.MouseEvent"

      eventType = "mouseMove"

      name = "MouseMove"'.

      at mx.automation::AutomationManager/recordAutomatableEvent()[C:\work\flex\dmv_automation\pro jects\automation\src\mx\automation\AutomationManager.as:2279]

      at spark.automation.delegates::SparkRichEditableTextAutomationHelper/recordAutomatableEvent( )[E:\dev\4.0.0\frameworks\projects\automation_spark\src\spark\automation\delegates\SparkRi chEditableTextAutomationHelper.as:315]

      at spark.automation.delegates::SparkRichEditableTextAutomationHelper/flushSelection()[E:\dev \4.0.0\frameworks\projects\automation_spark\src\spark\automation\delegates\SparkRichEditab leTextAutomationHelper.as:258]

      at spark.automation.delegates::SparkRichEditableTextAutomationHelper/stageEventHandler()[E:\ dev\4.0.0\frameworks\projects\automation_spark\src\spark\automation\delegates\SparkRichEdi tableTextAutomationHelper.as:648]

       

      Here is my compiler options:
      -include-libraries "C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0\frameworks\libs\automation\automation.swc" "C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0\frameworks\libs\automation\automation_agent.swc" "C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0\frameworks\libs\automation\automation_spark.swc"

      As you can see, I have included automation_spark.swc. How can I overcome this error?

       

      Can someone from the automation team help me out?

       

      Thanks,

      Pradeep.