3 Replies Latest reply on Feb 27, 2009 3:44 PM by matt_chotin

    Is it possible to get source code of AutomationManager.as class or/and QTPAdapter.as?

    matt_chotin Level 3
      Sorry, we don’t really provide source for those classes right now.





      On 2/25/09 2:47 AM, "JabbyPanda" < member@adobeforums.com> wrote:



      A new discussion was started by JabbyPanda in



      General Discussion --

        Is it possible to get source code of  AutomationManager.as class or/and QTPAdapter.as?



      I have a license of Flex Builder 3.0.1 Pro, running Win XP.



      Inside "c:\Program Files\Adobe\Flex Builder 3 Plug-in\sdks\2.0.1\frameworks\source\mx\automation\"  folder I can only locate a listing of source code of IAutomationManager interface.



      Inside "c:\Program Files\Adobe\Flex Builder 3 Plug-in\sdks\3.2.0\frameworks\projects\automation\src\mx\automation\" folder there is also a bunch of open sourced classes present, but even source code of IAutomationManager interface is missing.



      And source code for AutomationManager.as and QTPAdapter.as classes are nowhere to find.



      And I tried to extract source files from Data Visualization package as suggested here

      http://blogs.adobe.com/flexdoc/2008/04/extracting_data_visualization.html, no luck




      View/reply at Is it possible to get source code of  AutomationManager.as class or/and QTPAdapter.as? < http://www.adobeforums.com/webx?13@@.59b80b91>

      Replies by email are OK.

      Use the unsubscribe < http://www.adobeforums.com/webx?280@@.59b80b91!folder=.3c060fa1>  form to cancel your email subscription.





        • 1. Re: Is it possible to get source code of AutomationManager.as class or/and QTPAdapter.as?
          Jcheng2334
          I too wouldn't mind getting a look at the sources for those classes if Adobe were to ever decide to make them available, mostly out of curiosity as to how some of the internals are actually implemented underneath the hood versus just seeing the results.

          However, depending on what you're planning on doing with Automation, there's a good chance that you may not necessarily need access to them to do what you'd want.

          While the documentation on the automation framework is fairly sparse, if you're looking to implement your own custom adapter to a target other than QTP, or if want to write custom delegates to automate your own custom components, you can do pretty well with what is available.

          The best source of information on custom adapters I've found is here:

          http://www.adobe.com/devnet/flex/samples/custom_automated/

          Based upon this example, I've since been able to write a number of custom adapters that utilize Automation and serialize its events across the wire to and from various targets, including standalone AIR applications and server-side applications. This was possible without having any access to the QTPAdapter source code.

          For custom delegates, this is probably the best starting point:

          http://www.adobe.com/devnet/flex/samples/randomwalk/

          Note that this particular article was written back in the days of Flex 2, so you don't necessarily need QTP if you've figured out how to otherwise export the events via the previous tutorial above and can follow along with the rest of it.

          Hope this helps,
          Jim
          • 2. Re: Is it possible to get source code of AutomationManager.as class or/and QTPAdapter.as?
            JabbyPandaUA Level 3
            What I plan to do, is to write a couple of delegates to prepare (instrument) my custom components that extend from UIComponent for testing.

            I found the source file for AQAdapter.as from FlexMonkey tool at
            http://code.google.com/p/flexmonkey/source/browse/trunk/FlexMonkey/src/com/gorillalogic/aq adaptor/AQAdapter.as, by studying the code of AQAdapter.as I can get the better idea what QTPAdapter.as does.

            In general, I found the documentation on test automation for Flex application to be very modest and limited, for example many attributes for XML-based "class information file" for HP QuickTest tool are not documented at Adobe Flex livedocs.

            BTW, is there any better place where test professionals and Adobe Flex developers exchange the knowledge on test automation of Flex apps?

            I've tried http://www.sqaforums.com by running search query

            http://www.google.com/custom?domains=SQAforums.com&q=Adobe+Flex&sitesearch=SQAforums.com, but I left with a feeling the most enquiries were made by people who are just evaluating possiblity of testing of Flex apps with HP QuickTest tool.

            --
            Andriy Panas
            • 3. Re: Is it possible to get source code of AutomationManager.as class or/and QTPAdapter.as?
              matt_chotin Level 3
              We can look at setting up some subtopic forums targeting specifics like automation once we have our new system in place.





              On 2/26/09 7:57 AM, "JabbyPanda" < member@adobeforums.com> wrote:



              A new message was posted by JabbyPanda in



              General Discussion --

                Is it possible to get source code of AutomationManager.as class or/and QTPAdapter.as?



              What I plan to do, is to write a couple of delegates to prepare (instrument) my custom components that extend from UIComponent for testing.



              I found the source file for AQAdapter.as from FlexMonkey tool at  

              http://code.google.com/p/flexmonkey/source/browse/trunk/FlexMonkey/src/com/gorillalogic/aq adaptor/AQAdapter.as, by studying the code of AQAdapter.as I can get the better idea what QTPAdapter.as does.



              In general, I found the documentation on test automation for Flex application to be very modest and limited, for example many attributes for XML-based "class information file" for HP QuickTest tool are not documented at Adobe Flex livedocs.



              BTW, is there any better place where test professionals and Adobe Flex developers exchange the knowledge on test automation of Flex apps?



              I've tried http://www.sqaforums.com by running search query



              http://www.google.com/custom?domains=SQAforums.com&! q=Adobe+Flex&sitesearch=SQAforums.com < http://www.google.com/custom?domains=SQAforums.com&q=Adobe+Flex&sitesearch=SQAforums.com> , but I left with a feeling the most enquiries were made by people who are just evaluating possiblity of testing of Flex apps with HP QuickTest tool.