Esempio n. 1
0
 public virtual void CleanUp()
 {
     if (AqualityServices.IsApplicationStarted)
     {
         AqualityServices.Application.Quit();
     }
     AqualityServices.TryToStopAppiumLocalService();
 }
Esempio n. 2
0
 public void CloseApplication()
 {
     if (AqualityServices.IsApplicationStarted)
     {
         AqualityServices.Application.Quit();
         AqualityServices.ProcessManager.TryToStopProcesses(Configuration.Configuration.ProcessName);
     }
     AqualityServices.TryToStopAppiumLocalService();
 }
Esempio n. 3
0
        public virtual void CleanUp()
        {
            if (AqualityServices.IsApplicationStarted)
            {
                if (TestContext.CurrentContext.Result.Outcome.Status != TestStatus.Passed)
                {
                    TestContext.AddTestAttachment(new ScreenshotProvider(AqualityServices.Application).TakeScreenshot());
                }

                AqualityServices.Application.Quit();
            }
            AqualityServices.TryToStopAppiumLocalService();
        }