Ejemplo n.º 1
0
        /// <summary>
        /// 关闭测试用的UI进程
        /// </summary>
        public void CloseApp(ApplicationUnderTest app)
        {
            try
            {
                app.Close();
            }
            catch
            {

            }
            if (!app.WaitForControlNotExist(5000))
            {
                try
                {
                    app.Process.Kill();
                }
                catch
                {

                }
            }
        }