Exemplo n.º 1
0
 public void CloseApp(ServicesCollection childContainer)
 {
     DisposeDriverService.CloseAndroidApp(childContainer);
     DisposeDriverService.CloseIOSApp(childContainer);
     DisposeDriverService.CloseAndroidApp(ServicesCollection.Main);
     DisposeDriverService.CloseIOSApp(ServicesCollection.Main);
 }
Exemplo n.º 2
0
 public void Dispose(ServicesCollection childContainer)
 {
     DisposeDriverService.DisposeAndroid(childContainer);
     DisposeDriverService.DisposeIOS(childContainer);
     DisposeDriverService.DisposeAndroid(ServicesCollection.Main);
     DisposeDriverService.DisposeIOS(ServicesCollection.Main);
 }
Exemplo n.º 3
0
 public void Dispose()
 {
     ProxyService?.Dispose();
     DisposeDriverService.DisposeAll();
     DisposeDriverService.Dispose();
     GC.SuppressFinalize(this);
 }
Exemplo n.º 4
0
 public void DisposeAll()
 {
     foreach (var childContainer in ServicesCollection.Current.GetChildServicesCollections())
     {
         var driver = childContainer.Resolve <IWebDriver>();
         DisposeDriverService.Dispose(driver, childContainer);
     }
 }
Exemplo n.º 5
0
        private void ShutdownApp(ServicesCollection container)
        {
            DisposeDriverService.DisposeAndroid(container);
            DisposeDriverService.DisposeIOS(container);

            var currentAppConfiguration = container.Resolve <AppConfiguration>("_currentAppConfiguration");

            container.RegisterInstance(currentAppConfiguration, "_previousAppConfiguration");
        }
Exemplo n.º 6
0
        public void DisposeAll()
        {
            foreach (var childContainer in ServicesCollection.Current.GetChildServicesCollections())
            {
                DisposeDriverService.DisposeAndroid(childContainer);
                DisposeDriverService.DisposeIOS(childContainer);
            }

            DisposeDriverService.DisposeAndroid(ServicesCollection.Main);
            DisposeDriverService.DisposeIOS(ServicesCollection.Main);
        }
Exemplo n.º 7
0
        private void ShutdownApp(ServicesCollection container)
        {
            DisposeDriverService.Dispose(container);
            var appConfiguration = new AppInitializationInfo();

            // BUG: If we use ReuseIfStarted, there is a new child container for each class and when
            // we initialize a new childcontainer the _previousAppConfiguration is missing and the app
            // is still opened. Probably this won't work in parallel.
            container.RegisterInstance(appConfiguration, "_previousAppConfiguration");
            ////container.UnregisterSingleInstance<TestExecutionEngine>();
        }
Exemplo n.º 8
0
        protected virtual void Dispose(bool disposing)
        {
            if (!disposedValue)
            {
                if (disposing)
                {
                    // Dispose managed state (managed objects).
                    WebDriver.StopBrowser();
                    DisposeDriverService.FinishHim(Browser);
                }

                // Set large fields to null.
                disposedValue = true;
            }
        }
Exemplo n.º 9
0
 public override void Dispose()
 {
     Telemetry.Instance.Flush();
     DisposeDriverService.DisposeAllIOS();
     GC.SuppressFinalize(this);
 }
Exemplo n.º 10
0
 public static void BeforeTestRun()
 {
     DisposeDriverService.KillChromeDriver(DateTime.Now);
 }
Exemplo n.º 11
0
 public override void Dispose()
 {
     DisposeDriverService.DisposeAllAndroid();
     GC.SuppressFinalize(this);
 }
 public static void AssemblyCleanUp()
 {
     DisposeDriverService.FinishHim(_driver);
 }
Exemplo n.º 13
0
 public void ExecuteAbortTestRunLogic() => DisposeDriverService.Dispose();
Exemplo n.º 14
0
        public void Dispose(ServicesCollection container)
        {
            var webDriver = container.Resolve <IWebDriver>();

            DisposeDriverService.Dispose(webDriver, container);
        }
Exemplo n.º 15
0
 public void Dispose(ServicesCollection childContainer) => DisposeDriverService.Dispose(childContainer);