/// <summary> /// 关闭测试用的UI进程 /// </summary> public void CloseApp(ApplicationUnderTest app) { try { app.Close(); } catch { } if (!app.WaitForControlNotExist(5000)) { try { app.Process.Kill(); } catch { } } }
/// <summary> /// 关闭测试用的UI进程 /// </summary> public void CloseApp(ApplicationUnderTest app) { try { app.Close(); } catch { } if (!app.WaitForControlNotExist(5000)) { try { app.Process.Kill(); } catch { } } }