在预加载器上启用自动化的flex-application的null对象引用

时间:2010-06-15 08:14:11

标签: flex testing automation functional-testing ui-automation

我们正在尝试自动化我们的Flex应用程序。将自动化库添加到项目后,我们得到以下异常:

TypeError: Error #1009: Cannot access a property or method of a null object reference.
 at mx.automation::AutomationManager$/addDelegates()
 at mx.automation::AutomationManager$/addDelegates()
 at mx.automation::AutomationManager$/addDelegates()
 at mx.automation::AutomationManager$/addDelegates()
 at mx.automation::AutomationManager$/addDelegates()
 at mx.automation::AutomationManager$/addDelegates()
 at mx.automation::AutomationManager$/addDelegates()
 at mx.automation::AutomationManager$/addDelegates()
 at mx.automation::AutomationManager$/addDelegates()
 at mx.automation::AutomationManager$/addDelegates()
 at mx.automation::AutomationManager$/addDelegates()
 at mx.automation::AutomationManager$/addDelegates()
 at mx.automation::AutomationManager$/addDelegates()
 at mx.automation::AutomationManager$/addDelegates()
 at mx.automation::AutomationManager/childAddedHandler()
 at flash.display::DisplayObjectContainer/addChildAt()
 at mx.managers::SystemManager/preloader_preloaderDoneHandler()
 at flash.events::EventDispatcher/dispatchEventFunction()
 at flash.events::EventDispatcher/dispatchEvent()
 at mx.preloaders::Preloader/displayClassCompleteHandler()
 at flash.events::EventDispatcher/dispatchEventFunction()
 at flash.events::EventDispatcher/dispatchEvent()
 at com.bwin.core.preloading::ApplicationPreloader/onApplicationPreloadingReady()
 at flash.events::EventDispatcher/dispatchEventFunction()
 at flash.events::EventDispatcher/dispatchEvent()
 at mx.core::UIComponent/dispatchEvent()
 at com.bwin.core.preloading::PreloadingManager/dispatchReadyEvent()
 at flash.events::EventDispatcher/dispatchEventFunction()
 at flash.events::EventDispatcher/dispatchEvent()
 at flash.utils::Timer/tick()

我们正在使用Flex 3.4和maven2来构建应用程序。

有没有人有这个flex测试的问题?

THX。

有没有人

1 个答案:

答案 0 :(得分:0)

我在Flex 3.x应用程序上启用了自动化功能,但从未看到过该异常。为了回答这个问题,更多信息会有所帮助。