tg4rb 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,4 +1,7 @@
1
- == 1.0.0 / 2007-07-09
1
+ == 0.0.2 / 2007-07-09
2
+ * fixed silly import problem on generated script
3
+
4
+ == 0.0.1 / 2007-07-09
2
5
 
3
6
  * 1 major enhancement
4
7
  * Birthday!
data/README.txt CHANGED
@@ -7,15 +7,22 @@ tg4rb
7
7
  This is a translator from TestGen4Web to FireWatir. TestGen4Web is a Firefox
8
8
  extension that records user actions on websites and outputs them as XML.
9
9
  FireWatir is a library that allows one to programatically control a Firefox
10
- instance. Firewatir-Gen reads XML and outputs Ruby code that uses FireWatir to
10
+ instance. *tg4rb* reads XML and outputs Ruby code that uses FireWatir to
11
11
  reproduce the actions recorded with TestGen4Web.
12
12
 
13
- == FEATURES/PROBLEMS:
13
+ == FEATURES:
14
14
 
15
- * 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)
16
- * can be used as a library or as an executable script
15
+ * 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).
16
+ * can be used as a library or as an executable script.
17
17
  * 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 on page structure.
18
18
 
19
+ == PROBLEMS:
20
+
21
+ * the generated code is damn ugly.
22
+ * a few action types from the XML input still aren't recognized.
23
+ * 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.
24
+ * i don't know, find more and let me know =)
25
+
19
26
  == SYNOPSIS:
20
27
 
21
28
  doc = Document.new(File.read(xml_file))
@@ -27,6 +34,9 @@ reproduce the actions recorded with TestGen4Web.
27
34
  == REQUIREMENTS:
28
35
 
29
36
  * rexml
37
+ * hoe
38
+ * rubyforge
39
+ * rake
30
40
 
31
41
  == INSTALL:
32
42
 
@@ -36,7 +46,7 @@ reproduce the actions recorded with TestGen4Web.
36
46
 
37
47
  == LICENSE:
38
48
 
39
- (The General Public License)
49
+ (GNU General Public License)
40
50
 
41
51
  Copyright (C) 2007 Helder dos Santos Ribeiro
42
52
 
data/lib/tg4rb.rb CHANGED
@@ -2,5 +2,5 @@ $LOAD_PATH.unshift File.dirname(__FILE__)
2
2
  require 'tg4w_handler'
3
3
  require 'tg4w_to_firewatir'
4
4
  class Tg4rb
5
- VERSION='0.0.1'
5
+ VERSION='0.0.2'
6
6
  end
@@ -8,7 +8,7 @@ class Tg4wToFirewatir < Tg4wHandler
8
8
  @output = <<-end
9
9
  require 'rubygems'
10
10
  require 'firewatir'
11
- require 'tg4rb'
11
+ require 'tg4rb_toolbox'
12
12
  include FireWatir
13
13
  include Tg4rbToolbox
14
14
  @ff = Firefox.new
metadata CHANGED
@@ -3,15 +3,15 @@ rubygems_version: 0.9.4
3
3
  specification_version: 1
4
4
  name: tg4rb
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.0.1
7
- date: 2007-07-09 00:00:00 -03:00
6
+ version: 0.0.2
7
+ date: 2007-07-11 00:00:00 -03:00
8
8
  summary: A recorder for FireWatir
9
9
  require_paths:
10
10
  - lib
11
11
  email: helder@gmail.com
12
12
  homepage: " by Helder Ribeiro"
13
13
  rubyforge_project: firewatir-gen
14
- description: "== FEATURES/PROBLEMS: * 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 on page structure. == SYNOPSIS: doc = Document.new(File.read(xml_file)) actions = Tg4wToFirewatir.parse_xml(doc) translator = Tg4wToFirewatir.new(actions) File.open('output.rb','w') {|f| f << translator.translate} == REQUIREMENTS:"
14
+ description: "== 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 on 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, find more and let me know =) == SYNOPSIS:"
15
15
  autorequire:
16
16
  default_executable:
17
17
  bindir: bin