scoutui 2.0.3.7.pre → 2.0.3.8.pre

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5d1bde2243f6f7d0ad9afd542006b072fdcd0c98
4
- data.tar.gz: 6306c24279d6787ab6f73cad34262f7de9f0eafe
3
+ metadata.gz: 79994a0d4fd1486ba1b69e52c53818b71ea2e644
4
+ data.tar.gz: aa2f3f32e50bceef913ab4a4dcf9636a00f99a15
5
5
  SHA512:
6
- metadata.gz: 742cc96860a30b60c161c0f718e8379b23ef3a264cff6b06dac9df40d2c101ac13a6b12b481c0bb73b3644c2602eea7a81d585560d52037aa2bd35765e98ce08
7
- data.tar.gz: 059fcb3c7d249019cc58c6181f0a7c9d72f6487da13fb754e64bc4337c2e5e7f4ddb8b4cc949f20578db8da929ec17dc2718cb1837c6bba486396256b86428e8
6
+ metadata.gz: b44ef15a132347af422c4b6305254bf95980d994a65fafef8ef77d7860e6418d97103b5eb9c7d4e2d53f7ad175f3de51193795e6387e35a825a392a67a326e25
7
+ data.tar.gz: 60ebca8ff2beeafe10e75912a02719c0180bfb6646c4058de1d317a93a892051d68d99f8ecf9bb38c1ce5fea786f6676b6c75ca5a98c140b91de5f40e2049bb5
@@ -1,4 +1,4 @@
1
- #!/usr/bin/ruby
1
+ #!/usr/bin/env ruby
2
2
  require_relative '../lib/scoutui'
3
3
 
4
4
  require 'logger'
@@ -153,7 +153,17 @@ module Scoutui::Commands
153
153
  if caps.has_key?(:browser) && caps[:browser].match(/edge/i)
154
154
 
155
155
  Scoutui::Logger::LogMgr.instance.debug __FILE__ + (__LINE__).to_s + " Capabilities[browser] : EDGE"
156
- caps = Selenium::WebDriver::Remote::Capabilities.edge()
156
+
157
+
158
+ # https://support.saucelabs.com/customer/portal/questions/16217472-microsoft-edge-ruby-bindings
159
+ if caps.has_key?(:browserName)
160
+ Scoutui::Logger::LogMgr.instance.debug __FILE__ + (__LINE__).to_s + " Ruby bindings workaround for Edge"
161
+ caps={}
162
+ else
163
+ caps = Selenium::WebDriver::Remote::Capabilities.edge()
164
+ end
165
+
166
+
157
167
  elsif caps.has_key?(:browser) && caps[:browser].match(/chrome/i)
158
168
  caps = Selenium::WebDriver::Remote::Capabilities.chrome()
159
169
  elsif caps.has_key?(:browser) && caps[:browser].match(/firefox/i)
@@ -162,14 +172,13 @@ module Scoutui::Commands
162
172
  caps = Selenium::WebDriver::Remote::Capabilities.internet_explorer()
163
173
  end
164
174
 
165
-
166
175
  tmpCaps.each_pair do |k, v|
167
176
  Scoutui::Logger::LogMgr.instance.debug __FILE__ + (__LINE__).to_s + " caps[#{k.to_s}] = #{v}"
168
177
  caps[k.to_s]=v
169
178
  end
170
179
 
171
180
 
172
- Scoutui::Logger::LogMgr.instance.debug __FILE__ + (__LINE__).to_s + " Remote Caps => #{caps}"
181
+ Scoutui::Logger::LogMgr.instance.debug __FILE__ + (__LINE__).to_s + " Remote Caps => #{caps.to_s}"
173
182
 
174
183
  elsif caps.has_key?(:deviceName) && caps[:deviceName].match(/(iphone|ipad)/i) && !caps[:deviceName].match(/simulator/i)
175
184
  caps = Selenium::WebDriver::Remote::Capabilities.iphone()
@@ -213,8 +222,13 @@ module Scoutui::Commands
213
222
  caps[:name]=Scoutui::Utils::TestUtils.instance.getSauceName()
214
223
  caps[:tags]=[caps[:name], "ScoutUI"]
215
224
 
225
+ if !Scoutui::Utils::TestUtils.instance.getSauceBuild().nil?
226
+ caps[:build] = Scoutui::Utils::TestUtils.instance.getSauceBuild()
227
+ end
228
+
216
229
  begin
217
230
  if client.nil?
231
+ puts __FILE__ + (__LINE__).to_s + " caps => #{caps}"
218
232
  @drv=Selenium::WebDriver.for :remote, :url => sauce_endpoint, :desired_capabilities => caps # setup(caps)
219
233
  else
220
234
  @drv=Selenium::WebDriver.for :remote, :url => sauce_endpoint, :http_client => client, :desired_capabilities => caps # setup(caps)
@@ -200,7 +200,8 @@ module Scoutui::Utils
200
200
  opt.on('-s', '--sauce', "Toggle SauceLabs") {
201
201
  @options[:enable_sauce]=true
202
202
  }
203
- opt.on('--sauce_name NAME') { |o| @options[:sauce_name] = o }
203
+ opt.on('--sauce_name NAME') { |o| @options[:sauce_name] = o }
204
+ opt.on('--sauce:build id') { |o| @options[:sauce_build] = o }
204
205
  opt.on('--viewport [resolution]') { |o| options[:viewport] = o }
205
206
  end.parse!
206
207
 
@@ -261,6 +262,10 @@ module Scoutui::Utils
261
262
  @options[:sauce_name].to_s
262
263
  end
263
264
 
265
+ def getSauceBuild()
266
+ @options[:sauce_build] || nil
267
+ end
268
+
264
269
  def getBrowser()
265
270
  getBrowserType()
266
271
  end
@@ -1,3 +1,3 @@
1
1
  module Scoutui
2
- VERSION = "2.0.3.7.pre"
2
+ VERSION = "2.0.3.8.pre"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scoutui
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.3.7.pre
4
+ version: 2.0.3.8.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Kim
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2016-05-16 00:00:00.000000000 Z
12
+ date: 2016-05-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler