public static void SetCommonData()
 {
     if (HelperClass.runDataSource.ToLower().Trim() == "excel")
     {
         ExcelDataHelper.SetExcelCommonData();
     }
     else
     {
         XMLDataHelper.SetXMLCommonData();
     }
 }
        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);
        }
        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);
        }