Flex 2 and Functional Testing - mx.automation classes
November 27th, 2006
In the days of Flex 2 beta there were some mx.automation.* classes that was the start of integrating Flex 2 with Mercury Quick Test Professional (QTP). These classes where pulled out of the Flex 2 release. At MAX I attended Alistair McLeod’s presentation on “Increasing Efficiency and Quality with Flex Automation” and found out that the mx.automation.* classes will make it into Flex 2.0.1.
A good resource on this subject is a presentation made by Ram. K back in June 2006 called “Automated testing of Flex applications”. In this document there is a diagram on page 5 that shows a Testing Tool API box with Adapters inside it.
I am interested in how people are using QTP adapter and if there are plans for any other custom adapters (I have my own ideas in this area). If you are using QTP adapter or have more information about custom adapters please leave a comment or email at renaun
Entry Filed under: Adobe Flex, Rich Internet Applications




14 Comments Add your own
1. Gregory Golberg | 2006-12-27 at 1.58 pm
This is definitely something I am looking for. Where can I get more information (and what about using some other tools rather than QTP?)
2. Renaun Erickson | 2006-12-27 at 2.25 pm
When the release of Flex 2.0.1 happens I’ll hopefully have more information.
3. Pieter | 2007-02-24 at 5.18 am
Hi Renaun,
Do you already have any more insight to Functional Testing flex applications?
Best Regards,
Pieter
4. Renaun Erickson | 2007-02-26 at 9.46 am
Not at this time, I have some proof of concept stuff but it is too early to demonstrate anything.
Renaun
5. adam scierski | 2007-03-02 at 3.37 pm
hi! i am using qtp to test the flex application, but unfortunetly qtp don’t want to work with flex as much as i wanted to.
6. Renaun Erickson | 2007-03-02 at 3.41 pm
Can you example the use case where QTP doesn’t work for you. You can email off the blog at renaun renaun com
7. adam scierski | 2007-04-06 at 12.04 pm
my e-mail: a.scierski@gmail.com.
unfortunately i am unable to select option values from drop down list ( e.g. 1, 2, 3). i am unable to select values from Flex list by index also. If you have any solution please contact with me we can exchange our knowledge.
8. Ram | 2007-07-10 at 4.28 pm
Renaun,
I am trying to automate the Flex pages using QTP through discriptive programming but unfortuantely i am unable to do it,if you have any procedural document to automate Flex pages using QTP can you please send it to me.
Thanks,
Ram
9. Marco | 2007-09-03 at 12.33 pm
Hi Renaun,
I’m using flex 2.0.1, QTP 9.2 and the Adobe Flex plug-in for QTP. Is still needed flex applications to import automation.swc, automation_agent.swc, automation_charts.swc and qtp.swc? There is very little updated information about automation flex apps using QTP.
Thanks,
Marco
10. Sunil | 2007-10-17 at 12.20 am
Is TestComplete a good substitute for QTP?? It can test Flash also.
Please suggest..
Thanks
Sunil
11. James Ward - RIA Cowboy &&hellip | 2007-11-15 at 3.04 am
[...] “Flash is difficult to integration test” - Not really. Check out: http://flex.org/ACDS/AutomatedTestingInFlex.pdf http://weblogs.macromedia.com/amcleod/archives/2007/01/flex_automation.cfm http://renaun.com/blog/2006/11/27/161/ [...]
12. Renaun Erickson | 2008-03-06 at 7.45 pm
@Suni I just recently came across TestComplete. I think since TestComplete relies on IAccessible that its somewhat limited compared to QTP. But it might be enough for your needs, but you have to implement your components or Flex’s components with the IAccessible interface. Which I don’t think all the components in the Flex Framework implement.
13. Abhe | 2008-07-08 at 10.57 am
@Renaun
I am evaluating testcomplete for a flex application. Could you post some examples of how to modify flex code to implement the IAccessible interface so as to expose the objects to testcomplete.
thanks
14. Renaun Erickson | 2008-07-08 at 12.16 pm
I haven’t confirmed this actually working myself but the idea is that AccessibilityProperties are what TestComplete will see. So something like this should work for you:
var accessProps:AccessibilityProperties = new AccessibilityProperties();
accessProps.name = “myTestCompleteName”;
myUIComponent.accessibilityProperties = accessProps;
Now in TestComplete when you click on the component it should say something like “myTestCompleteName” for the target name and you can use that in your scripts.
Leave a Comment
Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
Trackback this post | Subscribe to the comments via RSS Feed