testcentricity 2.4.0 → 2.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bec8539d0e9b7b3442baf37b6ad6dfa0127f1098
4
- data.tar.gz: 92f2cbb4725151a936056835745029b93bf1e2be
3
+ metadata.gz: cf8df99002fffdad6e8c19cb1876b94eafd25de5
4
+ data.tar.gz: 712b44489736893404dfd43fea536e597b9d16e5
5
5
  SHA512:
6
- metadata.gz: a00a9c37aaeb50c688cc39be27f37e3505db5f410bab9595fd1b3f68aa6ed205febf1a402c2191f4ebb21d13bb3a2ac8ab109c676b6e0b87d690b9016014d5ee
7
- data.tar.gz: f134665182d8ffa55f92cb699eb68ad1ff76245214f15f10eaf748ba96abb18f1dcf781b8cdc8ab9371bc26b5c66e968dfcdbbd5c9f2e18f3b05c930222a1cb8
6
+ metadata.gz: 8823c6bb677e8e9d5a3a6b3887de392633a90ed95ce4357f3688c3304bdbba75347c819200b78dfb2398b30dccc3bec1e10056c02b703f7d27665ab28c7eeb65
7
+ data.tar.gz: 53cd51a09cdcb77996a7e0fc4113802f0e1e3ad0ec3d1452f26c85623ec7aec04b94e93dfea8cd3b60aee12d0f42071a15ccc0e91ed566bb4b2f1f79cf3e09a4
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- testcentricity (2.3.16.1)
4
+ testcentricity (2.4.0)
5
5
  appium_lib
6
6
  browserstack-local
7
7
  capybara (>= 2.15, < 3.0)
data/README.md CHANGED
@@ -28,6 +28,10 @@ hosted instances of Chrome, Firefox, Safari, and IE web browsers.
28
28
 
29
29
 
30
30
  ## What's New
31
+ ###Version 2.4.1
32
+
33
+ * Added device profiles for iPad (iOS 10) with MS Edge browser.
34
+
31
35
  ###Version 2.4.0
32
36
 
33
37
  * Updated `TestCentricity::WebDriverConnect.initialize_web_driver` method to read the `APP_FULL_RESET`, `APP_NO_RESET`, and `NEW_COMMAND_TIMEOUT` Environment
@@ -77,7 +77,7 @@
77
77
  :css_width: 375
78
78
  :css_height: 667
79
79
  :default_orientation: portrait
80
- :user_agent: "Mozilla/5.0 (iPhone; CPU iPhone OS 10_3_3 like Mac OS X) AppleWebKit/603.3.8 (KHTML, like Gecko) Version/10.0 EdgiOS/41.11.0.0 Mobile/14G60 Safari/603.3.8"
80
+ :user_agent: "Mozilla/5.0 (iPhone; CPU iPhone OS 10_3_3 like Mac OS X) AppleWebKit/603.3.8 (KHTML, like Gecko) Version/10.0 EdgiOS/41.13.0.0 Mobile/14G60 Safari/603.3.8"
81
81
  :iphone8:
82
82
  :name: "iPhone 8"
83
83
  :os: ios
@@ -246,6 +246,14 @@ nexus6:
246
246
  :css_height: 768
247
247
  :default_orientation: landscape
248
248
  :user_agent: "Mozilla/5.0 (iPad; CPU iPhone OS 10_3_3 like Mac OS X) AppleWebKit/603.3.8 (KHTML, like Gecko) FxiOS/10.6b8836 Mobile/14G60 Safari/603.3.8"
249
+ :ipad_edge:
250
+ :name: "iPad - MS Edge"
251
+ :os: ios
252
+ :type: tablet
253
+ :css_width: 1024
254
+ :css_height: 768
255
+ :default_orientation: landscape
256
+ :user_agent: "Mozilla/5.0 (iPad; CPU OS 10_3_3 like Mac OS X) AppleWebKit/603.3.8 (KHTML, like Gecko) EdgiOS/41.13.0.0 Mobile/14G60 Safari/603.3.8"
249
257
  :android_tablet:
250
258
  :name: "Generic Android tablet"
251
259
  :os: android
@@ -17,6 +17,7 @@ module TestCentricity
17
17
 
18
18
  if project_path.nil?
19
19
  browser = ENV['WEB_BROWSER']
20
+ Environ.browser = browser
20
21
  case browser.downcase.to_sym
21
22
  when :appium
22
23
  Environ.device_name = ENV['APP_DEVICE']
@@ -87,7 +88,8 @@ module TestCentricity
87
88
  capabilities = {}
88
89
  capabilities['device'] = ENV['BS_DEVICE']
89
90
  capabilities['os_version'] = ENV['BS_OS_VERSION']
90
- capabilities['app'] = "bs://#{ENV['APP_ID']}"
91
+ capabilities['app'] = "bs://#{ENV['APP_URL']}" if ENV['APP_URL']
92
+ capabilities['app'] = ENV['APP_ID'] if ENV['APP_ID']
91
93
  capabilities['realMobile'] = true
92
94
  capabilities['project'] = ENV['AUTOMATE_PROJECT'] if ENV['AUTOMATE_PROJECT']
93
95
  capabilities['build'] = ENV['AUTOMATE_BUILD'] if ENV['AUTOMATE_BUILD']
@@ -32,39 +32,48 @@ module TestCentricity
32
32
  if state.is_a?(Hash) && state.length == 1
33
33
  state.each do |key, value|
34
34
  case key
35
- when :lt, :less_than
36
- enqueue_exception("#{error_msg} be less than #{value} but found '#{actual}'") unless actual < value
37
- when :lt_eq, :less_than_or_equal
38
- enqueue_exception("#{error_msg} be less than or equal to #{value} but found '#{actual}'") unless actual <= value
39
- when :gt, :greater_than
40
- enqueue_exception("#{error_msg} be greater than #{value} but found '#{actual}'") unless actual > value
41
- when :gt_eq, :greater_than_or_equal
42
- enqueue_exception("#{error_msg} be greater than or equal to #{value} but found '#{actual}'") unless actual >= value
43
- when :starts_with
44
- enqueue_exception("#{error_msg} start with '#{value}' but found '#{actual}'") unless actual.start_with?(value)
45
- when :ends_with
46
- enqueue_exception("#{error_msg} end with '#{value}' but found '#{actual}'") unless actual.end_with?(value)
47
- when :contains
48
- enqueue_exception("#{error_msg} contain '#{value}' but found '#{actual}'") unless actual.include?(value)
49
- when :not_contains, :does_not_contain
50
- enqueue_exception("#{error_msg} not contain '#{value}' but found '#{actual}'") if actual.include?(value)
51
- when :not_equal
52
- enqueue_exception("#{error_msg} not equal '#{value}' but found '#{actual}'") if actual == value
53
- when :like, :is_like
54
- actual_like = actual.delete("\n")
55
- actual_like = actual_like.delete("\r")
56
- actual_like = actual_like.delete("\t")
57
- actual_like = actual_like.delete(' ')
58
- actual_like = actual_like.downcase
59
- expected = value.delete("\n")
60
- expected = expected.delete("\r")
61
- expected = expected.delete("\t")
62
- expected = expected.delete(' ')
63
- expected = expected.downcase
64
- enqueue_exception("#{error_msg} be like '#{value}' but found '#{actual}'") unless actual_like.include?(expected)
65
- when :translate
66
- expected = I18n.t(value)
67
- enqueue_assert_equal(expected, actual, error_msg)
35
+ when :lt, :less_than
36
+ enqueue_exception("#{error_msg} be less than #{value} but found '#{actual}'") unless actual < value
37
+ when :lt_eq, :less_than_or_equal
38
+ enqueue_exception("#{error_msg} be less than or equal to #{value} but found '#{actual}'") unless actual <= value
39
+ when :gt, :greater_than
40
+ enqueue_exception("#{error_msg} be greater than #{value} but found '#{actual}'") unless actual > value
41
+ when :gt_eq, :greater_than_or_equal
42
+ enqueue_exception("#{error_msg} be greater than or equal to #{value} but found '#{actual}'") unless actual >= value
43
+ when :starts_with
44
+ enqueue_exception("#{error_msg} start with '#{value}' but found '#{actual}'") unless actual.start_with?(value)
45
+ when :ends_with
46
+ enqueue_exception("#{error_msg} end with '#{value}' but found '#{actual}'") unless actual.end_with?(value)
47
+ when :contains
48
+ enqueue_exception("#{error_msg} contain '#{value}' but found '#{actual}'") unless actual.include?(value)
49
+ when :not_contains, :does_not_contain
50
+ enqueue_exception("#{error_msg} not contain '#{value}' but found '#{actual}'") if actual.include?(value)
51
+ when :not_equal
52
+ enqueue_exception("#{error_msg} not equal '#{value}' but found '#{actual}'") if actual == value
53
+ when :like, :is_like
54
+ actual_like = actual.delete("\n")
55
+ actual_like = actual_like.delete("\r")
56
+ actual_like = actual_like.delete("\t")
57
+ actual_like = actual_like.delete(' ')
58
+ actual_like = actual_like.downcase
59
+ expected = value.delete("\n")
60
+ expected = expected.delete("\r")
61
+ expected = expected.delete("\t")
62
+ expected = expected.delete(' ')
63
+ expected = expected.downcase
64
+ enqueue_exception("#{error_msg} be like '#{value}' but found '#{actual}'") unless actual_like.include?(expected)
65
+ when :translate
66
+ expected = I18n.t(value)
67
+ enqueue_assert_equal(expected, actual, error_msg)
68
+ when :translate_upcase
69
+ expected = I18n.t(value).upcase
70
+ enqueue_assert_equal(expected, actual, error_msg)
71
+ when :translate_downcase
72
+ expected = I18n.t(value).downcase
73
+ enqueue_assert_equal(expected, actual, error_msg)
74
+ when :translate_capitalize
75
+ expected = I18n.t(value).capitalize
76
+ enqueue_assert_equal(expected, actual, error_msg)
68
77
  end
69
78
  end
70
79
  else
@@ -1,3 +1,3 @@
1
1
  module TestCentricity
2
- VERSION = '2.4.0'
2
+ VERSION = '2.4.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: testcentricity
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.0
4
+ version: 2.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - A.J. Mrozinski
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-25 00:00:00.000000000 Z
11
+ date: 2018-03-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler