jQuery in Action, 2nd edition*
The moose likes Flex and the fly likes Flex 4 in Action and Testing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Frameworks » Flex
Bookmark "Flex 4 in Action and Testing" Watch "Flex 4 in Action and Testing" New topic
Author

Flex 4 in Action and Testing

Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Does Flex 4 In Action cover much about testing applications written in Flex? And if it doesn't do the authors have any suggestions how best to procede? We have quite a rich library of Selenium tests for our various traditional web applications, but have been struggling to create something simmilar for our Flex applications. Any suggestions from you (or any others out there with anything to offer!) would be appreciated.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Dan Orlando
author
Ranch Hand

Joined: Mar 04, 2010
Posts: 31
Actually Paul, Joel is quite the expert on FlexUnit 4, and wrote a considerable amount of content on the subject of TDD (Test-driven Development) for Flex 4 in Action (chapter 24 I think), and while unit testing was a little weak in previous versions of FlexUnit, it has matured substantially. Version 4 is based on the functionality of JUnit 4.5 and fully supports Hamcrest. Check it out: http://docs.flexunit.org/index.php?title=Main_Page


Dan Orlando
Adobe Community Professional
Author, Flex 4 in Action (Manning Press)
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Thanks Dan. We have just started to look at FlexUnit 4, after slogging away with limited success with the previous versions. It does look like an improvement - we are very familiar with JUnit 4, which we use to test all the Java parts of our applications. One thing we are keen to get is a way of testers being able to write automated tests (as they can with a tool like Selenium). Do you know of anything out there that would let us do this for Flex? We've had a brief look at Flex Selenium, which uses ExternalInterface to hook Selenese in to the Flex application but there seems to be a few too many hooks (i.e. a bit brittle) for our liking.
Dan Orlando
author
Ranch Hand

Joined: Mar 04, 2010
Posts: 31
Paul Sturrock wrote:Thanks Dan. We have just started to look at FlexUnit 4, after slogging away with limited success with the previous versions. It does look like an improvement - we are very familiar with JUnit 4, which we use to test all the Java parts of our applications. One thing we are keen to get is a way of testers being able to write automated tests (as they can with a tool like Selenium). Do you know of anything out there that would let us do this for Flex? We've had a brief look at Flex Selenium, which uses ExternalInterface to hook Selenese in to the Flex application but there seems to be a few too many hooks (i.e. a bit brittle) for our liking.


This should solve your problem: http://www.riatest.com/

Works beautifully.

Cheers!

 
 
subject: Flex 4 in Action and Testing