コード例 #1
0
 public static void SetCommonData()
 {
     if (HelperClass.runDataSource.ToLower().Trim() == "excel")
     {
         ExcelDataHelper.SetExcelCommonData();
     }
     else
     {
         XMLDataHelper.SetXMLCommonData();
     }
 }
コード例 #2
0
        public static int GetIterationCount(TestCase currentTestCase)
        {
            int iterationCount = 0;

            switch (HelperClass.runDataSource.ToLower())
            {
            case "excel":
                iterationCount = ExcelDataHelper.GetIterationCount(currentTestCase);
                break;

            case "xml":
                iterationCount = XMLDataHelper.GetIterationCount(currentTestCase);
                break;
            }
            return(iterationCount);
        }
コード例 #3
0
        public static DataHelper GetDataHelper(TestCase currentTestCase)
        {
            DataHelper dataHelper;

            switch (HelperClass.runDataSource.ToLower())
            {
            case "excel":
                dataHelper = new ExcelDataHelper(currentTestCase);
                break;

            case "xml":
                dataHelper = new XMLDataHelper(currentTestCase);
                break;

            default:
                dataHelper = new ExcelDataHelper();
                break;
            }
            return(dataHelper);
        }