-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathsession_tracking_handled.feature
91 lines (82 loc) · 5.33 KB
/
session_tracking_handled.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
Feature: Session Tracking
Scenario: Manual Session sends in plain Java app
When I run "ManualSessionScenario" with the defaults
And I wait to receive a session
Then the session is valid for the session reporting API version "1.0" for the "Bugsnag Java" notifier
And the session payload field "sessionCounts" is an array with 1 elements
And the session payload field "sessionCounts.0.startedAt" is not null
And the session payload field "sessionCounts.0.sessionsStarted" equals 1
And the session payload field "app" is not null
And the session payload field "app.version" equals "1.2.3"
And the session payload field "device" is not null
Scenario: Manual Session sends in spring boot app
When I run spring boot "ManualSessionScenario" with the defaults
And I wait to receive a session
Then the session is valid for the session reporting API version "1.0" for the "Bugsnag Spring" notifier
And the session payload field "sessionCounts" is an array with 1 elements
And the session payload field "sessionCounts.0.startedAt" is not null
And the session payload field "sessionCounts.0.sessionsStarted" equals 1
And the session payload field "app" is not null
And the session payload field "app.version" equals "1.2.3"
And the session payload field "device" is not null
Scenario: Manual Session sends in plain Spring app
When I run plain Spring "ManualSessionScenario" with the defaults
And I wait to receive a session
Then the session is valid for the session reporting API version "1.0" for the "Bugsnag Spring" notifier
And the session payload field "sessionCounts" is an array with 1 elements
And the session payload field "sessionCounts.0.startedAt" is not null
And the session payload field "sessionCounts.0.sessionsStarted" equals 1
And the session payload field "app" is not null
And the session payload field "app.version" equals "1.2.3"
And the session payload field "device" is not null
Scenario: Test handled Exception with Session information in plain Java app
When I run "HandledSessionScenario" 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 "HandledSessionScenario"
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.handled" equals 1
Scenario: Test handled Exception with Session information in spring boot app
When I run spring boot "HandledSessionScenario" 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 "HandledSessionScenario"
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.handled" equals 1
Scenario: Test handled Exception with Session information in plain Spring app
When I run plain Spring "HandledSessionScenario" 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 "HandledSessionScenario"
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.handled" equals 1
Scenario: Test handled Exception with no session information in plain Java app
When I run "HandledExceptionScenario" 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 handled Exception with no session information in Spring Boot app
When I run spring boot "HandledExceptionScenario" 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 handled Exception with no session information in plain Spring app
When I run plain Spring "HandledExceptionScenario" 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