selenium-connect 2.2.0 → 2.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +5 -0
- data/lib/selenium-connect.rb +7 -2
- data/selenium-connect.gemspec +2 -2
- data/spec/acceptance/sauce_spec.rb +2 -1
- metadata +4 -4
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
#2.3.0 (2013-07-12)
|
2
|
+
- removed debug information from the sauce_spec
|
3
|
+
- Bumped version to 2.3.0 to prepare for release.
|
4
|
+
- SeleniumConnect.finish now returns a hash of arbitrary data, which at this time contains sauce labs job information, for those runs
|
5
|
+
|
1
6
|
#2.2.0 (2013-07-08)
|
2
7
|
- Bumped version to 2.2.0 to prepare for release.
|
3
8
|
- updated tests and log namming to account for possible parallel usage
|
data/lib/selenium-connect.rb
CHANGED
@@ -38,15 +38,20 @@ module SeleniumConnect
|
|
38
38
|
end
|
39
39
|
|
40
40
|
def finish
|
41
|
+
# TODO this should grow into a standardized artifact returned
|
42
|
+
# by the driver
|
43
|
+
return_data = {}
|
41
44
|
begin
|
42
45
|
driver.quit
|
43
|
-
fetch_logs if config.host == 'saucelabs'
|
46
|
+
return_data = fetch_logs if config.host == 'saucelabs'
|
44
47
|
# rubocop:disable HandleExceptions
|
45
48
|
rescue Selenium::WebDriver::Error::WebDriverError
|
46
49
|
# rubocop:enable HandleExceptions
|
47
50
|
# no-op
|
48
51
|
end
|
49
52
|
server.stop if localhost?
|
53
|
+
|
54
|
+
return_data
|
50
55
|
end
|
51
56
|
|
52
57
|
def fetch_logs
|
@@ -71,7 +76,7 @@ module SeleniumConnect
|
|
71
76
|
File.open(log_file, 'w') do |log|
|
72
77
|
log.write response
|
73
78
|
end
|
74
|
-
|
79
|
+
{ sauce_job: sauce_job }
|
75
80
|
end
|
76
81
|
|
77
82
|
alias_method :start, :run
|
data/selenium-connect.gemspec
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'selenium-connect'
|
3
|
-
s.version = '2.
|
3
|
+
s.version = '2.3.0'
|
4
4
|
s.platform = Gem::Platform::RUBY
|
5
5
|
s.authors = ['Dave Haeffner', 'Jason Fox']
|
6
6
|
s.email = ['dave@arrgyle.com', 'jason@arrgyle.com']
|
7
7
|
s.homepage = 'https://github.com/arrgyle/selenium-connect'
|
8
8
|
s.summary = 'A stupid simple way to run your Selenium tests on localhost, against a Selenium Grid, or in the cloud (e.g. SauceLabs).'
|
9
|
-
s.description = '
|
9
|
+
s.description = 'Added return data to a finish call to pass back relevent job details'
|
10
10
|
s.license = 'MIT'
|
11
11
|
|
12
12
|
s.files = `git ls-files`.split($/)
|
@@ -19,8 +19,9 @@ describe 'Sauce Labs', selenium: true do
|
|
19
19
|
driver.get 'http://google.com'
|
20
20
|
driver.title.should include('Google')
|
21
21
|
id = driver.session_id
|
22
|
-
SeleniumConnect.finish
|
22
|
+
data = SeleniumConnect.finish
|
23
23
|
File.exist?(File.join(Dir.pwd, 'build', 'tmp', "sauce_job_#{id}.log")).should be_true
|
24
|
+
data.empty?.should be_false
|
24
25
|
end
|
25
26
|
|
26
27
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: selenium-connect
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.3.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-07-
|
13
|
+
date: 2013-07-12 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: selenium-webdriver
|
@@ -92,7 +92,7 @@ dependencies:
|
|
92
92
|
- - ~>
|
93
93
|
- !ruby/object:Gem::Version
|
94
94
|
version: 0.9.0
|
95
|
-
description:
|
95
|
+
description: Added return data to a finish call to pass back relevent job details
|
96
96
|
email:
|
97
97
|
- dave@arrgyle.com
|
98
98
|
- jason@arrgyle.com
|
@@ -156,7 +156,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
156
156
|
version: '0'
|
157
157
|
segments:
|
158
158
|
- 0
|
159
|
-
hash:
|
159
|
+
hash: 592273692965868662
|
160
160
|
requirements: []
|
161
161
|
rubyforge_project:
|
162
162
|
rubygems_version: 1.8.25
|