13 Replies Latest reply: Feb 1, 2010 8:50 PM by svakil RSS

    qtp9.2 automation with flex sdk3.3,automation_agent.swc conflict

    fairy_lly


      The project is developed whit flex sdk 3.3. i am using QTP9.2 to automate test.

       

      I have done these things the following:
      1、install QTP_Plugin_Installer.exe
      2、update flex builder's “Additional compiler arguments”
      -locale en_US -include-libraries "flex_builder_dir\sdks\3.3.0\frameworks\libs\automation.swc" "flex_builder_dir\sdks\3.3.0\frameworks\libs\automation_agent.swc" "flex_builder_dir\sdks\3.3.0\frameworks\libs\qtp.swc" "flex_builder_dir\sdks\3.3.0\frameworks\libs\automation_dmv.swc"

       

      QTP script can be properly recorded to flex.
      but,the project can not properly use the many functions.
      In particular, the button is clicked to no avail.


      Search revealed that there is a conflict because of automation_agent.swc.

      Removal of automation_agent.swc.
      QTP script not properly recording to flex.

       

      and flashplayer activex debug's message:
      TypeError: Error #1009: 无法访问空对象引用的属性或方法。
      at mx.automation.qtp::QTPAdapter/setTestingEnvironment()[C:\work\flex\dmv_automation\project s\qtp\src\mx\automation\qtp\QTPAdapter.as:461]
      at mx.automation.qtp::QTPAdapter()[C:\work\flex\dmv_automation\projects\qtp\src\mx\automatio n\qtp\QTPAdapter.as:357]
      at mx.automation.qtp::QTPAgent/applicationCompleteHandler()[C:\work\flex\dmv_automation\proj ects\qtp\src\mx\automation\qtp\QTPAgent.as:48]
      at flash.events::EventDispatcher/dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at mx.managers::SystemManager/preloader_preloaderDoneHandler()[C:\autobuild\3.3.0\frameworks \projects\framework\src\mx\managers\SystemManager.as:3025]
      at flash.events::EventDispatcher/dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at mx.preloaders::Preloader/displayClassCompleteHandler()[C:\autobuild\3.3.0\frameworks\proj ects\framework\src\mx\preloaders\Preloader.as:434]
      at flash.events::EventDispatcher/dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at com.adobe.cairngorm.game.view.loading::AppPreloader/dispatchComplete()[E:\fairylly\Compan ySystem\liangjiansanguo\codes\game\src\com\adobe\cairngorm\game\view\loading\AppPreloader. as:100]
      at flash.utils::Timer/_timerDispatch()
      at flash.utils::Timer/tick()


      If we have to face such problems?
      Please help out,thanks a lot.

      fairylly