Flex UI testing with RanorexOctober 22nd, 2009

Adobe Flex technology is getting more and more popular, and  we have started to build even quite complicated applications using Flex. However, the UI behaviour in Flex  is generally more complex than in HTML/JS/CSS and we quickly realized that we needed a testing tool which could record and replay user actions sequences to help us detect UI issues.

Looking around for testing tools, we came across some open source frameworks  such as FlexMonkey and SeleniumFlex. We also tested the following commercial tools :

  • HP QTP
  • IBM Rational Functional Tester
  • Borland SilkTest
  • RIATest
  • TestComplete

Unfortunately, most of the time, we were quite disappointed with those products because of poor documentation and insufficient user actions record/replay support:  During  one of our tests, we discovered that certain user actions, such as contextual menu selection or drap & drop actions, were not correctly detected or, even worse, were not working anymore.

One of the issues with these tools is probably that they use common techniques and/or underlying frameworks to automate Flex applications, such as External Interface, Microsoft Active Accessibility or Flex Automation … moreover, you should note that using Flex Automation SWCs files requires a Flex Builder license.

Enter Ranorex (http://www.ranorex.com), which, since its lastest version, can also automate Flex applications. Ranorex provides its own automation framework and therefore does not rely on Flex Automation.

We were able to quickly use it to record everything from from simple to complex testcases,  fine-tune and run them. Components are identified by an Xpath like dialect (RanorexXpath), which is automatically written for you when recording or when using the Ranorex Spy tool : this makes writing test script a lot easier. There are also interesting features such as imaging comparison, user friendly test reports or test script debugging and much more.

Scripts tests are actually .Net executables writtent in C# or VB.Net and Ranorex Studio IDE is based on SharpDevelop, a open source .Net IDE . It means using this tool requires some basic knowledge of .Net, which can discourage some people. On the other side, writing script tests on a .Net architecture makes it  possible to use specific .Net features or 3rd party libraries to integrate with NUnit or Microsoft Products like Visual Studio or Excel.

Share and Enjoy:
  • Print
  • Facebook
  • Google Bookmarks
  • email
  • PDF
  • RSS
  • Twitter

  1. Yes Ranorex has rich features which supports next Gen, and the ranorex spy is awsome, it provides autogenerated xpath for a given object which makes our lifes easier.

    some of the Best features are
    Excellent Object recognization
    support for next Gen
    Easy record and play back options
    More over to deliver automation scripts user does not have to bother about source code, just an exe needs to be delivered to the end users.
    We can also filters through results, errors, detail steps of test execution, warnings and debug messages in Ranorex report.

    Anfal Mohamed

    28 Oct 09 at 5:43 am

  2. This sounds super cool. Most of my career the struggle has been on the front of automating flash based applications. If this tool works out for my challenges, it owes an strong recommendation for one of the best innovations in test automation technology till date.

    Bimal

    4 Dec 09 at 8:34 am

Leave a Reply

*