/// <summary> /// 恢复测试集的环境 /// </summary> /// <param name="testCluster"></param> /// <returns></returns> private bool RestoreClusterScripts(ITestCluster testCluster) { bool RestoreClusterScriptsRes = true; try { testCluster.RestoreScripts(); } catch { RestoreClusterScriptsRes = false; throw new Exception("恢复环境失败"); } finally { } return(RestoreClusterScriptsRes); }