qa_robusta 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +2 -0
- data/Manifest.txt +0 -1
- data/Rakefile +1 -0
- data/common/Rakefile +1 -1
- data/common/lib/gen_suite_doc.rb +2 -1
- data/common/lib/monkey_patch.rb +2 -3
- data/common/lib/navigate_mech.rb +2 -1
- data/lib/monkey_patch.rb +2 -2
- data/lib/qa_robusta.rb +1 -1
- data/mechanize_interface/test/lib/mech_unit_test.rb +2 -1
- data/qa_observer/lib/system_test.rb +9 -2
- data/qa_observer/test_runner.rb +2 -1
- data/remote_unix/lib/requires.rb +2 -1
- metadata +17 -7
- data/common/lib/gem_helpers.rb +0 -29
data/History.txt
CHANGED
data/Manifest.txt
CHANGED
data/Rakefile
CHANGED
data/common/Rakefile
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
require 'fileutils'
|
2
2
|
|
3
3
|
require 'rubygems'
|
4
|
+
require 'localized_gems'
|
4
5
|
require 'platform_helpers'
|
5
6
|
#require 'archive/tar/minitar'
|
6
7
|
#require 'zlib'
|
7
8
|
|
8
9
|
base_dir = File.expand_path(File.dirname(__FILE__))
|
9
10
|
require "#{base_dir}/lib/monkey_patch"
|
10
|
-
require "#{base_dir}/lib/gem_helpers"
|
11
11
|
|
12
12
|
namespace :doc do
|
13
13
|
|
data/common/lib/gen_suite_doc.rb
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
GEN_BASE_DIR = File.expand_path(File.dirname(__FILE__))
|
2
2
|
|
3
3
|
require "#{GEN_BASE_DIR}/../../qa_observer/lib/doc"
|
4
|
-
require
|
4
|
+
require 'rubygems'
|
5
|
+
require 'localized_gems'
|
5
6
|
GemHelpers.update_gem_path "#{GEN_BASE_DIR}/../gems/installed"
|
6
7
|
require 'faster_csv'
|
7
8
|
require 'hpricot'
|
data/common/lib/monkey_patch.rb
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
base = File.expand_path(File.dirname(__FILE__))
|
2
|
-
|
3
|
-
|
4
|
-
require "#{base}/../lib/gem_helpers"
|
2
|
+
require 'rubygems'
|
3
|
+
require 'localized_gems'
|
5
4
|
GemHelpers.update_gem_path "#{base}/gems/installed"
|
6
5
|
require 'yaml'
|
7
6
|
require 'fileutils'
|
data/common/lib/navigate_mech.rb
CHANGED
data/lib/monkey_patch.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
base = File.expand_path(File.dirname(__FILE__))
|
2
|
-
|
2
|
+
require 'rubygems'
|
3
3
|
#require 'archive/tar/minitar'
|
4
|
-
require
|
4
|
+
require 'localized_helpers'
|
5
5
|
GemHelpers.update_gem_path "#{base}/../common/gems/installed"
|
6
6
|
require 'yaml'
|
7
7
|
require 'fileutils'
|
data/lib/qa_robusta.rb
CHANGED
@@ -2,7 +2,8 @@ base_dir = File.expand_path(File.dirname(__FILE__))
|
|
2
2
|
require 'yaml'
|
3
3
|
require 'pstore'
|
4
4
|
require "#{base_dir}/doc"
|
5
|
-
require
|
5
|
+
require 'rubygems'
|
6
|
+
require 'localized_gems'
|
6
7
|
GemHelpers.update_gem_path "#{$qa_observer_client}/../common/gems/installed"
|
7
8
|
require 'platform_helpers'
|
8
9
|
require 'capture_io'
|
@@ -104,7 +105,13 @@ class SystemTest < MiniTest::Unit::TestCase
|
|
104
105
|
$sequence = 0
|
105
106
|
unless @no_browser
|
106
107
|
if Constants::SUPPORTED_BROWSERS.include?($run_on_browser)
|
107
|
-
|
108
|
+
retry_ct = 0
|
109
|
+
begin
|
110
|
+
$browser = Watir::Browser.new $run_on_browser.to_sym
|
111
|
+
rescue => e
|
112
|
+
retry_ct += 1
|
113
|
+
retry if retry_ct < 4
|
114
|
+
end
|
108
115
|
else
|
109
116
|
raise ArgumentError, "Unsuppored browser provided: #{$run_on_browser}"
|
110
117
|
end
|
data/qa_observer/test_runner.rb
CHANGED
data/remote_unix/lib/requires.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
base_dir = File.expand_path(File.dirname(__FILE__))
|
2
2
|
require 'fileutils'
|
3
|
-
require
|
3
|
+
require 'rubygems'
|
4
|
+
require 'localized_gems'
|
4
5
|
require 'time'
|
5
6
|
require 'find'
|
6
7
|
GemHelpers.update_gem_path "#{base_dir}/../../common/gems/installed"
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: qa_robusta
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.1.
|
5
|
+
version: 0.1.4
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Cliff Cyphers
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-10-
|
13
|
+
date: 2011-10-04 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: platform_helpers
|
@@ -24,27 +24,38 @@ dependencies:
|
|
24
24
|
type: :runtime
|
25
25
|
version_requirements: *id001
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
|
-
name:
|
27
|
+
name: localized_gems
|
28
28
|
prerelease: false
|
29
29
|
requirement: &id002 !ruby/object:Gem::Requirement
|
30
|
+
none: false
|
31
|
+
requirements:
|
32
|
+
- - "="
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: 0.1.1
|
35
|
+
type: :runtime
|
36
|
+
version_requirements: *id002
|
37
|
+
- !ruby/object:Gem::Dependency
|
38
|
+
name: rubigen
|
39
|
+
prerelease: false
|
40
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
30
41
|
none: false
|
31
42
|
requirements:
|
32
43
|
- - ">="
|
33
44
|
- !ruby/object:Gem::Version
|
34
45
|
version: "0"
|
35
46
|
type: :runtime
|
36
|
-
version_requirements: *
|
47
|
+
version_requirements: *id003
|
37
48
|
- !ruby/object:Gem::Dependency
|
38
49
|
name: hoe
|
39
50
|
prerelease: false
|
40
|
-
requirement: &
|
51
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
41
52
|
none: false
|
42
53
|
requirements:
|
43
54
|
- - ~>
|
44
55
|
- !ruby/object:Gem::Version
|
45
56
|
version: "2.12"
|
46
57
|
type: :development
|
47
|
-
version_requirements: *
|
58
|
+
version_requirements: *id004
|
48
59
|
description: |-
|
49
60
|
QA Robusta is an automation framework easing pain points away from automation test case writers. How is pain relieved?
|
50
61
|
|
@@ -181,7 +192,6 @@ files:
|
|
181
192
|
- common/lib/update_element.rb
|
182
193
|
- common/lib/cache.rb
|
183
194
|
- common/lib/array.rb
|
184
|
-
- common/lib/gem_helpers.rb
|
185
195
|
- common/lib/gen_suite_doc.rb
|
186
196
|
- common/lib/constants.rb
|
187
197
|
- lib/monkey_patch.rb
|
data/common/lib/gem_helpers.rb
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
require 'rubygems'
|
2
|
-
require 'find'
|
3
|
-
require 'fileutils'
|
4
|
-
|
5
|
-
module GemHelpers
|
6
|
-
def self.update_gem_path(path)
|
7
|
-
Gem.clear_paths
|
8
|
-
ENV['GEM_HOME'] = File.expand_path(path)
|
9
|
-
ENV['GEM_PATH'] = File.expand_path(path)
|
10
|
-
end
|
11
|
-
|
12
|
-
# FIXME: update to handle version
|
13
|
-
def self.is_installed?(gem_install_dir, gem_name)
|
14
|
-
spec = File.basename(gem_name.gsub(/\.gem$/, '.gemspec'))
|
15
|
-
dir = File.expand_path(gem_install_dir)
|
16
|
-
File.exists?("#{dir}/specifications/#{spec}")
|
17
|
-
end
|
18
|
-
|
19
|
-
# TODO once the cross platform gem install is working as expected
|
20
|
-
# copy over to other projects
|
21
|
-
def self.install(gem, install_dir)
|
22
|
-
#unless GemHelpers.is_installed?(install_dir, gem)
|
23
|
-
fork { exec("gem install #{gem} --no-rdoc --no-ri -i #{install_dir}") }
|
24
|
-
Process.wait2
|
25
|
-
FileUtils.chmod_R 0777, install_dir
|
26
|
-
#end
|
27
|
-
end
|
28
|
-
|
29
|
-
end
|