bugsnag-maze-runner 8.15.0 → 8.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/maze/api/appium/file_manager.rb +22 -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: 31b4428b6ac193d28a644c60b7fd932896a77ca570089211b8dc476ed3d09175
|
4
|
+
data.tar.gz: 5cf2b51bc3174f104d2c2677cc2153c079805151f4314fe482ba36180d6e46fe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 98515748221eff4ab123e8da5ace1b578a750b770715ee793afe4a6c4dac60585915ce25b288c82b12b06f4b3995f2cd14493070fa54b56e0288b6462b175fd9
|
7
|
+
data.tar.gz: e62f2b7dde8900b4d45404d85a1f806e50804116deab0a49bbf6a55abdafecdc04b74a4f33f6b206a6f8b4ef71993a7b3383aae9e382653d1203abf64fae4512
|
@@ -25,6 +25,28 @@ module Maze
|
|
25
25
|
$logger.trace "Pushing file to '#{path}' with contents: #{contents}"
|
26
26
|
@driver.push_file(path, contents)
|
27
27
|
end
|
28
|
+
|
29
|
+
# Attempts to retrieve a given file from the device (using Appium). The default location for the file will be
|
30
|
+
# the app's documents directory for iOS. On Android, it will be /sdcard/Android/data/<app-id>/files unless
|
31
|
+
# Maze.config.android_app_files_directory has been set.
|
32
|
+
# @param filename [String] Name (with no path) of the file to be retrieved from the device
|
33
|
+
# @param directory [String] Directory on the device where the file is located (optional)
|
34
|
+
def read_app_file(filename, directory = nil)
|
35
|
+
if directory
|
36
|
+
path = directory
|
37
|
+
else
|
38
|
+
path = case Maze::Helper.get_current_platform
|
39
|
+
when 'ios'
|
40
|
+
"@#{@driver.app_id}/Documents/#{filename}"
|
41
|
+
when 'android'
|
42
|
+
dir = Maze.config.android_app_files_directory || "/sdcard/Android/data/#{@driver.app_id}/files"
|
43
|
+
"#{dir}/#{filename}"
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
$logger.trace "Attempting to read file from '#{path}'"
|
48
|
+
file = @driver.pull_file(path)
|
49
|
+
end
|
28
50
|
end
|
29
51
|
end
|
30
52
|
end
|
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.16.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: 8.
|
4
|
+
version: 8.16.0
|
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: 2024-01-
|
11
|
+
date: 2024-01-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cucumber
|
@@ -449,11 +449,11 @@ files:
|
|
449
449
|
- lib/maze/wait.rb
|
450
450
|
- lib/utils/deep_merge.rb
|
451
451
|
- lib/utils/selenium_money_patch.rb
|
452
|
-
homepage:
|
452
|
+
homepage:
|
453
453
|
licenses:
|
454
454
|
- MIT
|
455
455
|
metadata: {}
|
456
|
-
post_install_message:
|
456
|
+
post_install_message:
|
457
457
|
rdoc_options: []
|
458
458
|
require_paths:
|
459
459
|
- lib
|
@@ -469,7 +469,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
469
469
|
version: '0'
|
470
470
|
requirements: []
|
471
471
|
rubygems_version: 3.1.6
|
472
|
-
signing_key:
|
472
|
+
signing_key:
|
473
473
|
specification_version: 4
|
474
474
|
summary: Bugsnag API request validation harness
|
475
475
|
test_files: []
|