bugsnag-maze-runner 8.11.0 → 8.12.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/maze/client/appium/bb_devices.rb +20 -22
- data/lib/maze/hooks/appium_hooks.rb +16 -0
- data/lib/maze/hooks/browser_hooks.rb +8 -0
- data/lib/maze.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3762714f1e7360f56d166b5b03a857da81bae9a13a2cf304638cda47a0a192da
|
4
|
+
data.tar.gz: d1db769adbb399e9b4a4cbd4c63db6dbf128de730504c3382c3b885a803bc3d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7150ffbcf0259314d085e2ade70f31589e0386fe01e2b2d656fe88c99868b9f098bb4c45ac0708cee81d2d1b62e94a5959985ef515d3008db35f513b4fd4e3e
|
7
|
+
data.tar.gz: 2ef4b990914573038c66c1ff824681d9ba29752ea5746831d303a9ee2e5b3706cc66734a6c307387dfbb1a72df99a7e1f6e0f34f65af848a5d987a9615029d69
|
@@ -91,46 +91,44 @@ module Maze
|
|
91
91
|
end
|
92
92
|
|
93
93
|
def make_android_hash(device)
|
94
|
-
#
|
94
|
+
# Tripling up on capabilities in the `appium:options`, `appium` sub dictionaries and base dictionary.
|
95
95
|
# See PLAT-11087
|
96
|
+
appium_options = {
|
97
|
+
'automationName' => 'UiAutomator2',
|
98
|
+
'autoGrantPermissions' => true,
|
99
|
+
'uiautomator2ServerInstallTimeout' => 60000
|
100
|
+
}
|
96
101
|
hash = {
|
97
102
|
'platformName' => 'Android',
|
98
103
|
'deviceName' => 'Android Phone',
|
99
|
-
'appium:options' =>
|
100
|
-
|
101
|
-
'autoGrantPermissions' => true,
|
102
|
-
'uiautomator2ServerInstallTimeout' => 60000
|
103
|
-
},
|
104
|
-
'appium' => {
|
105
|
-
'automationName' => 'UiAutomator2',
|
106
|
-
'autoGrantPermissions' => true,
|
107
|
-
'uiautomator2ServerInstallTimeout' => 60000
|
108
|
-
},
|
104
|
+
'appium:options' => appium_options,
|
105
|
+
'appium' => appium_options,
|
109
106
|
'bitbar:options' => {
|
110
107
|
'device' => device,
|
111
108
|
}
|
112
109
|
}
|
110
|
+
hash.merge!(appium_options)
|
113
111
|
hash.freeze
|
114
112
|
end
|
115
113
|
|
116
114
|
def make_ios_hash(device)
|
117
|
-
#
|
115
|
+
# Tripling up on capabilities in the `appium:options`, `appium` sub dictionaries and base dictionary.
|
118
116
|
# See PLAT-11087
|
119
|
-
{
|
117
|
+
appium_options = {
|
118
|
+
'automationName' => 'XCUITest',
|
119
|
+
'shouldTerminateApp' => 'true'
|
120
|
+
}
|
121
|
+
hash = {
|
120
122
|
'platformName' => 'iOS',
|
121
123
|
'deviceName' => 'iPhone device',
|
122
|
-
'appium:options' =>
|
123
|
-
|
124
|
-
'shouldTerminateApp' => 'true'
|
125
|
-
},
|
126
|
-
'appium' => {
|
127
|
-
'automationName' => 'XCUITest',
|
128
|
-
'shouldTerminateApp' => 'true'
|
129
|
-
},
|
124
|
+
'appium:options' => appium_options,
|
125
|
+
'appium' => appium_options,
|
130
126
|
'bitbar:options' => {
|
131
127
|
'device' => device
|
132
128
|
}
|
133
|
-
}
|
129
|
+
}
|
130
|
+
hash.merge!(appium_options)
|
131
|
+
hash.freeze
|
134
132
|
end
|
135
133
|
end
|
136
134
|
end
|
@@ -8,10 +8,18 @@ module Maze
|
|
8
8
|
def before_all
|
9
9
|
Maze::Plugins::DatadogMetricsPlugin.send_increment('appium.test_started')
|
10
10
|
@client = Maze::Client::Appium.start
|
11
|
+
rescue => error
|
12
|
+
# Notify and re-raise for Cucumber to handle
|
13
|
+
Bugsnag.notify error
|
14
|
+
raise
|
11
15
|
end
|
12
16
|
|
13
17
|
def before(scenario)
|
14
18
|
@client.start_scenario
|
19
|
+
rescue => error
|
20
|
+
# Notify and re-raise for Cucumber to handle
|
21
|
+
Bugsnag.notify error
|
22
|
+
raise
|
15
23
|
end
|
16
24
|
|
17
25
|
def after(scenario)
|
@@ -31,6 +39,10 @@ module Maze
|
|
31
39
|
Maze.driver.reset
|
32
40
|
end
|
33
41
|
end
|
42
|
+
rescue => error
|
43
|
+
# Notify and re-raise for Cucumber to handle
|
44
|
+
Bugsnag.notify error
|
45
|
+
raise
|
34
46
|
end
|
35
47
|
|
36
48
|
def after_all
|
@@ -40,6 +52,10 @@ module Maze
|
|
40
52
|
else
|
41
53
|
Maze::Plugins::DatadogMetricsPlugin.send_increment('appium.test_failed')
|
42
54
|
end
|
55
|
+
rescue => error
|
56
|
+
# Notify and re-raise for Cucumber to handle
|
57
|
+
Bugsnag.notify error
|
58
|
+
raise
|
43
59
|
end
|
44
60
|
|
45
61
|
def at_exit
|
@@ -5,10 +5,18 @@ module Maze
|
|
5
5
|
class BrowserHooks < InternalHooks
|
6
6
|
def before_all
|
7
7
|
@client = Maze::Client::Selenium.start
|
8
|
+
rescue => error
|
9
|
+
# Notify and re-raise for Cucumber to handle
|
10
|
+
Bugsnag.notify error
|
11
|
+
raise
|
8
12
|
end
|
9
13
|
|
10
14
|
def after_all
|
11
15
|
@client&.log_run_outro
|
16
|
+
rescue => error
|
17
|
+
# Notify and re-raise for Cucumber to handle
|
18
|
+
Bugsnag.notify error
|
19
|
+
raise
|
12
20
|
end
|
13
21
|
|
14
22
|
def at_exit
|
data/lib/maze.rb
CHANGED
@@ -7,7 +7,7 @@ require_relative 'maze/timers'
|
|
7
7
|
# Glues the various parts of MazeRunner together that need to be accessed globally,
|
8
8
|
# providing an alternative to the proliferation of global variables or singletons.
|
9
9
|
module Maze
|
10
|
-
VERSION = '8.
|
10
|
+
VERSION = '8.12.1'
|
11
11
|
|
12
12
|
class << self
|
13
13
|
attr_accessor :check, :driver, :internal_hooks, :mode, :start_time, :dynamic_retry, :public_address,
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bugsnag-maze-runner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 8.
|
4
|
+
version: 8.12.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steve Kirkland
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-11-
|
11
|
+
date: 2023-11-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cucumber
|
@@ -448,11 +448,11 @@ files:
|
|
448
448
|
- lib/maze/wait.rb
|
449
449
|
- lib/utils/deep_merge.rb
|
450
450
|
- lib/utils/selenium_money_patch.rb
|
451
|
-
homepage:
|
451
|
+
homepage:
|
452
452
|
licenses:
|
453
453
|
- MIT
|
454
454
|
metadata: {}
|
455
|
-
post_install_message:
|
455
|
+
post_install_message:
|
456
456
|
rdoc_options: []
|
457
457
|
require_paths:
|
458
458
|
- lib
|
@@ -468,7 +468,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
468
468
|
version: '0'
|
469
469
|
requirements: []
|
470
470
|
rubygems_version: 3.1.6
|
471
|
-
signing_key:
|
471
|
+
signing_key:
|
472
472
|
specification_version: 4
|
473
473
|
summary: Bugsnag API request validation harness
|
474
474
|
test_files: []
|