Test Automation for Flex apps
For adobe flex applications what are best tools/frameworks.
Please share your experiences.
I haven't tested flex apps for 3 years. Back then I thought TestComplete was pretty good. They have a .swc file you can compile into your Flex application that opened it up for automation with their tool. It did get annoying having to compile separate test/debug build and release builds as that .swc file was pretty large and affected our load times. (For that company I use to work for, I ended up just settling with just using External Interface and adding my own test hooks since I had access to the source code and was considered part of Dev.)
You are right. Compiling SWCs into app is not recommended by product owner as well.
He is of the view that build with automation binaries is not suitable to release. And released build is not under gone the automated scripts so its a confusing equation.
Can you please eleborate the code hooks u used for automation?
Any experience Selenium for Flex apps?
Originally Posted by syedalikazmi
ExternalInterface - Adobe ActionScript® 3 (AS3 ) API Reference
Adobe - Flex Samples - Automation API sample applications | Adobe Developer Connection
Then in your MXML files for your UI, just give your elements some unique "automationName" property so the automation API can easily find your element.
Flex 3 - Adobe Flex 3 Help
I am actually looking into the TestComplete for Flex web testing. Having issue getting Test complete recognizing Flex objects even after .swc file compiled into the app. SmartBear customer service sucks. Would you have any suggestions? I am still evaluating this tool for the company best approach to scale for regression testing. Installed Debug version of Flash, this was another suggestion from SmartBear, but still no success. I would appreciate if you can share some knowledge.
froglogic's Squish supports testing Flex applications. It does require you have the Debug version of Flash installed. Aside from that, you can then test your Flex application across a range of browsers as well as across operating systems with no differences between the test scripts in each browser and/or OS combination.
froglogic ? Squish GUI Tester ? Squish for Flex
30 day eval: froglogic ? ? Evaluate Squish
Thanks picketaf, however I am looking for complete detailed solution such as UFT and TestComplete. OR maybe some suggestions how to make UFT or TestCOmplete work for Flex webapp.
TestComplete and UFT out of the box (as well as many automation tools) will support MSAA. So if you want to automate Flex without compiling in a test hook, this really is the only way. Flex/Flash apps can be automated using MSAA, however, you'll need to assign those MSAA properties in the mxml files.
Adobe*Flex*4.6 * Configuring Flex applications for accessibility (how to enable msaa)
Accessibility Flex components (how to enable your components to support msaa)
That will allow you to automate most standard controls. However composite and custom controls will be hard to automate using MSAA. Most of the time it'll give you a simple click and get/set properties type access. So buttons, text boxes, and other form fields are easy enough to automate this way. However it's very hard to deal with custom grids and 3rd party controls using this method.
But to get much better native automation support, you generally need to use a debug build with a compiled in test hook, regardless of automation tool used.