public void populateDSCommand()
 {
     UseDB_ = FrameworkParametersClass.UseControlDB;
     if (UseDB_)
     {
         DBClass dBClass = new DBClass();
         dBClass.hndRunStoredSelectProcedure.addHandlers(new string[] { "logFrameworkDebugEvent", "raiseExceptionForEmptyDatasetToActiveOutput",
             "logAllStoredExceptionEventsToFramework", "quitFrameworkOnException" });
         dsCommand = dBClass.RunStoredSelectProcedure("SelectTestsFromtblCommandAndControl");
     }
     else
     {
         ExcelClass excelClass = new ExcelClass();
         excelClass.hndImportExcelXLS.addHandlers(new string[] { "logFrameworkDebugEvent", "raiseExceptionForEmptyDatasetToActiveOutput",
             "logAllStoredExceptionEventsToFramework", "quitFrameworkOnException" });
         dsCommand = excelClass.ImportExcelXLS(FrameworkParametersClass.CommandExcelPath, true);
     }
     hndPopulateDSCommand.fire(this);
 }
Пример #2
0
        public void populateExcelTest()
        {
            //Copy down a reference version to the results directory
            FileManagerClass fileManager = new FileManagerClass();
            fileManager.hndCopyFileToLocation.addHandlers(new string[] { "logFrameworkDebugEvent", "logAllStoredExceptionEventsToFramework",
                    "quitFrameworkOnException" });
            fileManager.copyFileToLocation(TestParametersClass.TestDataFolder, TestParametersClass.TestBeingRunFolder, TestParametersClass.TestDataFilename);

            ExcelClass TestExcelImport = new ExcelClass();
            TestExcelImport.hndImportExcelXLS.addHandlers(new string[] { "logFrameworkDebugEvent", "raiseExceptionForEmptyDatasetToActiveOutput",
                    "logAllStoredExceptionEventsToFramework", "quitFrameworkOnException" });
            TestDataSet_ = TestExcelImport.ImportExcelXLS(TestParametersClass.TestDataPath, true);

            TestDataTable_ = TestDataSet_.Tables[0];

            hndPopulateExcelTest.fire(this);
        }