-
Notifications
You must be signed in to change notification settings - Fork 207
/
Copy pathrelease_stage.feature
33 lines (28 loc) · 1.54 KB
/
release_stage.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
Feature: Reporting exceptions with release stages
Scenario: Exception not reported when outside release stage
When I run "OutsideReleaseStageScenario"
Then I should receive no requests
Scenario: Exception not reported when release stage null
When I run "NullReleaseStageScenario"
Then I should receive no requests
Scenario: Exception reported when release stages null
When I run "NullNotifyReleaseStageScenario"
Then I should receive a request
And the request is a valid for the error reporting API
And the exception "errorClass" equals "java.lang.RuntimeException"
And the exception "message" equals "NullNotifyReleaseStageScenario"
Scenario: Exception reported when inside release stage
When I run "InsideReleaseStageScenario"
Then I should receive a request
And the request is a valid for the error reporting API
And the "Bugsnag-API-Key" header equals "a35a2a72bd230ac0aa0f52715bbdc6aa"
And the payload field "notifier.name" equals "Android Bugsnag Notifier"
And the payload field "events" is an array with 1 element
And the exception "errorClass" equals "java.lang.RuntimeException"
And the exception "message" equals "InsideReleaseStageScenario"
Scenario: Exception reported when inside Notify release stage array
When I run "ArrayNotifyReleaseStageScenario"
Then I should receive a request
And the request is a valid for the error reporting API
And the exception "errorClass" equals "java.lang.RuntimeException"
And the exception "message" equals "ArrayNotifyReleaseStageScenario"