rutema 0.6.3 → 0.6.4

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.6.4 / 2008-03-30
2
+ * Bugfix: duration SQL type adjusted in the model to return proper values.
3
+ * Bugfix: name=step_type for TestStep so that name is assigned a value in the model step
4
+ * Locked the Ramaze version to 0.3.5 until we find out why the new version breaks us
1
5
  == 0.6.3 / 2008-03-26
2
6
  * Bugfix: specifying a .spec filename on the commandline did not work - Path expanded before changing directory.
3
7
  * Bugfix: running an attended .spec on it's own was not possible - attended mode is now set for single runs.
data/README.txt CHANGED
@@ -3,7 +3,7 @@ rutema http://patir.rubyforge.org/rutema
3
3
  == DESCRIPTION:
4
4
  rutema is a test execution tool with a twist.
5
5
  It allows you to combine test tools while it takes care of logging, reporting, archiving of results and formalizes execution of automated and manual tests.
6
- It's purpose is to provide a set of classes and a framework that will allow testers to specify and execute tests in heterogeneous testing environments.
6
+ It's purpose is to make testing in heterogeneous environments easier.
7
7
 
8
8
  For more information look at http://patir.rubyforge.org/rutema
9
9
  == FEATURES/PROBLEMS:
@@ -93,4 +93,6 @@ You can redistribute it and/or modify it under either the terms of the GPL
93
93
  == CREDITS
94
94
  RutemaWeb uses icons from
95
95
  Fast Icon (Dirceu Veiga)
96
- Homepage: http://www.fasticon.com
96
+ Homepage: http://www.fasticon.com
97
+ The page design used is an adaptation of RedTie, a design found in www.oswd.org
98
+ Homepage: http://www.oswd.org/design/preview/id/3699
data/Rakefile CHANGED
@@ -20,7 +20,7 @@ Hoe.new('rutema', "#{Rutema::Version::STRING}") do |p|
20
20
  p.extra_deps<<['activerecord']
21
21
  p.extra_deps<<['ruport']
22
22
  p.extra_deps<<['acts_as_reportable']
23
- p.extra_deps<<['ramaze']
23
+ p.extra_deps<<['ramaze',"=0.3.5"]
24
24
  p.extra_deps<<['erubis']
25
25
  p.spec_extras={:executables=>["rutemax","rutemah","rutemaweb"],
26
26
  :default_executable=>"rutemax"}
data/bin/rutemaweb CHANGED
File without changes
data/lib/rutema/model.rb CHANGED
@@ -42,7 +42,7 @@ module Rutema
42
42
  t.column :status, :string,:null=>false
43
43
  t.column :output, :text
44
44
  t.column :error, :text
45
- t.column :duration, :time
45
+ t.column :duration, :decimal
46
46
  end
47
47
 
48
48
  create_table :parse_errors do |t|
@@ -57,7 +57,7 @@ module Rutema
57
57
  end
58
58
  scenario.step_states.each do |number,step|
59
59
  st=Model::Step.new
60
- st.name=step[:step_type]
60
+ st.name=step[:name]
61
61
  st.number=number
62
62
  st.status=step[:status].to_s
63
63
  st.output=step[:output]
@@ -152,6 +152,9 @@ module Rutema
152
152
  @attributes[:step_type]="step"
153
153
  end
154
154
 
155
+ def name
156
+ return @attributes[:step_type]
157
+ end
155
158
  def output
156
159
  return "" unless @attributes[:cmd]
157
160
  return @attributes[:cmd].output
data/lib/rutema/system.rb CHANGED
@@ -16,7 +16,7 @@ module Rutema
16
16
  module Version
17
17
  MAJOR=0
18
18
  MINOR=6
19
- TINY=3
19
+ TINY=4
20
20
  STRING=[ MAJOR, MINOR, TINY ].join( "." )
21
21
  end
22
22
  #Is raised when an error is found in a specification
@@ -193,16 +193,18 @@ module Rutema
193
193
  # <prompt text="Do you want fries with that?"/>
194
194
  class MinimalXMLParser<ExtensibleXMLParser
195
195
  def element_echo step
196
- step.cmd=Patir::RubyCommand.new("echo"){|cmd| cmd.output="#{step.text}";$stdout.puts(cmd.output) ;:success}
196
+ step.cmd=Patir::RubyCommand.new("echo"){|cmd| cmd.error="";cmd.output="#{step.text}";$stdout.puts(cmd.output) ;:success}
197
197
  end
198
198
  def element_prompt step
199
199
  step.attended=true
200
200
  step.cmd=Patir::RubyCommand.new("prompt") do |cmd|
201
201
  cmd.output=""
202
202
  cmd.error=""
203
- if HighLine.new.agree("#{step.text}?")
203
+ if HighLine.new.agree("#{step.text}")
204
+ step.output="y"
204
205
  :success
205
206
  else
207
+ step.error="n"
206
208
  :error
207
209
  end#if
208
210
  end#do rubycommand
@@ -1,6 +1,7 @@
1
1
  $:.unshift File.join(File.dirname(__FILE__),"..")
2
2
  require 'rutema/system'
3
3
  require 'rubygems'
4
+ gem 'ramaze',"=0.3.5"
4
5
  require 'patir/base'
5
6
 
6
7
  def start_ramaze
File without changes
File without changes
File without changes
File without changes
@@ -2,6 +2,6 @@
2
2
  <title>T003</title>
3
3
  <description>A prompt</description>
4
4
  <scenario attended="true">
5
- <prompt>Are you there</prompt>
5
+ <prompt>Are you there?</prompt>
6
6
  </scenario>
7
7
  </specification>
@@ -2,6 +2,6 @@
2
2
  <title>T004</title>
3
3
  <description>An implicitly attended test</description>
4
4
  <scenario>
5
- <prompt>Are you (implicitly) there</prompt>
5
+ <prompt>Are you (implicitly) there?</prompt>
6
6
  </scenario>
7
7
  </specification>
@@ -19,7 +19,7 @@ module TestRutema
19
19
  step=Rutema::TestStep.new("test step",DummyCommand.new())
20
20
  assert(!step.attended?, "attended?")
21
21
  assert_not_equal("dummy", step.name)
22
- assert_equal("", step.name)
22
+ assert_equal("step", step.name)
23
23
  assert_equal("output", step.output)
24
24
  assert_equal("error", step.error)
25
25
  assert_equal(:not_executed, step.status)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rutema
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.3
4
+ version: 0.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vassilis Rizopoulos
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-03-26 00:00:00 +01:00
12
+ date: 2008-03-29 23:00:00 +01:00
13
13
  default_executable: rutemax
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -71,9 +71,9 @@ dependencies:
71
71
  version_requirement:
72
72
  version_requirements: !ruby/object:Gem::Requirement
73
73
  requirements:
74
- - - ">="
74
+ - - "="
75
75
  - !ruby/object:Gem::Version
76
- version: "0"
76
+ version: 0.3.5
77
77
  version:
78
78
  - !ruby/object:Gem::Dependency
79
79
  name: erubis
@@ -93,7 +93,7 @@ dependencies:
93
93
  - !ruby/object:Gem::Version
94
94
  version: 1.5.1
95
95
  version:
96
- description: "== DESCRIPTION: rutema is a test execution tool with a twist. It allows you to combine test tools while it takes care of logging, reporting, archiving of results and formalizes execution of automated and manual tests. It's purpose is to provide a set of classes and a framework that will allow testers to specify and execute tests in heterogeneous testing environments. For more information look at http://patir.rubyforge.org/rutema == FEATURES/PROBLEMS: * Unified test execution environment for automated and manual tests * Extensible reports and notifications in various formats (email, rss, pdf, html etc.) * Web frontend and command line report generation tools for browsing the test results database * Comprehensive history of test execution * A well defined way to create a project specific test specification format == SYNOPSIS: See http://patir.rubyforge.org/rutema/distro_test.html for an introductory example. == REQUIREMENTS: * patir (http://patir.rubyforge.org) * mailfactory (http://rubyforge.org/projects/mailfactory/) * activerecord (http://ar.rubyonrails.com/) * sqlite3 (http://rubyforge.org/projects/sqlite-ruby/) * ramaze (http://www.ramaze.net/) * ruport (http://rubyreports.org/) * acts_as_reportable == INSTALL: * gem install rutema"
96
+ description: "== DESCRIPTION: rutema is a test execution tool with a twist. It allows you to combine test tools while it takes care of logging, reporting, archiving of results and formalizes execution of automated and manual tests. It's purpose is to make testing in heterogeneous environments easier. For more information look at http://patir.rubyforge.org/rutema == FEATURES/PROBLEMS: * Unified test execution environment for automated and manual tests * Extensible reports and notifications in various formats (email, rss, pdf, html etc.) * Web frontend and command line report generation tools for browsing the test results database * Comprehensive history of test execution * A well defined way to create a project specific test specification format == SYNOPSIS: See http://patir.rubyforge.org/rutema/distro_test.html for an introductory example. == REQUIREMENTS: * patir (http://patir.rubyforge.org) * mailfactory (http://rubyforge.org/projects/mailfactory/) * activerecord (http://ar.rubyonrails.com/) * sqlite3 (http://rubyforge.org/projects/sqlite-ruby/) * ramaze (http://www.ramaze.net/) * ruport (http://rubyreports.org/) * acts_as_reportable == INSTALL: * gem install rutema"
97
97
  email: riva@braveworld.net
98
98
  executables:
99
99
  - rutemax
@@ -180,7 +180,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
180
180
  requirements: []
181
181
 
182
182
  rubyforge_project: patir
183
- rubygems_version: 1.0.1
183
+ rubygems_version: 1.1.0
184
184
  signing_key:
185
185
  specification_version: 2
186
186
  summary: rutema is a test execution and management framework for heterogeneous testing environments