예제 #1
0
        public void BuildStrTest()
        {
            TestSuiteGenerator tsg = new TestSuiteGenerator(_tcDic);
            var        testSuite   = tsg.BuildTestSuite();
            XmlHandler xh          = new XmlHandler(_tcDic);

            xh.BuildStr(testSuite);
        }
예제 #2
0
        /// <summary>
        /// Excel转换为XML
        /// </summary>
        /// <param name="fileDir">文件路径</param>
        private void ExcelToXml(string fileDir)
        {
            try
            {
                ExcelAnalysisByEpplus excelAnalysis = new ExcelAnalysisByEpplus(fileDir);
                _tcDic = excelAnalysis.ReadExcel();

                var tsg   = new TestSuiteGenerator(_tcDic);
                var tsDic = tsg.BuildTestSuite();

                XmlHandler xh = new XmlHandler(_tcDic);
                xh.WriteXml2(xh.BuildStr(tsDic));
            }
            catch (Exception ex)
            {
                this._logger.Error(ex);
                OutputDisplay.ShowMessage(ex.ToString(), Color.Red);
                return;
            }
        }
        public void BuildTestSuiteTest()
        {
            TestSuiteGenerator tsg = new TestSuiteGenerator(_tcDic);

            tsg.BuildTestSuite();
        }