Esempio n. 1
0
        public XmlHandlerTest()
        {
            string fileDir = @"D:\github\res\TestCase1.xlsx";
            ExcelAnalysisByEpplus excelAnalysis = new ExcelAnalysisByEpplus(fileDir);

            _tcDic = excelAnalysis.ReadExcel();
        }
        public TestSuiteGeneratorTest()
        {
            string fileDir = @"D:\github\TestLinkConverter\TestLinkConverter\bin\Debug\TestCase_20190912105226.xlsx";
            ExcelAnalysisByEpplus excelAnalysis = new ExcelAnalysisByEpplus(fileDir);

            _tcDic = excelAnalysis.ReadExcel();
        }
Esempio n. 3
0
 /// <summary>
 /// Excel转换为XML
 /// </summary>
 /// <param name="fileDir">文件路径</param>
 private void ExcelToXml(string fileDir)
 {
     _ = GoogleAnalyticsTracker.Tracker("Work", "ExcelToXml");
     try
     {
         ExcelAnalysisByEpplus excelAnalysis = new ExcelAnalysisByEpplus(fileDir);
         _tcDic = excelAnalysis.ReadExcel();
     }
     catch (Exception ex)
     {
         this._logger.Error(ex);
         OutputDisplay.ShowMessage(ex.ToString(), Color.Red);
         return;
     }
 }
Esempio n. 4
0
 /// <summary>
 /// Excel转换为XML
 /// </summary>
 /// <param name="fileDir">文件路径</param>
 private void ExcelToXml(string fileDir)
 {
     try
     {
         ExcelAnalysisByEpplus excelAnalysis = new ExcelAnalysisByEpplus(fileDir);
         _tcDic = excelAnalysis.ReadExcel();
         XmlHandler xh = new XmlHandler(_tcDic);
         xh.WriteXml();
     }
     catch (Exception ex)
     {
         this._logger.Error(ex);
         OutputDisplay.ShowMessage(ex.ToString(), Color.Red);
         return;
     }
 }