Beispiel #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);
     }
 }
Beispiel #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);
     }
 }
Beispiel #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);
                }
            }
        }
 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);
         }
     }
 }