public static void SelectConnectRepoOption() { try { Ranorex.MenuItem fileMenuItem = FILECONNECT_MENU; if (fileMenuItem != null) { fileMenuItem.ClickThis(); } Reports.ReportLog("SelectConnectRepoOption", Reports.SQLdmReportLevel.Success, null, Config.TestCaseName); } catch (Exception ex) { throw new Exception("Failed : SelectConnectRepoOption :" + ex.Message); } }
public static void SelectGroomingOption() { try { Ranorex.MenuItem groomingMenuItem = GROOMING_MENU; if (groomingMenuItem != null) { groomingMenuItem.ClickThis(); } Reports.ReportLog("SelectGroomingOption", Reports.SQLdmReportLevel.Success, null, Config.TestCaseName); } catch (Exception ex) { throw new Exception("Failed : SelectGroomingOption :" + ex.Message); } }
public static void SelectMaintainceModeMenuItem() { try { Ranorex.MenuItem snoozeMenuItem = MAINTAINANCEMODE_MENU; if (snoozeMenuItem != null) { snoozeMenuItem.ClickThis(); Reports.ReportLog("Selected SelectMaintainceModeMenuItem MenuItem", Reports.SQLdmReportLevel.Success, null, Config.TestCaseName); } else { Reports.ReportLog("MenuItem SelectMaintainceModeMenuItem not Selected", Reports.SQLdmReportLevel.Info, null, Config.TestCaseName); } } catch (Exception ex) { throw new Exception("Failed : SelectMaintainceModeMenuItem :" + ex.Message); } }
public static void SelectSnoozeAlertMenuItem() { try { Ranorex.MenuItem snoozeMenuItem = SNOOZEALERT_MENU; if (snoozeMenuItem != null) { snoozeMenuItem.ClickThis(); Reports.ReportLog("Selected SnoozeAlert MenuItem", Reports.SQLdmReportLevel.Success, null, Config.TestCaseName); } else { Reports.ReportLog("MenuItem SnoozeAlert not Selected", Reports.SQLdmReportLevel.Info, null, Config.TestCaseName); } } catch (Exception ex) { throw new Exception("Failed : SelectSnoozeAlertMenuItem :" + ex.Message); } }
public static void ResumeAlertMenuItem() { try { Ranorex.MenuItem resumeAlert = RESUMEALERT_MENU; if (resumeAlert != null && resumeAlert.Enabled) { resumeAlert.ClickThis(); repo.SnoozeAlertsDialog.OkButton.ClickThis(); Reports.ReportLog("Selected ResumeAlert MenuItem", Reports.SQLdmReportLevel.Success, null, Config.TestCaseName); } else { Reports.ReportLog("MenuItem ResumeAlert not Selected", Reports.SQLdmReportLevel.Info, null, Config.TestCaseName); } } catch (Exception ex) { throw new Exception("Failed : ResumeAlertMenuItem :" + ex.Message); } }