Code: Select all
string xlPath = "[i][filePath][/i]";
Microsoft.Office.Interop.Excel.Application xlApp = new Microsoft.Office.Interop.Excel.Application();
Microsoft.Office.Interop.Excel.Workbook xlBook = xlApp.Workbooks.Open(xlPath);
Microsoft.Office.Interop.Excel.Worksheet xlSheet = (Worksheet)xlBook.Worksheets["Sheet1"];
Microsoft.Office.Interop.Excel.Range xlrange = (Range)xlSheet.Cells[2,2];
xlApp.DisplayAlerts = false;
string[] sArray = new string[] { TestSuiteName, StartDTG, SuiteTime.ToString("mm\\:ss"), sEnviroment , sDomian , sServerName};
Range rng = xlApp.get_Range("A2", "F2");
rng.Value = sArray;
xlBook.Save();
xlBook.Close();
totalsuccesstestcasecount="nn"
totalfailedtestcasecount="nn"
totalblockedtestcasecount="nn"
Is there a way of getting the details from the rxlog.data file I require or is there a simpler method to get these values?