# TestGen4Ruby (tg4rb) 0.0.2 Released

**URL:** <https://www.ruby-forum.com/t/testgen4ruby-tg4rb-0-0-2-released/109071>\
**Category:** Ruby\
**Created:** [July 11, 2007, 9:58am UTC](https://www.ruby-forum.com/t/testgen4ruby-tg4rb-0-0-2-released/109071 "2007-07-11T09:58:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![helder](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/9e8a1a/32.png) [@helder](https://www.ruby-forum.com/u/helder)\
**Post date:** [July 11, 2007, 9:58am UTC](https://www.ruby-forum.com/t/testgen4ruby-tg4rb-0-0-2-released/109071/1 "2007-07-11T09:58:07Z")

</div>

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!

- 
- \<([Google Code Archive - Long-term storage for Google Code Project Hosting.](http://code.google.com/p/tg4rb))\>

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

- 
- \<([Google Code Archive - Long-term storage for Google Code Project Hosting.](http://code.google.com/p/tg4rb))\>

---

<div class="post-metadata">

**Author:** ![helder](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/9e8a1a/32.png) [@helder](https://www.ruby-forum.com/u/helder)\
**Post date:** [July 11, 2007, 8:01pm UTC](https://www.ruby-forum.com/t/testgen4ruby-tg4rb-0-0-2-released/109071/2 "2007-07-11T20:01:10Z")

</div>

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

TestGen4Web ([http://developer.spikesource.com/wiki/index.php](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 ([Google Code Archive - Long-term storage for Google Code Project Hosting.](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 [Google Code Archive - Long-term storage for Google Code Project Hosting.](http://code.google.com/p/tg4rb) . Hope that helps.  
Thanks for the feedback Tomas 🙂
