bool StartProcess()
 {
     try
     {
         //Steps.Cell_test();
         Steps.ClickAdministration();
         Steps.ClickApplicationSecurity();
         Steps.ClickEnableSecurity();
         Steps.AcceptExceptionMessage();
         Steps.ClickToAddUsers();
         Steps.ClickNextButton();
         Steps.EnterDomianUserName(Constants.NewSqlUser);
         Steps.SelectSqlAuthentication();
         Steps.ClickNextButton();
         Steps.ClickOptionBtn_ViewDataAcknowledgwAlarm();
         Steps.ClickNextButton();
         Steps.SelectServers();
         Steps.ClickAddButton();
         Steps.ClickNextButton();
         Steps.ClickFinishButton();
         Steps.VerifySqlUserAdded();
         //Steps.VerifyViewDataAcknowledgwAlarmIsSelected(Constants.SqlUser);
         Steps.ChangePermission(Constants.SqlUser);
         Steps.VerifyPermissionChanged();
         Steps.DeleteAddedUser();
     }
     catch (Exception ex)
     {
         Reports.ReportLog(ex.Message, Reports.SQLdmReportLevel.Fail, null, Config.TestCaseName);
     }
     return(true);
 }
Exemple #2
0
 bool StartProcess()
 {
     try
     {
         Steps.ClickAdministration();
         Steps.ClickApplicationSecurity();
         Steps.ClickEnableSecurity();
         Steps.AcceptExceptionMessage();
         Steps.ClickToAddUsers();
         Steps.ClickNextButton();
         Steps.EnterDomianUserName(Constants.NewSqlUser);
         Steps.SelectSqlAuthentication();
         Steps.ClickNextButton();
         Steps.ClickOptionBtn_ViewDataAcknowledgwAlarm();
         Steps.ClickNextButton();
         Steps.SelectServers();
         Steps.ClickAddButton();
         Steps.ClickNextButton();
         Steps.ClickFinishButton();
         Steps.VerifySqlUserAdded();
         Steps.ClickServersInLeftPane();
         Steps.RightClickMonitoredServer();
         Steps.ClickMaintainceModeContextMenu();
         Steps.VerifyMaintainceModeContextMenuItems();
         Steps.EnableMaintainceMode();
         Steps.VerifyMaintainceModeIsChanged();
     }
     catch (Exception ex)
     {
         Validate.Fail(ex.Message);
     }
     return(true);
 }
Exemple #3
0
 bool StartProcess()
 {
     try
     {
         Steps.ClickAdministration();
         Steps.ClickApplicationSecurity();
         Steps.ClickEnableSecurity();
         Steps.AcceptExceptionMessage();
         Steps.ClickToAddUsers();
         Steps.ClickNextButton();
         Steps.EnterDomianUserName(Constants.NewSqlUser);
         Steps.SelectSqlAuthentication();
         Steps.ClickNextButton();
         Steps.ClickOptionBtn_ViewDataAcknowledgwAlarm();
         Steps.ClickNextButton();
         Steps.SelectServers();
         Steps.ClickAddButton();
         Steps.ClickNextButton();
         Steps.ClickFinishButton();
         Steps.VerifySqlUserAdded();
         Steps.VerifyViewDataAcknowledgwAlarmIsSelected(Constants.SqlUser);
         Steps.ClickCancelPermissionProperties();
         Steps.DeleteAddedUser();
     }
     catch (Exception ex)
     {
         Validate.Fail(ex.Message);
     }
     return(true);
 }
 bool StartProcess()
 {
     try
     {
         Common.ClickStartConsole();
         Common.ConnectDMRepoWindowsUser();
         Steps.ClickAdministration();
         Steps.ClickApplicationSecurity();
         Steps.ClickEnableSecurity();
         Steps.AcceptExceptionMessage();
         Steps.ClickToAddUsers();
         Steps.ClickNextButton();
         Steps.EnterDomianUserName(Constants.NewWindowsUser);
         Steps.ClickNextButton();
         Steps.ClickOptionBtn_ViewDataAcknowledgwAlarm();
         Steps.ClickNextButton();
         Steps.SelectServers();
         Steps.ClickAddButton();
         Steps.ClickNextButton();
         Steps.ClickFinishButton();
         Steps.VerifyWindowsUserAdded();
         Steps.ClickWindowsUserToDelete();
         Steps.DeleteAddedUser();
         Common.UpdateStatus(1);   // 1 : Pass
     }
     catch (Exception ex)
     {
         Common.UpdateStatus(5);         // 5 : fail
         Validate.Fail(ex.Message);
     }
     return(true);
 }
Exemple #5
0
 bool StartProcess()
 {
     try
     {
         Steps.ClickAdministration();
         Steps.ClickApplicationSecurity();
         Steps.ClickEnableSecurity();
         Steps.AcceptExceptionMessage();
         Steps.ClickToAddUsers();
         Steps.ClickNextButton();
         Steps.EnterDomianUserName(Constants.NewSqlUser);
         Steps.SelectSqlAuthentication();
         Steps.ClickNextButton();
         Steps.ClickOptionBtn_ViewDataAcknowledgwAlarm();
         Steps.ClickNextButton();
         Steps.SelectServers();
         Steps.ClickAddButton();
         Steps.ClickNextButton();
         Steps.ClickFinishButton();
         Steps.VerifySqlUserAdded();
         AutomationSQLdm.Grooming_Modifications.Steps.ClickOnTools();
         Steps.SelectSnoozeAlertMenuItem();
         Steps.SetSnoozeAlertTime();
         AutomationSQLdm.Grooming_Modifications.Steps.ClickOnTools();
         Steps.VerifySnoozeAlertApplied();
     }
     catch (Exception ex)
     {
         Validate.Fail(ex.Message);
     }
     return(true);
 }
        bool StartProcess()
        {
            try
            {
                Common.ClickStartConsole();
                Common.ConnectDMRepoWindowsUser();
                Steps.ClickAdministration();
                Steps.ClickApplicationSecurity();
                Steps.ClickEnableSecurity();
                Steps.AcceptExceptionMessage();
                Steps.ClickToAddUsers();
                Steps.ClickNextButton();
                Steps.EnterDomianUserName(Constants.NewSqlUser);
                Steps.SelectSqlAuthentication();
                Steps.ClickNextButton();
                Steps.ClickOptionBtn_ViewDataAcknowledgwAlarm();
                Steps.ClickNextButton();
                Steps.SelectServers();
                Steps.ClickAddButton();
                Steps.ClickNextButton();
                Steps.ClickFinishButton();
                Steps.VerifySqlUserAdded();

                //Login DM with SQL
                Steps.ConnectDMRepo(Constants.SqlUser);

                AutomationSQLdm.Grooming_Modifications.Steps.ClickOnTools();
//            Steps.SelectSnoozeAlertMenuItem(); // will create  for maintaince mode
                Steps.SelectMaintainceModeMenuItem();
//            AutomationSQLdm.Grooming_Modifications.Steps.ClickOnTools(); //uncomment it will required here.
//            Steps.VerifySnoozeAlertApplied(); //  will create  for maintaince mode

                // will delete the below code , kept just for reference
//			  Steps.ClickServersInLeftPane();
//			  Steps.RightClickMonitoredServer();
//            Steps.ClickMaintainceModeContextMenu();
                Steps.VerifyMaintainceModeContextMenuItems();
//            Steps.EnableMaintainceMode();
//            Steps.VerifyMaintainceModeIsChanged();
                Common.UpdateStatus(1);           // 1 : Pass
            }
            catch (Exception ex)
            {
                Common.UpdateStatus(5);         // 5 : fail
                Validate.Fail(ex.Message);
            }
            finally
            {
                Steps.ConnectDMRepo(Constants.WindowsUser);
                Steps.ClickAdministration();
                Steps.ClickSqlUserToDelete();
                Steps.DeleteAddedUser();
            }
            return(true);
        }
Exemple #7
0
 bool StartProcess()
 {
     try
     {
         Common.ClickStartConsole();
         Common.ConnectDMRepoWindowsUser();
         Steps.ClickAdministration();
         Steps.ClickApplicationSecurity();
         Steps.ClickEnableSecurity();
         Steps.AcceptExceptionMessage();
         Steps.ClickToAddUsers();
         Steps.ClickNextButton();
         Steps.EnterDomianUserName(Constants.NewSqlUser);
         Steps.SelectSqlAuthentication();
         Steps.ClickNextButton();
         Steps.ClickOptionBtn_ViewDataAcknowledgwAlarm();
         Steps.ClickNextButton();
         Steps.SelectServers();
         Steps.ClickAddButton();
         Steps.ClickNextButton();
         Steps.ClickFinishButton();
         Steps.VerifySqlUserAdded();
         Steps.ClickServersInLeftPane();
         Steps.RightClickAllServer_MyViews();
         Steps.ClickMaintainceModeContextMenu();
         Steps.VerifyMaintainceModeContextMenuItems();
         Steps.EnableMaintainceMode();
         Steps.VerifyMaintainceModeIsChanged();
         Common.UpdateStatus(1);   // 1 : Pass
     }
     catch (Exception ex)
     {
         Common.UpdateStatus(5);         // 5 : fail
         Validate.Fail(ex.Message);
     }
     finally
     {
         Steps.ClickAdministration();
         Steps.ClickSqlUserToDelete();
         Steps.DeleteAddedUser();
     }
     return(true);
 }
 bool StartProcess()
 {
     try
     {
         Steps.ClickAdministration();
         Steps.ClickApplicationSecurity();
         Steps.ClickEnableSecurity();
         Steps.AcceptExceptionMessage();
         Steps.ClickToAddUsers();
         Steps.ClickNextButton();
         Steps.EnterDomianUserName(Constants.NewSqlUser);
         Steps.SelectSqlAuthentication();
         Steps.ClickNextButton();
         Steps.ClickOptionBtn_ViewDataAcknowledgwAlarm();
         Steps.ClickNextButton();
         Steps.SelectServers();
         Steps.ClickAddButton();
         Steps.ClickNextButton();
         Steps.ClickFinishButton();
         Steps.VerifySqlUserAdded();
         Steps.ClickServersInLeftPane();
         Steps.RightClickAllServer();
         Steps.ClickSnoozeAlertContextMenu();
         Steps.SetSnoozeAlertTime();
         Steps.VerifyServerSnoozed();
     }
     catch (Exception ex)
     {
         Validate.Fail(ex.Message);
     }
     finally
     {
         Steps.ClickAdministration();
         Steps.ClickWindowsUserToDelete();
         Steps.DeleteAddedUser();
     }
     return(true);
 }