Last active
June 27, 2020 21:26
-
-
Save jamesmcroft/bb3a08fcd15872c5b30c7ae0a8894483 to your computer and use it in GitHub Desktop.
A base test class for Windows app UI testing with Legerity
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
namespace MyAppTests | |
{ | |
using Legerity; | |
using Legerity.Windows; | |
using Microsoft.VisualStudio.TestTools.UnitTesting; | |
public abstract class BaseTest | |
{ | |
[TestInitialize] | |
public virtual void Initialize() | |
{ | |
AppManager.StartApp( | |
new WindowsAppManagerOptions("Legerity.MyApp_8wekyb3d8bbwe!App") | |
{ | |
AppiumDriverUrl = "http://127.0.0.1:4723" | |
}); | |
} | |
[TestCleanup] | |
public virtual void Cleanup() | |
{ | |
AppManager.StopApp(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment