Forum Discussion

snbenterprises's avatar
snbenterprises
New Contributor
15 years ago

Working with Flex objects

I am working on a trial version of TC for Flex using Flash Injector approach.  Till yesterday it was like waltzing TC. But suddenly now none of the Flex objects seem to be recognizable by run time. Yeah I am  zapped. Diagnostics says at the very login page (after having gone way long in to the app with TC):



TestComplete Diagnostics: Loaded  .SWF File not prepared for testing





Am I in to some kind of nearing the end license period blues. This is happening to me when I am about to prove something better with TC against another guy using Selenium.



Please....Any help or  clues will be hugely appreciated.



Please dont gimme the RTFM thing. I have been doing that for the past like 12 hours. Yet I dont see what I missed from the book unless there is some undocumented stuff.


18 Replies

  • Hi Goutham,


    I see you've received a response from our Support Team in ticket M0093383. I hope the issue has now been resolved.

    Please let us know if there is something else we can help you with.

  • I get following error while opening my application by the wrapper html.

    I can get the text "FlexClient::Agent" in flashlog.txt

    Also the graphics does not come proper, somecomponents do not appear.



    SecurityError: Error #2148: SWF file http://tcauctfs02-int.live.liffe.com:26888/PTPMGUI/bin/release/PTPMGUI.swf cannot access local resource file:///C:/TridentAutomation/TridentAutomation/TestedApps/labelvalues.xml. Only local-with-filesystem and trusted local SWF files may access local resources.

     at flash.net::URLStream/load()

     at flash.net::URLLoader/load()

     at flash.net::URLLoader()

     at PTPMGUI/application1_creationCompleteHandler()[C:\Projects\Trident\PTI\MAIN\PTPMGUI\src\PTPMGUI.mxml:83]

     at PTPMGUI/___PTPMGUI_Application1_applicationComplete()[C:\Projects\Trident\PTI\MAIN\PTPMGUI\src\PTPMGUI.mxml:9]

     at flash.events::EventDispatcher/dispatchEventFunction()

     at flash.events::EventDispatcher/dispatchEvent()

     at mx.core::UIComponent/dispatchEvent()

     at mx.managers::SystemManager/preloader_preloaderDoneHandler()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\managers\SystemManager.as:2502]

     at flash.events::EventDispatcher/dispatchEventFunction()

     at flash.events::EventDispatcher/dispatchEvent()

     at mx.preloaders::Preloader/displayClassCompleteHandler()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\preloaders\Preloader.as:555]

     at flash.events::EventDispatcher/dispatchEventFunction()

     at flash.events::EventDispatcher/dispatchEvent()

     at com.nyx.splashscreen::CustomPreloader/initCompleteHandler()[C:\Projects\Trident\PTI\MAIN\PTPMGUI\src\com\nyx\splashscreen\CustomPreloader.as:39]

     at flash.events::EventDispatcher/dispatchEventFunction()

     at flash.events::EventDispatcher/dispatchEvent()

     at mx.preloaders::Preloader/dispatchAppEndEvent()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\preloaders\Preloader.as:358]

     at mx.preloaders::Preloader/appCreationCompleteHandler()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\preloaders\Preloader.as:563]

     at flash.events::EventDispatcher/dispatchEventFunction()

     at flash.events::EventDispatcher/dispatchEvent()

     at mx.core::UIComponent/dispatchEvent()

     at mx.core::UIComponent/set initialized()

     at mx.managers::LayoutManager/doPhasedInstantiation()

     at mx.managers::LayoutManager/doPhasedInstantiationCallback()
  • Hi Krushna,



    Please describe the situation in more detail.

    What browser are you using? Does the error appear when you record a test with TC, or just open your application? Are you using the FlashInjector approach to test your application?
  • The error is not coming now



    my application is acccessed through http URL.

    Again I  tried using wrapper html.



    Now I access the application with direct link with all settings for flash injector. Now I can access internal methods of my application.



    This is resolved.
  • vls1210's avatar
    vls1210
    Occasional Contributor
    Hi Team,



    We are currently working on Trail version of Test Complete 9.10.1894.7. When we try to record on a flex based application following error is seen "Loaded .swf file is not ready for testing".



    Steps in the below link is followed before recording:



    http://support.smartbear.com/viewarticle/35770/



    We have also executed your JScript code. Please find the attached execution log.



    Please guide us on the same.



    Thanks

  • Hi vls,


     


    According to your log, TestComplete cannot find the mm.cfg file on the H disk. Copy it to the root folder.


     

  • navneet_nanda's avatar
    navneet_nanda
    Occasional Contributor


    Hi Team,



    We are currently working on Trial version of Test Complete 9.20.2460.7. When we try to record on a flex based application following error is seen "Loaded .swf file is not ready for testing".



    Steps in the below link is followed before recording:



    http://support.smartbear.com/viewarticle/35770/



    We have also executed your JScript code. But the code fails because we do not have the internet connection on the machine where we have installed Test Complete. Is there any other way through which we can identify the issue.



    This is really very urgent. Please suggest as soon as possible.



    Thanks

    Navneet



  • Hi Navneet,


     


    As I said here, our Support team is working with you on this issue. Continue the investigation with them.