Exemplo n.º 1
0
 public override void KillApplication(TestApplication testApplication, KillApplicationConext context){
     ScreenCaptureCommand.Stop();
     if (_easyTestCommandAdapter != null) {
         _easyTestCommandAdapter.Disconnect();
     }
     CloseApplication(mainProcess,true);
     foreach (var additionalProcess in _additionalProcesses){
         CloseApplication(additionalProcess, true);
     }
 }
Exemplo n.º 2
0
 public override void KillApplication(TestApplication testApplication, KillApplicationConext context)
 {
     ScreenCaptureCommand.Stop();
     if (_easyTestCommandAdapter != null)
     {
         _easyTestCommandAdapter.Disconnect();
     }
     CloseApplication(mainProcess, true);
     foreach (var additionalProcess in _additionalProcesses)
     {
         CloseApplication(additionalProcess, true);
     }
 }
Exemplo n.º 3
0
        public override void KillApplication(TestApplication testApplication, KillApplicationConext context)
        {
            ScreenCaptureCommand.Stop();
            webBrowsers.KillAllWebBrowsers();
            var isSingleWebDev = testApplication.ParameterValue <bool>(ApplicationParams.SingleWebDev);

            if (!testApplication.ParameterValue <bool>(ApplicationParams.DontKillWebDev) && _process != null)
            {
                if (isSingleWebDev)
                {
                    if (context != KillApplicationConext.TestNormalEnded)
                    {
                        IISExpressServerHelper.Stop(_process);
                    }
                }
                else
                {
                    IISExpressServerHelper.Stop(_process);
                }
            }
        }
Exemplo n.º 4
0
 public override void KillApplication(TestApplication testApplication, KillApplicationConext context){
     testApplication.ClearModel();
     testApplication.DeleteParametersFile();
     ScreenCaptureCommand.Stop();
     webBrowsers.KillAllWebBrowsers();
     var isSingleWebDev = testApplication.ParameterValue<bool>(ApplicationParams.SingleWebDev);
     if (!testApplication.ParameterValue<bool>(ApplicationParams.DontKillWebDev)&&_process!=null) {
         if (isSingleWebDev) {
             if (context != KillApplicationConext.TestNormalEnded) {
                 IISExpressServerHelper.Stop(_process);
             }
         }
         else {
             IISExpressServerHelper.Stop(_process);
         }
     }
 }