public void VerifyBeamChartsLink() { LowisMainWindow Lwindow = new LowisMainWindow(); LReportPane lpnae = new LReportPane(); Helper hr = new Helper(); string srchWell1 = ConfigurationManager.AppSettings["testwell1"]; try { string repeat = new string('=', 50); hr.LogtoTextFile(repeat + "Test execution Started" + repeat); Lwindow.All.DoubleClick(); Lwindow.AllWels.Click(); Lwindow.WellTypes.DoubleClick(); Lwindow.AllBeamWells.Click(); Lwindow.RefreshWells.Click(); Lwindow.Start.WaitForControlReady(); Lwindow.Start.Click(); Lwindow.clickMenuitem(".Charts", "Beam Chart Viewer"); //Select a Sepecific Well that can have good data to test these Lwindow.SelectWellfromSearch(srchWell1); DataTable dt = hr.dtFromExcelFile(System.IO.Directory.GetCurrentDirectory() + "\\BeamChartsLinksName.xls", "Sheet1", "ReportTabPage", "All"); Chartclick(dt, Lwindow, lpnae); dt.Clear(); dt = hr.dtFromExcelFile(System.IO.Directory.GetCurrentDirectory() + "\\BeamChartsLinksName.xls", "Sheet1", "ReportTabPage", "Welltest"); lpnae.tabWelltest.Click(); Chartclick(dt, Lwindow, lpnae); dt.Clear(); dt = hr.dtFromExcelFile(System.IO.Directory.GetCurrentDirectory() + "\\BeamChartsLinksName.xls", "Sheet1", "ReportTabPage", "Analysis Charts"); lpnae.tabAlarms.Click(); Chartclick(dt, Lwindow, lpnae); dt.Clear(); dt = hr.dtFromExcelFile(System.IO.Directory.GetCurrentDirectory() + "\\BeamChartsLinksName.xls", "Sheet1", "ReportTabPage", "WSM Charts"); lpnae.tabParameters.Click(); Chartclick(dt, Lwindow, lpnae); dt.Clear(); dt = hr.dtFromExcelFile(System.IO.Directory.GetCurrentDirectory() + "\\BeamChartsLinksName.xls", "Sheet1", "ReportTabPage", "Charts By Controller"); lpnae.tabConfiguration.Click(); Chartclick(dt, Lwindow, lpnae); hr.LogtoTextFile(repeat + "Test execution Ended" + repeat); } catch (Exception ex) { hr.LogtoTextFile("Exeption occured : " + ex.Message.ToString()); } }
public void espwellgrpconfig() { LowisMainWindow Lwindow = new LowisMainWindow(); LReportPane lpnae = new LReportPane(); Helper hr = new Helper(); string srchWell1 = ConfigurationManager.AppSettings["testwell1"]; try { string repeat = new string('=', 50); hr.LogtoTextFile(repeat + "Test execution Started" + repeat); //Lwindow.All.DoubleClick(); //Lwindow.AllWels.Click(); //Lwindow.WellTypes.DoubleClick(); //Lwindow.AllESPWells.Click(); //Lwindow.RefreshWells.Click(); //Lwindow.Start.WaitForControlReady(); //Lwindow.Start.Click(); //Lwindow.clickMenuitem(".Configuration", "ESP Well Group Configuration"); //Select a Sepecific Well that can have good data to test these // Lwindow.SelectWellfromSearch(srchWell1); // DataTable dt = hr.dtFromExcelFile(System.IO.Directory.GetCurrentDirectory() + "\\BeamChartsLinksName.xls", "Sheet1", "ReportTabPage", "All"); string wellnamesfile = @"C:\test\wellnames.txt"; UIObect ui = new UIObect(); // System.IO.File.Open(wellnamesfile, FileMode.Open); StreamReader fs = new StreamReader(wellnamesfile); string line = ""; while ((line = fs.ReadLine()) != null) { Lwindow.SelectWellfromSearch(line.Trim()); Playback.Wait(2000); ui.AddData(System.IO.Directory.GetCurrentDirectory() + "\\ESP_Config_Params.xls", "TC_AEPOC_step_1_3"); } // Lwindow.SelectWellfromSearch(srchWell1); hr.LogtoTextFile(repeat + "Test execution Ended" + repeat); } catch (Exception ex) { hr.LogtoTextFile("Exeption occured : " + ex.Message.ToString()); } }