public void Add_LabelAndBlank_Event() { bool returned_value; new LoadConfig().LoadConfiguration(); TempusSimulatorDemoTest1.Events myrepo2 = new Events(); myrepo2.TempusProConfigurationUtility.AddLabel.Click(); myrepo2.TempusProConfigurationUtility.AddBlank.Click(); string LabelName = myrepo2.TempusProConfigurationUtility.MainDG.CODERESERVEDLABEL.ToString(); string BlankName = myrepo2.TempusProConfigurationUtility.MainDG.CODERESERVEDBLANK.ToString(); System.Diagnostics.Debug.WriteLine(LabelName); System.Diagnostics.Debug.WriteLine(BlankName); //Console.WriteLine(EventText); returned_value = new CompareAttributes().CompareValidation(LabelName, "{Cell:CODE_RESERVED_LABEL}"); if (returned_value == true) { Report.Log(ReportLevel.Success, "New Label is added under Assessment Tab"); } returned_value = new CompareAttributes().CompareValidation(BlankName, "{Cell:CODE_RESERVED_BLANK}"); if (returned_value == true) { Report.Log(ReportLevel.Success, "New Blank is added under Assessment Tab"); } }
public int Clear_All_Standard_Events() { int i = 0; bool returned_value; new LoadConfig().LoadConfiguration(); TempusSimulatorDemoTest1.Events myrepo2 = new Events(); myrepo2.TempusProConfigurationUtility.Events.Click(); myrepo2.TempusProConfigurationUtility.Assessment.Click(); myrepo2.TempusProConfigurationUtility.ReportTypeDropDown.Click(); myrepo2.Report_Type.TempusProConfigurationUtility1.TC3_ReportType.Click(); myrepo2.TempusProConfigurationUtility.Settings.Click(); myrepo2.Report_Type.TempusProConfigurationUtility1.HighlightTC3LinkedEvents.Click(); myrepo2.TempusProConfigurationUtility.ClearAllButton.Click(); myrepo2.TempusProConfigurationUtility.YesButtonForMultipleFunctions.Click(); string EventName = myrepo2.TempusProConfigurationUtility.MainDG.AirwayIntact.ToString(); returned_value = new CompareAttributes().CompareValidation(EventName, "{Cell:Airway Intact}"); if (returned_value == true) { Report.Log(ReportLevel.Success, "TC3 Events are NOT cleared under under Assessment Tab"); } if (!myrepo2.TempusProConfigurationUtility.DownButton.Enabled) { Report.Log(ReportLevel.Success, "All the Standard Events are cleared"); i = 1; } return(i); }
public int ClickOnTabs() { LaunchAppPage myRepo = new LaunchAppPage(); bool returned_value; //LaunchAppPage myRepo = LaunchAppPage.Instance; //myRepo.TempusSimulatorDemoTest1.LaunchAppPageElements.Events.click(); //TempusSimulatorDemoTest1.LaunchAppPage myrepo = new LaunchAppPage(); TempusSimulatorDemoTest1.LaunchAppPage myrepo = LaunchAppPage.Instance; ConfigFileReader obj = new ConfigFileReader(); string config = obj.ConfigFileReaderGeneric(); new LaunchAndCloseApp().OpenApp(obj.appName); myRepo.LaunchAppPageElements.New_Patient_Defaults.Click(); string elementStringVal1 = myrepo.LaunchAppPageElements.New_Patient_Defaults.Title.ToString(); returned_value = new CompareAttributes().CompareValidation(elementStringVal1, "New patient defaults"); if (returned_value == true) { Report.Log(ReportLevel.Success, "Clicked on New patient defaults Tab"); } myRepo.LaunchAppPageElements.Events.Click(); string elementStringVal2 = myrepo.LaunchAppPageElements.Events.Title.ToString(); returned_value = new CompareAttributes().CompareValidation(elementStringVal2, "Events"); if (returned_value == true) { Report.Log(ReportLevel.Success, "Clicked on Events Tab"); } myRepo.LaunchAppPageElements.Communications.Click(); string elementStringVal3 = myrepo.LaunchAppPageElements.Communications.Caption.ToString(); returned_value = new CompareAttributes().CompareValidation(elementStringVal3, "Communications"); if (returned_value == true) { Report.Log(ReportLevel.Success, "Clicked on Communications Tab"); } myRepo.LaunchAppPageElements.Codes_Other.Click(); string elementStringVal4 = myrepo.LaunchAppPageElements.Codes_Other.Caption.ToString(); returned_value = new CompareAttributes().CompareValidation(elementStringVal4, "Codes / Other"); if (returned_value == true) { Report.Log(ReportLevel.Success, "Clicked on Codes / Other Tab"); } Thread.Sleep(10000); int i = new LaunchAndCloseApp().CloseApp(); return(i); }
public void Adding_Events_To_GeneralTab() { bool returned_value; new LoadConfig().LoadConfiguration(); TempusSimulatorDemoTest1.Events myrepo2 = new Events(); myrepo2.TempusProConfigurationUtility.MainDG.General_Bleeding.DoubleClick(); myrepo2.TempusProConfigurationUtility.General.Click(); myrepo2.TempusProConfigurationUtility.MainDG.GeneralTabScrollDown.Click(); string EventText = myrepo2.TempusProConfigurationUtility.MainDG.GeneralTabBleeding.ToString(); //System.Diagnostics.Debug.WriteLine(EventText); //Console.WriteLine(EventText); returned_value = new CompareAttributes().CompareValidation(EventText, "{Cell:Bleeding}"); if (returned_value == true) { Report.Log(ReportLevel.Success, "Bleeding is added under General Tab"); } }
public void Add_New_Event() { bool returned_value; new LoadConfig().LoadConfiguration(); TempusSimulatorDemoTest1.Events myrepo2 = new Events(); myrepo2.TempusProConfigurationUtility.AddEvent.Click(); myrepo2.EventEditor.ButtonOK.Click(); myrepo2.AddEvent.DgName.Code.Click(); TestDataFile TestDataFileReader = new TestDataFile(); TestDataFileReader.TestDataFileReader(); //Ranorex.Keyboard.Press("Test"); Ranorex.Keyboard.Press(TestDataFileReader.NewEventCode); //SendKeys.Send("NewEventCode"); myrepo2.AddEvent.DgName.EventName.Click(); Ranorex.Keyboard.Press(TestDataFileReader.NewEventName); //Ranorex.Keyboard.Press("NewEvent"); myrepo2.AddEvent.DgName.OKButton.Click(); string EventName = myrepo2.TempusProConfigurationUtility.MainDG.NewAddedEvent.ToString(); //System.Diagnostics.Debug.WriteLine(EventText); //Console.WriteLine(EventText); returned_value = new CompareAttributes().CompareValidation(EventName, "{Cell:NewEvent}"); if (returned_value == true) { Report.Log(ReportLevel.Success, "New Event is added under Assessment Tab"); } //i = new LaunchAndCloseApp().CloseAppWithoutSaving(); //return i; }