InfoQ

News

RIATest for Flex Released Beta Product

Posted by Moxie Zhang on Mar 11, 2008

Community
Java
Topics
Rich Internet Apps
Tags
Flex ,
Testing

RIATest, a Flex GUI test automation tool released the beta product to public. InfoQ spoke to Tigran Najaryan, the founder and creator of RIATest, about this release.

Najaryan started with why RIATest was created:

RIATest is a GUI test automation tool for Adobe Flex 3 applications. RIATest is created to serve as simple, clean test automation solution for businesses and professional developers who are serious about quality assurance of their products. We are dedicated to aggressive pricing in order to bring test automation to large number of Flex users who were previously unable to afford other Flex test automation solutions available.

On how RIATest works, Najaryan explained:

Technically RIATest is composed of two parts: Agent and IDE (or command line Runner). Agent sits in browser-side of things and talks directly with the Application Under Test. Agent provides Component Inspector which allows to inspect and watch application GUI components and their properties. Agent also connects via TCP connection to IDE. Agent and IDE communicate over this connections during playback (IDE sends instructions to Agent and receives results) and recording (Agent notifies IDE about recorded actions).

Test scripts are written in RIAScript language. RIAScript is a simplified version of ActionScript (with a few minor extensions) - this makes it easy for developers familiar with ActionScript to write test scripts in RIATest.

How RIATest is developed? Najaryan went on:

I can say that RIATest is designed from day one to be a Flex 3 test automation tool and uses test automation framework available in Flex.  RIATest IDE is written in C++ using wxWidgets library. RIATest Agent is developed in Flex 3.

Since there are other test tools available, infoQ asked Najaryan to compare RIATest to tools such as FlexUnit:

RIATest being a GUI test automation tool is a companion to other testing approaches such as unit testing. Naturally best quality assurance results are achieved when several different approaches for test automation are employed, including GUI automated testing and unit testing.

On testing connectivity such as HTTP request and SOAP connection:

Having built-in facility to synchronize automatically or manually on specific conditions RIATest is fully capable of automating applications that communicate with remote data sources. The 'waitfor' operator allows QA engineer to synchronize operation of test script with desirable state of components of Application Under Test.

In the end, Najaryan provided a code example to show what the test script looks like:

RIATest Script

FunFX by Aslak Hellesøy Posted Mar 11, 2008 12:55 PM
Re: FunFX by Tigran Najaryan Posted Mar 12, 2008 2:51 AM
RIATest for Flex 2 applications by Abhelaksh Thakur Posted Jul 9, 2008 4:42 PM
Re: RIATest for Flex 2 applications by Girish Hanchinal Posted Jun 2, 2009 4:50 AM
  1. Back to top

    FunFX

    Mar 11, 2008 12:55 PM by Aslak Hellesøy

    It's great to see more functional testing tools for Flex. There is also a similar tool - FunFX. It would be interesting to see a comparison of the two. I know that FunFX has an uncommitted patch that makes it work on OS X too. Does anyone know how far RIATest is from supporting OS X?

  2. Back to top

    Re: FunFX

    Mar 12, 2008 2:51 AM by Tigran Najaryan

    We are currently looking at the OS X options. It is likely that we will introduce an OS X test runner in the near future (with tests created using RIATest IDE under Windows). Full-featured RIATest IDE for OS X is not impossible either. We invite parties interested in OS X version to let us know about it (use this link: riatest.com/feature-request.html)

  3. Back to top

    RIATest for Flex 2 applications

    Jul 9, 2008 4:42 PM by Abhelaksh Thakur

    I have sent many emails to your support team but no response as yet.

    I am evaluating RIATest to test a Flex 2 application. I get the following error

    unknown configuration variable 'inc...s\RIATest\agent\RIATestAgent2.swc'

    when I type in the following line into the Flex Compiler > Additional compiler settings

    -include-libraries"C:\Program Files\RIATest\agent\RIATestAgent2.swc" "C:\Program Files\Adobe\Flex Builder 3\sdks\2.0.1\frameworks\locale\en_US\automation_rb.swc" "C:\Program Files\Adobe\Flex Builder 3\sdks\2.0.1\frameworks\libs\automation.swc" "C:\Program Files\Adobe\Flex Builder 3\sdks\3.0.0\frameworks\libs\2.0.1.automation_swcs\automation_agent.swc" "C:\Program Files\Adobe\Flex Builder 3\sdks\3.0.0\frameworks\libs\2.0.1.automation_swcs\automation_agent_rb.swc"

    I think the reason for the error is that the following files are missing from the Flex 3 directory:

    1. C:\Program Files\Adobe\Flex Builder 3\sdks\3.0.0\frameworks\libs\2.0.1.automation_swcs\automation_agent.swc
    2. C:\Program Files\Adobe\Flex Builder 3\sdks\3.0.0\frameworks\libs\2.0.1.automation_swcs\automation_agent_rb.swc

    Kindly advise me how to get around this problem.

    thanks,

    Abhelaksh Thakur
    Asolva Inc.

  4. Back to top

    Re: RIATest for Flex 2 applications

    Jun 2, 2009 4:50 AM by Girish Hanchinal

    Hi Abhelaksh,

    You have the answer with yourself. Make sure the files are present in the location you specify. Its not necessary that you keep those files in the same mentioned location.

    Hope you are aware where to find those files.

    Hope this helps.

    -Girish

Educational Content

Brian Marick on 4 Challenges and 5 Guiding Values of Agile Software Development

Brian Marick takes us through a quick tour of the most important values and challenges to adopting Agile successfully (they aren't the typical challenges and values we hear in the community).

Are You a Software Architect?

The line between development and architecture is tricky. Does it exist at all? Is an ivory tower actually needed? There's a balance in the middle, but how do you move from developer to architect?

Agile – A Way of Life and Pragmatic Use of Authority

The word 'authority' sometimes produces an allergic response in hard-line agilists. Freedom and authority – both are bad if misused and both are good if used in right spirit for a noble cause.

Getting Started with Grails, Second Edition

"Getting Started with Grails" brings you up to speed on this modern web framework. Companies as varied as LinkedIn, Wired, and Taco Bell are all using Grails. Are you ready to get started as well?

Using ITIL V3 as a Foundation for SOA Governance

Those familiar with only ITIL V2 often scoff at the thought that ITIL could serve as a governance framework for SOA. With ITIL V3, the focus of the framework shifted towards service-orientation.

Adrian Colyer on AspectJ, tc Server and dm Server

SpringSource CTO Adrian Colyer discusses AspectJ, SpringSource's dm Server and tc Server products, OSGi and Scrum.

Adam Wiggins on Heroku

Heroku's Adam Wiggins talks about Rails, Background Jobs, Add-Ons, Ruby, and how Heroku manages to work around Ruby's inefficiencies using Erlang and other languages.

SOA as an Architectural Pattern: Best Practices in Software Architecture

For Grady Booch the foundation of a good architecture is patterns, SOA being just one of many patterns. In this Second Life presentation, Booch attempts to bring more clarity on what architecture is.