-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathsession_tracking_unhandled.feature
More file actions
58 lines (52 loc) · 3.41 KB
/
session_tracking_unhandled.feature
File metadata and controls
58 lines (52 loc) · 3.41 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
Feature: Session Tracking
Scenario: Test unhandled Exception with Session information in plain Java app
When I run "UnhandledSessionScenario" with the defaults
And I wait to receive an error
And the error is valid for the error reporting API version "4" for the "Bugsnag Java" notifier
And the error payload field "events" is an array with 1 elements
And the exception "errorClass" equals "java.lang.RuntimeException"
And the exception "message" equals "UnhandledSessionScenario"
And the error payload field "events.0.session" is not null
And the error payload field "events.0.session.id" is not null
And the error payload field "events.0.session.startedAt" is not null
And the error payload field "events.0.session.events.unhandled" equals 1
Scenario: Test unhandled Exception with Session information in Spring Boot app
When I run spring boot "UnhandledSessionScenario" with the defaults
And I wait to receive an error
And the error is valid for the error reporting API version "4" for the "Bugsnag Spring" notifier
And the error payload field "events" is an array with 1 elements
And the exception "errorClass" equals "java.lang.RuntimeException"
And the exception "message" equals "UnhandledSessionScenario"
And the error payload field "events.0.session" is not null
And the error payload field "events.0.session.id" is not null
And the error payload field "events.0.session.startedAt" is not null
And the error payload field "events.0.session.events.unhandled" equals 1
Scenario: Test unhandled Exception with Session information in plain Spring app
When I run plain Spring "UnhandledSessionScenario" with the defaults
And I wait to receive an error
And the error is valid for the error reporting API version "4" for the "Bugsnag Spring" notifier
And the error payload field "events" is an array with 1 elements
And the exception "errorClass" equals "java.lang.RuntimeException"
And the exception "message" equals "UnhandledSessionScenario"
And the error payload field "events.0.session" is not null
And the error payload field "events.0.session.id" is not null
And the error payload field "events.0.session.startedAt" is not null
And the error payload field "events.0.session.events.unhandled" equals 1
Scenario: Test unhandled exception with no session information in plain Java app
When I run "CrashHandlerScenario" with the defaults
And I wait to receive an error
And the error is valid for the error reporting API version "4" for the "Bugsnag Java" notifier
And the error payload field "events" is an array with 1 elements
And the event "session" is null
Scenario: Test unhandled exception with no session information in Spring Boot app
When I run spring boot "CrashHandlerScenario" with the defaults
And I wait to receive an error
And the error is valid for the error reporting API version "4" for the "Bugsnag Spring" notifier
And the error payload field "events" is an array with 1 elements
And the event "session" is null
Scenario: Test unhandled exception with no session information in plain Spring app
When I run plain Spring "CrashHandlerScenario" with the defaults
And I wait to receive an error
And the error is valid for the error reporting API version "4" for the "Bugsnag Spring" notifier
And the error payload field "events" is an array with 1 elements
And the event "session" is null