예제 #1
0
        private void AppCleanUp()
        {
            ClosingWindow CW = new ClosingWindow();

            CW.Show();
            GingerCore.General.DoEvents();
            App.AutomateTabGingerRunner.CloseAgents();
            GingerCore.General.CleanDirectory(GingerCore.Actions.Act.ScreenshotTempFolder, true);

            if (!App.RunningFromConfigFile)
            {
                App.UserProfile.GingerStatus = eGingerStatus.Closed;
                App.UserProfile.SaveUserProfile();
                App.AppSolutionAutoSave.SolutionAutoSaveEnd();
                try
                {
                    //TODO: no need to to log if running from comamnd line
                    AutoLogProxy.LogAppClosed();
                }
                catch
                {
                    Reporter.ToLog(eAppReporterLogLevel.ERROR, "Failed to write ExecutionLog.LogAppClosed() into the autlog folder.");
                }
            }
            CW.Close();
        }
예제 #2
0
        private void AppCleanUp()
        {
            Telemetry.eventHandler -= TelemetryEventHandler;

            ClosingWindow CW = new ClosingWindow();

            CW.Show();
            GingerCore.General.DoEvents();

            if (WorkSpace.Instance != null && WorkSpace.Instance.Solution != null && WorkSpace.Instance.Solution.LoggerConfigurations != null)
            {
                while (WorkSpace.Instance.Solution.LoggerConfigurations.IsPublishToCentralDBRunning == true)
                {
                    Thread.Sleep(500);
                    GingerCore.General.DoEvents();
                }
            }

            WorkSpace.Instance.Close();

            GingerCore.General.CleanDirectory(GingerCore.Actions.Act.ScreenshotTempFolder, true);


            CW.Close();
        }
예제 #3
0
        private void AppCleanUp()
        {
            ClosingWindow CW = new ClosingWindow();

            CW.Show();
            GingerCore.General.DoEvents();

            App.AutomateTabGingerRunner.CloseAgents();
            if (WorkSpace.Instance.SolutionRepository != null)
            {
                App.CloseAllRunningAgents();
                WorkSpace.Instance.PlugInsManager.CloseAllRunningPluginProcesses();
            }
            GingerCore.General.CleanDirectory(GingerCore.Actions.Act.ScreenshotTempFolder, true);

            if (!WorkSpace.RunningInExecutionMode)
            {
                WorkSpace.UserProfile.GingerStatus = eGingerStatus.Closed;
                WorkSpace.UserProfile.SaveUserProfile();
                CleanAutoSaveFolders();
                App.AppSolutionAutoSave.SolutionAutoSaveEnd();
                try
                {
                    //TODO: no need to to log if running from comamnd line
                    AutoLogProxy.LogAppClosed();
                }
                catch
                {
                    Reporter.ToLog(eLogLevel.ERROR, "Failed to write ExecutionLog.LogAppClosed() into the autlog folder.");
                }
            }
            CW.Close();
        }
예제 #4
0
        private void AppCleanUp()
        {
            ClosingWindow CW = new ClosingWindow();

            CW.Show();
            GingerCore.General.DoEvents();


            WorkSpace.Instance.Close();

            GingerCore.General.CleanDirectory(GingerCore.Actions.Act.ScreenshotTempFolder, true);


            CW.Close();
        }