2 years ago, at the start of November
Troubles with Flex automation, RandomWalk and Flex SDK 4.1
Posted by pbirnie under technology
Spent quite a lot of time getting Flex automation working with the RandomWalk example - there where several obstacles to recording but now playback is failing.
This is with the latest version of the flex SDK (flex sdk 4.1 – build 16076)
it gives the following error:
AutomationManager:pushMouseSimulator() – In Air we are not allowed to do this on the Window object. We need to settle this with AIR team
Error #1009: Cannot access a property or method of a null object reference.: TypeError: Error #1009: Cannot access a property or method of a null object reference.
at mx.automation::AutomationManager/replayMouseEventInternal()[C:\work\flex\dmv_automation\projects\automation_agent\src\mx\automation\AutomationManager.as:2557]
at Function/()[C:\work\flex\dmv_automation\projects\automation_agent\src\mx\automation\AutomationManager.as:2708]
at mx.automation::AutomationManager$/map()[C:\work\flex\dmv_automation\projects\automation_agent\src\mx\automation\AutomationManager.as:308]
at mx.automation::AutomationManager/replayClick()[C:\work\flex\dmv_automation\projects\automation_agent\src\mx\automation\AutomationManager.as:2710]
at RandomWalkDelegate/replayAutomatableEvent()[U:\projects\FlexMonkeyRandomWalk\src\RandomWalkDelegate.as:96]
at mx.core::UIComponent/replayAutomatableEvent()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:12432]
at mx.automation::AutomationManager/replayAutomatableEvent()[C:\work\flex\dmv_automation\projects\automation_agent\src\mx\automation\AutomationManager.as:1405]
at com.gorillalogic.aqadaptor::AQEventDescriptor/replay()[C:\cygwin\home\pbirnie\flexmonkey-read-only\aqadaptor\src\com\gorillalogic\aqadaptor\AQEventDescriptor.as:94]
at com.gorillalogic.aqadaptor::AQAdapter/replayEvent()[C:\cygwin\home\pbirnie\flexmonkey-read-only\aqadaptor\src\com\gorillalogic\aqadaptor\AQAdapter.as:546]
at com.gorillalogic.aqadaptor::AQAdapter/replay()[C:\cygwin\home\pbirnie\flexmonkey-read-only\aqadaptor\src\com\gorillalogic\aqadaptor\AQAdapter.as:594]
at Function/()[C:\cygwin\home\pbirnie\flexmonkey-read-only\aqadaptor\src\com\gorillalogic\aqadaptor\AQAdapter.as:625]
at com.gorillalogic.aqadaptor::AQAdapter/useErrorHandler()[C:\cygwin\home\pbirnie\flexmonkey-read-only\aqadaptor\src\com\gorillalogic\aqadaptor\AQAdapter.as:801]
at com.gorillalogic.aqadaptor::AQAdapter/run()[C:\cygwin\home\pbirnie\flexmonkey-read-only\aqadaptor\src\com\gorillalogic\aqadaptor\AQAdapter.as:618]
at com.gorillalogic.flexmonkey.monkeyCommands::UIEventMonkeyCommand/run()[/Users/jonr/projects/flexmonkey/workspace-clean/flexmonkey-public/MonkeyLink/src/com/gorillalogic/flexmonkey/monkeyCommands/UIEventMonkeyCommand.as:115]
at com.gorillalogic.monkeylink::MonkeyLink/respondRunCommand()[/Users/jonr/projects/flexmonkey/workspace-clean/flexmonkey-public/MonkeyLink/src/com/gorillalogic/monkeylink/MonkeyLink.as:212]
Sending respondUiCommandReturn to _flexMonkey w/TXCount=2
This occurs for QTP, FlexMonkey and RiaTest
The same code works for sdk 3.5
I am using the version of RandomWalk with the patch from this flex automation experts blog – so I am 99% certain its the inside the AutomationManager or perhaps there is another patch required for RandomWalk code
