-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathproject_package.feature
More file actions
63 lines (59 loc) · 4.6 KB
/
project_package.feature
File metadata and controls
63 lines (59 loc) · 4.6 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
59
60
61
62
63
Feature: Specifying the project packages
Scenario: Test logback appender with no project packages
When I run "LogbackScenario" with logback config "basic_config.xml"
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 "LogbackScenario"
And the event "exceptions.0.stacktrace.0.method" equals "com.bugsnag.mazerunner.scenarios.Scenario.generateException"
And the event "exceptions.0.stacktrace.0.inProject" is false
And the event "exceptions.0.stacktrace.1.method" equals "com.bugsnag.mazerunner.scenarios.LogbackScenario.run"
And the event "exceptions.0.stacktrace.1.inProject" is false
And the event "exceptions.0.stacktrace.2.method" equals "com.bugsnag.mazerunner.TestCaseRunner.run"
And the event "exceptions.0.stacktrace.2.inProject" is false
And the event "exceptions.0.stacktrace.3.method" equals "org.springframework.boot.SpringApplication.lambda$callRunner$5"
And the event "exceptions.0.stacktrace.3.inProject" is false
Scenario: Test logback appender with a project package "com.bugsnag.mazerunner" defined
When I run "LogbackScenario" with logback config "project_package_config.xml"
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 "LogbackScenario"
And the event "exceptions.0.stacktrace.0.method" equals "com.bugsnag.mazerunner.scenarios.Scenario.generateException"
And the event "exceptions.0.stacktrace.0.inProject" is true
And the event "exceptions.0.stacktrace.1.method" equals "com.bugsnag.mazerunner.scenarios.LogbackScenario.run"
And the event "exceptions.0.stacktrace.1.inProject" is true
And the event "exceptions.0.stacktrace.2.method" equals "com.bugsnag.mazerunner.TestCaseRunner.run"
And the event "exceptions.0.stacktrace.2.inProject" is true
And the event "exceptions.0.stacktrace.3.method" equals "org.springframework.boot.SpringApplication.lambda$callRunner$5"
And the event "exceptions.0.stacktrace.3.inProject" is false
Scenario: Test plain Java app with no project packages
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 exception "message" equals "HandledExceptionScenario"
And the event "exceptions.0.stacktrace.0.method" equals "com.bugsnag.mazerunner.scenarios.Scenario.generateException"
And the event "exceptions.0.stacktrace.0.inProject" is false
And the event "exceptions.0.stacktrace.1.method" equals "com.bugsnag.mazerunner.scenarios.HandledExceptionScenario.run"
And the event "exceptions.0.stacktrace.1.inProject" is false
And the event "exceptions.0.stacktrace.2.method" equals "com.bugsnag.mazerunner.TestCaseRunner.run"
And the event "exceptions.0.stacktrace.2.inProject" is false
And the event "exceptions.0.stacktrace.3.method" equals "org.springframework.boot.SpringApplication.lambda$callRunner$5"
And the event "exceptions.0.stacktrace.3.inProject" is false
Scenario: Test plain Java app with a project package "com.bugsnag.mazerunner" defined
When I run "ProjectPackageScenario" 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 "message" equals "ProjectPackageScenario"
And the event "exceptions.0.stacktrace.0.method" equals "com.bugsnag.mazerunner.scenarios.Scenario.generateException"
And the event "exceptions.0.stacktrace.0.inProject" is true
And the event "exceptions.0.stacktrace.1.method" equals "com.bugsnag.mazerunner.scenarios.ProjectPackageScenario.run"
And the event "exceptions.0.stacktrace.1.inProject" is true
And the event "exceptions.0.stacktrace.2.method" equals "com.bugsnag.mazerunner.TestCaseRunner.run"
And the event "exceptions.0.stacktrace.2.inProject" is true
And the event "exceptions.0.stacktrace.3.method" equals "org.springframework.boot.SpringApplication.lambda$callRunner$5"
And the event "exceptions.0.stacktrace.3.inProject" is false