mini_autobot 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mini_autobot/parallel.rb +2 -2
- data/lib/mini_autobot/utils/page_object_helper.rb +7 -9
- data/lib/mini_autobot/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dacd23d8eebdf65fb0549156286f4460824205bd
|
4
|
+
data.tar.gz: d94478218460de224b13010fd35ee19618e1f2f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b299c7dcced9df5673e64c56a8414146999e9c7a014294b8135f37e011ef1ee40445b96baaff278b2c92c7bd21bf54fecfe22d02424d43c7b45f6782bcb7c975
|
7
|
+
data.tar.gz: aae3e5b7633174273c964b7a4d3c99ea1790b91611a2270741f6bb595f5a3b8d19e04d5bdcf3aeca64e4bff889fe0d5c92eae18b4d0775117dceef94da36926b
|
@@ -27,9 +27,9 @@ module MiniAutobot
|
|
27
27
|
@platform.include?('osx')
|
28
28
|
end
|
29
29
|
|
30
|
-
# remove all results files under logs/tap_results/
|
30
|
+
# remove all results files under logs/tap_results/ if there's any
|
31
31
|
def clean_result!
|
32
|
-
|
32
|
+
FileUtils.rm_rf(Dir.glob('logs/tap_results/*')) unless Dir.glob('logs/tap_results/*').empty?
|
33
33
|
puts "Cleaning result files.\n"
|
34
34
|
end
|
35
35
|
|
@@ -62,7 +62,7 @@ module MiniAutobot
|
|
62
62
|
print_sauce_link if connector_is_saucelabs?
|
63
63
|
end
|
64
64
|
begin
|
65
|
-
|
65
|
+
update_sauce_session if connector_is_saucelabs? && !@driver.nil?
|
66
66
|
self.logger.debug "Finished setting saucelabs session name for #{name()}"
|
67
67
|
rescue
|
68
68
|
self.logger.debug "Failed setting saucelabs session name for #{name()}"
|
@@ -86,10 +86,9 @@ module MiniAutobot
|
|
86
86
|
end
|
87
87
|
end
|
88
88
|
|
89
|
-
#
|
90
|
-
|
91
|
-
|
92
|
-
# where are we parsing info from run command to in the code?
|
89
|
+
# Update SauceLabs session(job) name
|
90
|
+
# Update session(job) status if test is not skipped
|
91
|
+
def update_sauce_session
|
93
92
|
connector = MiniAutobot.settings.connector # eg. saucelabs:phu:win7_ie11
|
94
93
|
overrides = connector.to_s.split(/:/)
|
95
94
|
new_tags = overrides[2]+"_by_"+overrides[1]
|
@@ -107,10 +106,9 @@ module MiniAutobot
|
|
107
106
|
require 'json'
|
108
107
|
session_id = @driver.session_id
|
109
108
|
http_auth = "https://#{username}:#{access_key}@saucelabs.com/rest/v1/#{username}/jobs/#{session_id}"
|
110
|
-
|
111
|
-
body
|
112
|
-
|
113
|
-
RestClient.put(http_auth, body, {:content_type => "application/json"})
|
109
|
+
body = { "name" => name(), "tags" => [new_tags] }
|
110
|
+
body["passed"] = passed? unless skipped?
|
111
|
+
RestClient.put(http_auth, body.to_json, {:content_type => "application/json"})
|
114
112
|
end
|
115
113
|
|
116
114
|
def connector_is_saucelabs?
|
data/lib/mini_autobot/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mini_autobot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ripta Pasay
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2015-
|
13
|
+
date: 2015-09-02 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activesupport
|
@@ -291,7 +291,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
291
291
|
version: '0'
|
292
292
|
requirements: []
|
293
293
|
rubyforge_project:
|
294
|
-
rubygems_version: 2.
|
294
|
+
rubygems_version: 2.4.6
|
295
295
|
signing_key:
|
296
296
|
specification_version: 4
|
297
297
|
summary: Web automation framework on minitest, selenium webdriver, and page objects.
|