This content has been marked as final.
Show 3 replies
-
1. Re: Is it possible to get source code of AutomationManager.as class or/and QTPAdapter.as?
Jcheng2334 Feb 25, 2009 9:56 AM (in response to matt_chotin)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 Feb 26, 2009 7:57 AM (in response to matt_chotin)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 Feb 27, 2009 3:44 PM (in response to matt_chotin)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.

