/// <summary> /// 执行测试集的初始化工作 /// </summary> /// <param name="testCluster"></param> /// <param name="lstCurRunLogicData"></param> /// <returns></returns> private bool SetupTestClusterScripts(ITestCluster testCluster, List <Dictionary <string, string> > lstCurRunLogicData) { Dictionary <string, string>[] TestCases = lstCurRunLogicData.ToArray(); bool SetupTestClusterScripsRes = true; try { if (!testCluster.SetupScripts()) { SetupTestClusterScripsRes = false; throw new Exception("执行配置脚本返回值为: False!"); } } catch { } finally { } return(SetupTestClusterScripsRes); }