views:

2472

answers:

12

What tools, preferably open source, are recommended for driving an automated test suite on a FLEX based web application? The same tool also having built in capabilities to drive Web Services would be nice.

+2  A: 

I heard of people using selenium as a free/open source testing tool. A quick google revealed a FLEX API for it. Not sure if it works or is still in development, but it may be worth a look.

http://sourceforge.net/projects/seleniumflexapi/

Brian G
+1  A: 

There's an automated test tool called RIATest that might fit the bill for you.

Unfortunately only for Windows, and not open source, but if it does the job it might be well worth the price ($399 at time of writing).

ianmjones
RIATest 3 works on Mac OS X too.
TN
+4  A: 

Adobe distributes a test framework themselves: FlexUnit.

Allen
I would suggest FlexUnit for automated testing of libraries you're building but it is a serious pain to use for a full application.
Ben Johnson
+1  A: 

FunFX is an option for automating UI testing. I haven't used it extensively, but I've heard of some having success with it. Here is the article where I first learned about it.

Mike Deck
+1  A: 

Are you looking to script code-level unit tests? If so, dpuint is the bomb: http://code.google.com/p/dpuint/ . This library makes it really easy to do automated testing on all sorts of asynchronous events, on either non-visual ActionScript objects or visual components. They also have a nice multi-page tutorial on the Google Code project page.

If you are looking for functional testing tools along the lines of automated record-and-playback simulating an end user using a Flex app, HP's QuickTest Pro is the Adobe-endorsed solution. It works great, but costs about $4,000 - $6,000 per seat.

A: 

My preferred tool is Selenium Remote Control. There is a plug-in I discovered a few months ago:

http://code.google.com/p/flash-selenium/

This required 'hooks' to be written on the server side (ActionScript/Flex). Once they were added, I was able to do some browser testing using Selenium RC.

Derek B.
A: 

FunFX is great. We've used it extensively and have been very happy with it. The community is also active and very responsive, so that is a big plus for me.

+2  A: 

Check out FlexMonkey. It does automated testing via FlexUnit tests.

James Ward
FlexMonkey may be more of a pain than it is worth. Gorrilla Logic claims it works with custom components but I have found this is not the case. Anything with a renderer seems to have serious problems. It is a lot harder to set up tests than they claim and the tests aren't stable. I have written tests for one component 5 times now using hardcoded ids. Sometimes it just can't see the component and it dies. They only have 3 short paragraphs explaining tests in their user guide and they only respond to questions about how to set it up on their google group. I would avoid using this.
Ryan H
A: 

The new version of the Selenium-Flex API (0.2.5) works great.

Fergal
A: 

Hi. I want to test Flex application using selenium. I have downloaded Flashselenium and selniumFlexApi. But, i came to kno, we have too add some special code to flex to get objects recognised by selenium. Can anyone please teel me, what is this code needs to be added into Flex internals, to get object properties.

+1  A: 

I've been extensively using FunFX for several months now on a Flex 3 + Rails project. Not only is it open source, it's also written in Ruby, so integration with web services should be fairly easy. There are a few screencasts out there covering the basics.

James Bobowski
A: 

Try looking at Melomel. It has Cucumber support baked right in and comes packaged with steps for most Halo and Spark components.

http://melomel.info

Ben Johnson