TestGen4Ruby (tg4rb) 0.0.2 Released


#1

Here’s my Google Summer of Code offspring!!! =D If you find any
problem with the code or the documentation, please send an email to
the tg4rb mailing list or post an issue in our issue tracker. I’m off
to Peru today, so I might not check email too often, but I’ll try my
best to keep up. Enjoy!

FEATURES:

  • takes an XML with actions from tg4w and outputs stand-alone Ruby
    code that can be run directly or embedded into existing code (e.g. for
    test automation).
  • can be used as a library or as an executable script.
  • takes the xpath from tg4w and uses only enough info to guarantee the
    uniqueness of the referenced element, allowing the generated script to
    keep working even with some change to page structure.

PROBLEMS:

  • the generated code is damn ugly.
  • a few action types from the XML input still aren’t recognized.
  • some dependencies aren’t very clearly sorted out yet. you might find
    you need something that is not specified. if yes, please report this
    as an issue in our issue tracker.
  • i don’t know, try to find more and let me know =)

SYNOPSIS:

Changes:

0.0.2 / 2007-07-09

  • fixed silly import problem on generated script

0.0.1 / 2007-07-09

  • Birthday

#2

Tomas P. pointed out that the release doesn’t really say what
TestGen4Ruby does. Sorry about that. :slight_smile:

TestGen4Web (http://developer.spikesource.com/wiki/index.php?
title=Projects:TestGen4Web) is a Firefox extension that records user
action on a webpage and records them into an XML file.

TestGen4Ruby (what is being released here) takes that files and
translates those actions into executable code that uses the library
FireWatir.

FireWatir (http://code.google.com/p/firewatir) provides a way to
control an instance of Firefox through code like
ff.button(:name,“foo”).click.

There are more detailed instructions and a little tutorial for
TestGen4Ruby at http://code.google.com/p/tg4rb . Hope that helps.
Thanks for the feedback Tomas :slight_smile: