saucelabs-adapter 0.8.3 → 0.8.4
Sign up to get free protection for your applications and to get access to all the features.
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.8.
|
1
|
+
0.8.4
|
@@ -36,10 +36,12 @@ module SaucelabsAdapter
|
|
36
36
|
:pageLoadTimeout => "60",
|
37
37
|
:suppressCacheBuster => (@selenium_config.selenium_server_address == 'saucelabs.com').to_s
|
38
38
|
}
|
39
|
-
jsunit_params.
|
39
|
+
jsunit_params = default_jsunit_params.merge(jsunit_params)
|
40
40
|
|
41
41
|
test_url = "/jsunit/javascripts/jsunit/jsunit/testRunner.html?" + jsunit_params.map { |k,v| "#{k}=#{v}" }.join("&")
|
42
|
-
|
42
|
+
if @selenium_config.jsunit_polling_interval_seconds
|
43
|
+
options = {:polling_interval => @selenium_config.jsunit_polling_interval_seconds}.merge(options)
|
44
|
+
end
|
43
45
|
run_suite(@selenium_driver, test_url, options)
|
44
46
|
end
|
45
47
|
|
@@ -82,7 +84,7 @@ module SaucelabsAdapter
|
|
82
84
|
:timeout_in_seconds => 1200,
|
83
85
|
:polling_interval => 5
|
84
86
|
}
|
85
|
-
options.
|
87
|
+
options = default_options.merge(options)
|
86
88
|
|
87
89
|
selenium_driver.open(suite_path)
|
88
90
|
|
@@ -129,6 +129,9 @@ module SaucelabsAdapter
|
|
129
129
|
errors << require_attributes([:tunnel_password, :tunnel_keyfile],
|
130
130
|
:when => "when tunnel_method is :sshtunnel",
|
131
131
|
:any_or_all => :any)
|
132
|
+
if tunnel_keyfile && !File.exist?(File.expand_path(tunnel_keyfile))
|
133
|
+
errors << "tunnel_keyfile '#{tunnel_keyfile}' does not exist"
|
134
|
+
end
|
132
135
|
else
|
133
136
|
errors << "Unknown tunnel_method: #{tunnel_method}"
|
134
137
|
end
|
@@ -149,7 +152,8 @@ module SaucelabsAdapter
|
|
149
152
|
:when => "",
|
150
153
|
:any_or_all => :all
|
151
154
|
}
|
152
|
-
options.
|
155
|
+
options = default_options.merge(options)
|
156
|
+
|
153
157
|
errors = []
|
154
158
|
names.each do |attribute|
|
155
159
|
errors << "#{attribute} is required #{options[:when]}" if send(attribute).nil?
|
@@ -168,4 +172,4 @@ module SaucelabsAdapter
|
|
168
172
|
}
|
169
173
|
end
|
170
174
|
end
|
171
|
-
end
|
175
|
+
end
|
@@ -17,7 +17,11 @@ module SaucelabsAdapter
|
|
17
17
|
return
|
18
18
|
# just return; tunnel is all in transient memory, and we don't want to hang or abort the whole test suite anyway
|
19
19
|
# This could potentially be a problem when opening an SshTunnel multiple times during a single interpreter, but we'll see...
|
20
|
+
# if @gateway
|
21
|
+
# say "Shutting down ssh reverse tunnel"
|
22
|
+
# @gateway.close(@port) if @port
|
23
|
+
# @gateway.shutdown! if @gateway
|
24
|
+
# end
|
20
25
|
end
|
21
|
-
|
22
26
|
end
|
23
27
|
end
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 8
|
8
|
-
-
|
9
|
-
version: 0.8.
|
8
|
+
- 4
|
9
|
+
version: 0.8.4
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Kelly Felkins, Chad Woolley & Sam Pierson
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-
|
17
|
+
date: 2010-04-13 00:00:00 -07:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|