-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathhandled_exception.feature
44 lines (42 loc) · 2.48 KB
/
handled_exception.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
Feature: bugsnag.notify
Scenario: Notify with an Exception
Given I run "HandledExceptionScenario"
* I wait to receive an error
Then the error is valid for the error reporting API version "4.0" for the "Flutter Bugsnag Notifier" notifier
* the exception "errorClass" equals "_Exception"
* the exception "message" equals "test error message"
* the event "unhandled" is false
* the error payload field "events.0.threads" is a non-empty array
* the "file" of stack frame 0 equals "package:MazeRunner/scenarios/handled_exception_scenario.dart"
* the "method" of stack frame 0 equals "HandledExceptionScenario.run"
* the "lineNumber" of stack frame 0 equals 10
* on iOS, the "codeIdentifier" of stack frame 0 is not null
* on iOS, the "type" of stack frame 0 equals "dart"
* on iOS, the event "metaData.flutter.buildID" is not null
* the event "metaData.flutter.defaultRouteName" equals "/"
* the event "metaData.flutter.initialLifecycleState" is not null
* the event "metaData.flutter.lifecycleState" is not null
Scenario: Notify with a callback
Given I configure the app to run in the "callback" state
* I run "HandledExceptionScenario"
* I wait to receive an error
Then the error is valid for the error reporting API version "4.0" for the "Flutter Bugsnag Notifier" notifier
* the exception "errorClass" equals "_Exception"
* the exception "message" equals "test error message"
* the event "unhandled" is true
* the error payload field "events.0.metaData.callback.message" equals "Hello, World!"
* the error payload field "events.0.breadcrumbs.0.name" equals "Crumbs!"
* the error payload field "events.0.threads" is a non-empty array
* the "file" of stack frame 0 equals "package:MazeRunner/scenarios/handled_exception_scenario.dart"
* the "method" of stack frame 0 equals "HandledExceptionScenario.run"
* the "lineNumber" of stack frame 0 equals 10
* on iOS, the "codeIdentifier" of stack frame 0 is not null
* on iOS, the "type" of stack frame 0 equals "dart"
* on iOS, the event "app.dsymUUIDs.0" is not null
* on iOS, the event "metaData.flutter.buildID" is not null
* the event "metaData.flutter.defaultRouteName" equals "/"
* the event "metaData.flutter.initialLifecycleState" is not null
* the event "metaData.flutter.lifecycleState" is not null
* the event "user.id" equals "3"
* the event "user.email" equals "[email protected]"
* the event "user.name" equals "Bugs Nag"