Skip to content

Instantly share code, notes, and snippets.

@jamesmcroft
Last active June 27, 2020 21:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamesmcroft/bb3a08fcd15872c5b30c7ae0a8894483 to your computer and use it in GitHub Desktop.
Save jamesmcroft/bb3a08fcd15872c5b30c7ae0a8894483 to your computer and use it in GitHub Desktop.
A base test class for Windows app UI testing with Legerity
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