-
Notifications
You must be signed in to change notification settings - Fork 207
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework test to avoid delivery prior to setting offline state
Keeps all of the logic for a single scenario within a single class Adds helper steps to better show how a user would get into this state
- Loading branch information
Showing
3 changed files
with
35 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
Feature: All errors are flushed if a startup crash is persisted | ||
|
||
Scenario: 1 startup crash and 1 regular crash persisted | ||
When I run "StartupCrashFlushScenario" with the defaults | ||
And I force stop the "com.bugsnag.android.mazerunner" Android app | ||
And I set environment variable "EVENT_METADATA" to "StartupCrash" | ||
And I start the "com.bugsnag.android.mazerunner" Android app using the "com.bugsnag.android.mazerunner.MainActivity" activity | ||
And I force stop the "com.bugsnag.android.mazerunner" Android app | ||
When I configure the app to run in the "CrashOfflineWithDelay" state | ||
And I run "StartupCrashFlushScenario" with the defaults | ||
And I wait for 10 seconds | ||
|
||
And I set environment variable "EVENT_TYPE" to "Wait" | ||
And I start the "com.bugsnag.android.mazerunner" Android app using the "com.bugsnag.android.mazerunner.MainActivity" activity | ||
And I configure the app to run in the "CrashOfflineAtStartup" state | ||
And I relaunch the app | ||
|
||
And I configure the app to run in the "No crash" state | ||
And I relaunch the app | ||
And I wait for 5 seconds | ||
Then I should receive 2 requests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters