testcentricity_web 2.4.0 → 2.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -1
- data/lib/devices/devices.yml +9 -1
- data/lib/testcentricity_web/exception_queue_helper.rb +42 -33
- data/lib/testcentricity_web/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d29e1e8e3fac5281f1f3eb97e805c10d8497dce8
|
4
|
+
data.tar.gz: ca28f2999a6cf31c52e704917d95d87f326bac38
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3eb40cdbba7deac768a7237c3f3f30161022f944b2aa9321a67f1ba37d7004bb701c1cbc4221531bda9a8a5ce8cd28bdbf797bb112dd8400463318fc0c4dbd53
|
7
|
+
data.tar.gz: 68069a7ef31a76ff479109b352166993c4ecbbb1668b795730696ed97b3a8c879d4cd32c504282e1e5f508b4fd8914e7da19a7ff1bbc90c79735c4fc991195fd
|
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
|
@@ -160,7 +164,7 @@ use the [parallel_tests gem](https://rubygems.org/gems/parallel_tests) to decrea
|
|
160
164
|
## What's Fixed
|
161
165
|
###Version 2.3.19
|
162
166
|
|
163
|
-
* Fixed device profile for `android_phone` - Generic Android Phone
|
167
|
+
* Fixed device profile for `android_phone` - Generic Android Phone.
|
164
168
|
|
165
169
|
###Version 2.3.18
|
166
170
|
|
data/lib/devices/devices.yml
CHANGED
@@ -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.
|
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
|
@@ -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
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
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
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: testcentricity_web
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.4.
|
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-
|
11
|
+
date: 2018-03-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|