bugsnag-maze-runner 7.28.0 → 7.29.0
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a557d4bf1f5d2518fef4116fe4bceecc5b28f78d585ab0926296105e5284ff49
|
4
|
+
data.tar.gz: 6e2c3eed0f98e66d586c64186a77917bb93aa4dbb7f2e0704ab42fa4abb05eb6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 194edc4175cb7e7d9c2816d749e2b97a56b97885511762345d2ecdce4c07be4bf2a9de82415f26c127f20b8a1fc5fa0256e84ffcedff74eaf5ad4d017c006f19
|
7
|
+
data.tar.gz: c2a7a1998c8c2fa628165f1961483e0986942be71ad599e72aad19351984a27c6284007037f7779834fd16e43f3905f8b316d2a1742546c90234f999bd734f1e
|
@@ -26,19 +26,19 @@ module Maze
|
|
26
26
|
|
27
27
|
def device_capabilities
|
28
28
|
config = Maze.config
|
29
|
+
prefix = BitBarDevices.caps_prefix(config.appium_version)
|
29
30
|
capabilities = {
|
30
|
-
|
31
|
+
"#{prefix}noReset" => true,
|
32
|
+
"#{prefix}newCommandTimeout" => 0,
|
31
33
|
'bitbar:options' => {
|
32
34
|
# Some capabilities probably belong in the top level
|
33
35
|
# of the hash, but BitBar picks them up from here.
|
34
36
|
'apiKey' => config.access_key,
|
35
37
|
'app' => config.app,
|
36
38
|
'findDevice' => false,
|
37
|
-
'testTimeout' => 7200
|
38
|
-
'newCommandTimeout' => 0
|
39
|
+
'testTimeout' => 7200
|
39
40
|
}
|
40
41
|
}
|
41
|
-
capabilities['appiumVersion'] = config.appium_version unless config.appium_version.nil?
|
42
42
|
capabilities.deep_merge! dashboard_capabilities
|
43
43
|
capabilities.deep_merge! BitBarDevices.get_available_device(config.device)
|
44
44
|
capabilities.deep_merge! JSON.parse(config.capabilities_option)
|
@@ -40,6 +40,8 @@ module Maze
|
|
40
40
|
Maze.config.os = platform
|
41
41
|
Maze.config.os_version = platform_version.to_f.floor
|
42
42
|
|
43
|
+
prefix = caps_prefix(Maze.config.appium_version)
|
44
|
+
|
43
45
|
case platform
|
44
46
|
when 'android'
|
45
47
|
automation_name = if platform_version.start_with?('5')
|
@@ -49,7 +51,7 @@ module Maze
|
|
49
51
|
end
|
50
52
|
make_android_hash(device_name, automation_name)
|
51
53
|
when 'ios'
|
52
|
-
make_ios_hash(device_name)
|
54
|
+
make_ios_hash(device_name, prefix)
|
53
55
|
else
|
54
56
|
throw "Invalid device platform specified #{platform}"
|
55
57
|
end
|
@@ -108,18 +110,21 @@ module Maze
|
|
108
110
|
hash.freeze
|
109
111
|
end
|
110
112
|
|
111
|
-
def make_ios_hash(device)
|
113
|
+
def make_ios_hash(device, prefix='')
|
112
114
|
{
|
113
115
|
'automationName' => 'XCUITest',
|
114
116
|
'deviceName' => 'iPhone device',
|
115
117
|
'platformName' => 'iOS',
|
118
|
+
"#{prefix}shouldTerminateApp" => 'true',
|
116
119
|
'bitbar:options' => {
|
117
|
-
'noReset' => 'true',
|
118
|
-
'shouldTerminateApp' => 'true',
|
119
120
|
'device' => device
|
120
121
|
}
|
121
122
|
}.freeze
|
122
123
|
end
|
124
|
+
|
125
|
+
def caps_prefix(appium_version)
|
126
|
+
appium_version.nil? || (appium_version.to_i < 2) ? '' : 'appium:'
|
127
|
+
end
|
123
128
|
end
|
124
129
|
end
|
125
130
|
end
|
@@ -12,9 +12,10 @@ module Maze
|
|
12
12
|
config.capabilities = capabilities
|
13
13
|
|
14
14
|
if Maze::Client::BitBarClientUtils.use_local_tunnel?
|
15
|
-
|
16
|
-
|
17
|
-
|
15
|
+
if ENV['BUILDKITE']
|
16
|
+
credentials = Maze::Client::BitBarClientUtils.account_credentials config.tms_uri
|
17
|
+
capabilities['bitbar_apiKey'] = credentials[:access_key]
|
18
|
+
end
|
18
19
|
|
19
20
|
Maze::Client::BitBarClientUtils.start_local_tunnel config.sb_local,
|
20
21
|
config.username,
|
@@ -80,6 +80,7 @@ module Maze
|
|
80
80
|
config.username = options[Maze::Option::USERNAME]
|
81
81
|
config.access_key = options[Maze::Option::ACCESS_KEY]
|
82
82
|
config.tms_uri = options[Maze::Option::TMS_URI]
|
83
|
+
config.appium_version = options[Maze::Option::APPIUM_VERSION]
|
83
84
|
device_option = options[Maze::Option::DEVICE]
|
84
85
|
if device_option.nil? || device_option.empty?
|
85
86
|
# BitBar Web
|
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 = '7.
|
10
|
+
VERSION = '7.29.0'
|
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: 7.
|
4
|
+
version: 7.29.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steve Kirkland
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-05-
|
11
|
+
date: 2023-05-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cucumber
|