generated from jfversluis/Plugin.Maui.Feature
-
-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
By looking at the code and behavior of this library, it seems like it is designed to run every test using the same app instance and navigate between different test pages. Is it possible to achieve, that it restarts the app between every test? Atm. if I close the app after each test it will make an assert in the teardown method here
Plugin.Maui.UITestHelpers/src/Plugin.Maui.UITestHelpers.NUnit/UITestBase.cs
Lines 56 to 69 in ea60394
[TearDown] | |
public void UITestBaseTearDown() | |
{ | |
if (App.AppState == ApplicationState.NotRunning) | |
{ | |
SaveDeviceDiagnosticInfo(); | |
Reset(); | |
FixtureSetup(); | |
// Assert.Fail will immediately exit the test which is desirable as the app is not | |
// running anymore so we can't capture any UI structures or any screenshots | |
Assert.Fail("The app was expected to be running still, investigate as possible crash"); | |
} |
I'm pretty new to using Appium UI tests as I'm only starting to migrate our existing UI tests from Xamarin.UITest so I might have missed something
christopherhofmeister
Metadata
Metadata
Assignees
Labels
No labels