InfoQ

News

RIATest for Flex Released Beta Product

Posted by Moxie Zhang on Mar 11, 2008 08:23 AM

Community
Java
Topics
Rich Internet Apps
Tags
Testing ,
Flex

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

3 comments

Reply

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
  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.

Exclusive Content

Ruby.rewrite(Ruby)

In this RubyFringe talk, Reginald Braithwaite writes Ruby code to read, write, and rewrite Ruby. Demos include extending Ruby with conditional expressions, call-by-name and more.

Book Except and Interview : Aptana RadRails, An IDE for Rails Development

Aptana RadRails: An IDE for Rails Development by Javier Ramírez discusses the latest Aptana RadRails IDE, a development environment for creating Ruby on Rails applications.

Fast Bytecodes for Funny Languages

Cliff Click discusses how to optimize generated bytecode for running on the JVM. Click analyzes and reports on several JVM languages and shows several places where they could increase performance.

Scott Ambler On Agile’s Present and Future

Scott Ambler, Practice Lead for Agile Development at IBM, speaks on the current status of the Agile community and practices having a look at the perspective of the Agile’s future.

Manager's Introduction to Test-Driven Development

Dave Nicolette and Karl Scotland try to introduce non-technical managers to one of the most popular Agile development techniques: Test-Driven Development (TDD).

Structured Event Streaming with Smooks

Smooks is best known for its transformation capabilities, but in this article Tom Fennelly describes how you can also use it for structured event streaming.

How to Work With Business Leaders to Manage Architectural Change

Successful architectures evolve over time to meet changing business requirements. Luke Hohmann presents how to collaborate with key members of your business to manage architectural changes.

Colors and the UI

In this article, Dr. Tobias Komischke explains how colors used in a GUI can influence our interaction with a computer and offers advice on using the appropriate colors for the interface.