bugsnag-maze-runner 9.20.0 → 9.21.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: 28dc3c07d00916780e4defbb86b149a40a96451589add388acda492ebaf0d1cb
4
- data.tar.gz: 8c56d49cebb512a16f4c4df2b6cdb9df25f4a0f002760bbc2875f1487403bda5
3
+ metadata.gz: 0b00232685620344397218ed5ccf143f583dea9cb7a94c454dcbc7f8d5ea00c3
4
+ data.tar.gz: 44d839ae61d043e63c01b4462359d6b8ccef54a73eac1cc679c1813099aeafab
5
5
  SHA512:
6
- metadata.gz: 8a10cbf491a0ac15c89c2ba9ae385530c4e5c6a38207f3c6f88c2d53ced5a1904615c3d28846ce03b90370517067b8f00f88ba1f5898e0d742c434a0827d6e43
7
- data.tar.gz: fa6bc50b875cbce4a077be90e5f4561f5ff3f46e34debdb2298c530eef9e952fc722a0cc972cec387871a466d7a1fe6b3e33444cc438cc14fd2550e3170669ec
6
+ metadata.gz: 0a8ac5cdcb8da3b8cfc80b54f8318989eef4df1f8b92dcff63884544bb25f6dde895aeeac0aa4c9091f385d029e7fd6a00ff6b04772bbdb71699686c6620eeda
7
+ data.tar.gz: 8e88e848cf6599fb944ce054a0fda6e65bc873fc3b6bf7b91c62f5a55f06332d00096c9ef060f69dccabe670475371d3d59e8d88036a870dd41fe157ee2621b0
@@ -23,11 +23,16 @@ module Maze
23
23
  Maze.driver.session_capabilities['appPackage']
24
24
  when 'ios'
25
25
  unless app_id = Maze.driver.session_capabilities['CFBundleIdentifier']
26
- app_id = Maze.driver.session_capabilities['bundleID']
26
+ app_id = Maze.driver.session_capabilities['bundleId']
27
27
  end
28
28
  app_id
29
29
  end
30
30
 
31
+ if Maze.driver.app_id.nil?
32
+ $logger.error "Failed to determine app id."
33
+ $logger.debug "session_capabilities: #{Maze.driver.session_capabilities.inspect}"
34
+ end
35
+
31
36
  # Ensure the device is unlocked
32
37
  begin
33
38
  Maze.driver.unlock
@@ -25,8 +25,7 @@ module Maze
25
25
  next unless event.test_case.eql?(test_case) && event.result.failed?
26
26
 
27
27
  Bugsnag.notify(event.result.exception) do |bsg_event|
28
-
29
- bsg_event.api_key = ENV['MAZE_SCENARIO_BUGSNAG_API_KEY']
28
+ bsg_event.api_key = ENV['MAZE_SCENARIO_BUGSNAG_API_KEY'] unless selenium_report?(event.result.exception)
30
29
 
31
30
  unless @last_test_step.nil?
32
31
 
@@ -54,6 +53,10 @@ module Maze
54
53
 
55
54
  super
56
55
  end
56
+
57
+ def selenium_report?(exception)
58
+ exception.class.to_s.include?('Selenium')
59
+ end
57
60
  end
58
61
  end
59
62
  end
data/lib/maze.rb CHANGED
@@ -7,7 +7,8 @@ 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 = '9.20.0'
10
+
11
+ VERSION = '9.21.0'
11
12
 
12
13
  class << self
13
14
  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: 9.20.0
4
+ version: 9.21.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: 2024-11-21 00:00:00.000000000 Z
11
+ date: 2024-11-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cucumber