Esempio n. 1
0
        public void SetTheStandardsAndSkillsPreference()
        {
            //To Set The Standards and Skills Preferences For The Course
            Logger.LogMethodEntry("Preferences", "SetTheStandardsAndSkillsPreference",
                                  base.IsTakeScreenShotDuringEntryExit);
            GeneralPreferencesPage generalPreferencePage = new GeneralPreferencesPage();

            //Select Main Frame
            generalPreferencePage.SelectThePreferenceWindowWithFrame();
            //Set The Course Standard Skill Preferences
            new StandardSkillPreferencesPage().SetTheCourseStandardSkillPreferences
                (PreferencesResource.PreferencesPage_SkillFramework_Name,
                PreferencesResource.PreferencesPage_StandardFramework_Name);
            generalPreferencePage.SavePreferences();
            Logger.LogMethodExit("Preferences", "SetTheStandardsAndSkillsPreference",
                                 base.IsTakeScreenShotDuringEntryExit);
        }
        public void EnableNecessaryRosterPreferenceSettings()
        {
            //Enable Necessary MyTest Preference Settings
            Logger.LogMethodEntry("Preferences",
                                  "EnableNecessaryRosterPreferenceSettings",
                                  base.IsTakeScreenShotDuringEntryExit);
            GeneralPreferencesPage generalPreferencePage = new GeneralPreferencesPage();

            //Select Main Frame
            generalPreferencePage.SelectThePreferenceWindowWithFrame();
            //Select Manage Roster Preference Settings
            new RosterPreferencesPage().SelectManageRosterPreferenceSettings();
            //Save the preferences
            generalPreferencePage.SavePreferences();
            Logger.LogMethodExit("Preferences",
                                 "EnableNecessaryRosterPreferenceSettings",
                                 base.IsTakeScreenShotDuringEntryExit);
        }
        public void ClickOnCalendarDisplayLinkUnderContentTab()
        {
            //Click On 'Display under Content tab' Link Under
            Logger.LogMethodEntry("Preference",
                                  "ClickOnCalendarDisplayLinkUnderContentTab"
                                  , base.IsTakeScreenShotDuringEntryExit);
            GeneralPreferencesPage generalPreferencePage = new GeneralPreferencesPage();

            //Select Main Frame
            generalPreferencePage.SelectThePreferenceWindowWithFrame();
            //Click On 'Display under Content tab' Link Under
            new ToolbarPreferencesPage().ClickOnTheAssignmentCalendarDisplayLink();
            //Click on 'Save Preferences' Button
            generalPreferencePage.SavePreferences();
            Logger.LogMethodExit("Preference",
                                 "ClickOnCalendarDisplayLinkUnderContentTab"
                                 , base.IsTakeScreenShotDuringEntryExit);
        }
        public void EnableNecessaryActivitiesTabPreferenceSettings()
        {
            //Enable Necessary Course Tools Tab Preference Settings
            Logger.LogMethodEntry("Preference",
                                  "EnableNecessaryActivitiesTabPreferenceSettings",
                                  base.IsTakeScreenShotDuringEntryExit);
            GeneralPreferencesPage generalPreferencePage = new GeneralPreferencesPage();

            //Select Main Frame
            generalPreferencePage.SelectThePreferenceWindowWithFrame();
            //Enable the Enable "Remove multiple attempt activities from a student’s To Do list when a student-
            //scores at or above the proficiency threshold" link
            new ActivitiesPreferencesPage().ClickTheRemoveMultipleAttemptCheckBox();
            //Save The Preference
            generalPreferencePage.SavePreferences();
            Logger.LogMethodExit("Preference",
                                 "EnableNecessaryActivitiesTabPreferenceSettings",
                                 base.IsTakeScreenShotDuringEntryExit);
        }
 /// <summary>
 /// Enable SIM5 Questions Preference.
 /// </summary>
 public void EnableSIM5QuestionsPreference()
 {
     //Enable SIM5 Questions Preference
     logger.LogMethodEntry("QuestionsPreferencesPage",
                           "EnableSIM5QuestionsPreference", base.IsTakeScreenShotDuringEntryExit);
     try
     {
         GeneralPreferencesPage generalPreferencesPage = new GeneralPreferencesPage();
         //Select Window And Frame
         generalPreferencesPage.SelectThePreferenceWindowWithFrame();
         //Wait For Sim5 Questions Radiobutton
         base.WaitForElement(By.Id(QuestionsPreferencesPageResource.
                                   QuestionsPreferences_Page_Sim5Questions_Preference_Radio_Id_Locator));
         if (!base.IsElementSelectedById(QuestionsPreferencesPageResource.
                                         QuestionsPreferences_Page_Sim5Questions_Preference_Radio_Id_Locator))
         {
             //Get Lock Icon Status
             string getEnableSIM5questionsLockIconStatus =
                 base.GetClassAttributeValueById(QuestionsPreferencesPageResource.
                                                 QuestionsPreferences_Page_Sim5Questions_LockIcon_Id_Locator);
             if (getEnableSIM5questionsLockIconStatus ==
                 QuestionsPreferencesPageResource.
                 QuestionsPreferences_Page_LockIcon_Status_Value)
             {
                 //Click On Lock Icon to Unlock Preference
                 base.ClickButtonById(QuestionsPreferencesPageResource.
                                      QuestionsPreferences_Page_Sim5Questions_LockIcon_Id_Locator);
             }
             //Select 'Enable SIM5 Questions' Preference Radiobutton
             base.SelectRadioButtonById(QuestionsPreferencesPageResource.
                                        QuestionsPreferences_Page_Sim5Questions_Preference_Radio_Id_Locator);
         }
         //Save Preferences
         generalPreferencesPage.SavePreferences();
     }
     catch (Exception e)
     {
         ExceptionHandler.HandleException(e);
     }
     logger.LogMethodExit("QuestionsPreferencesPage",
                          "EnableSIM5QuestionsPreference", base.IsTakeScreenShotDuringEntryExit);
 }
 /// <summary>
 /// Enable 'Grader Project' Question Type Preference.
 /// </summary>
 public void EnableGraderProjectQuestionTypePreference()
 {
     //Enable 'Grader Project' Question Type Preference
     logger.LogMethodEntry("QuestionsPreferencesPage",
                           "EnableGraderProjectQuestionTypePreference", base.IsTakeScreenShotDuringEntryExit);
     try
     {
         GeneralPreferencesPage generalPreferencesPage = new GeneralPreferencesPage();
         //Select Window And Frame
         generalPreferencesPage.SelectThePreferenceWindowWithFrame();
         //Wait For 'Grader Project' Question Type Preference Checkbox
         base.WaitForElement(By.Id(QuestionsPreferencesPageResource.
                                   QuestionsPreferences_Page_GraderProject_Preference_Id_Locator));
         if (!base.IsElementSelectedById(QuestionsPreferencesPageResource.
                                         QuestionsPreferences_Page_GraderProject_Preference_Id_Locator))
         {
             //Get Lock Icon Status
             string getGraderProjectQuestionTypeLockIconStatus =
                 base.GetClassAttributeValueById(QuestionsPreferencesPageResource.
                                                 QuestionsPreferences_Page_GraderProject_LockIcon_Id_Locator);
             if (getGraderProjectQuestionTypeLockIconStatus ==
                 QuestionsPreferencesPageResource.
                 QuestionsPreferences_Page_LockIcon_Status_Value)
             {
                 //Click On Lock Icon to Unlock Preference
                 base.ClickButtonById(QuestionsPreferencesPageResource.
                                      QuestionsPreferences_Page_GraderProject_LockIcon_Id_Locator);
             }
             //Select 'Grader Project' Question Type Preference Checkbox
             base.SelectCheckBoxById(QuestionsPreferencesPageResource.
                                     QuestionsPreferences_Page_GraderProject_Preference_Id_Locator);
         }
         //Save Preferences
         generalPreferencesPage.SavePreferences();
     }
     catch (Exception e)
     {
         ExceptionHandler.HandleException(e);
     }
     logger.LogMethodExit("QuestionsPreferencesPage",
                          "EnableGraderProjectQuestionTypePreference", base.IsTakeScreenShotDuringEntryExit);
 }
        public void EnableBlackboardVoiceAuthoringOption()
        {
            // Enable Blackboard Collaborate Voice Authoring Preference option
            Logger.LogMethodEntry("Preference",
                                  "EnableBlackboardVoiceAuthoringOption",
                                  base.IsTakeScreenShotDuringEntryExit);
            GeneralPreferencesPage generalPreferencePage = new GeneralPreferencesPage();

            //Select The Main Frame
            generalPreferencePage.SelectThePreferenceWindowWithFrame();
            //Enable Blackboard Collaborate Voice Authoring Option
            generalPreferencePage.EnableBlackBoardCollaborateVoiceAuthoring();
            //Fill Black board Fname Lname Email TextBoxes
            generalPreferencePage.EnterBlackBoardIMDetails();
            //Save The Preference
            generalPreferencePage.SavePreferences();
            Logger.LogMethodExit("Preference",
                                 "EnableBlackboardVoiceAuthoringOption",
                                 base.IsTakeScreenShotDuringEntryExit);
        }
        public void EnableNecessaryGradingTabPreferenceSettings()
        {
            //Enable Necessary Grades Preference Settings
            Logger.LogMethodEntry("Preference",
                                  "EnableNecessaryGradingTabPreferenceSettings",
                                  base.IsTakeScreenShotDuringEntryExit);
            GeneralPreferencesPage generalPreferencePage = new GeneralPreferencesPage();

            //Select Main Frame
            generalPreferencePage.SelectThePreferenceWindowWithFrame();
            //Declare object
            GradingPreferencesPage gradePreferencesPage =
                new GradingPreferencesPage();

            //Enable 'Apply Grade Schema' Option
            gradePreferencesPage.EnableApplyGradeSchemaOption();
            //Save The Preference
            generalPreferencePage.SavePreferences();
            Logger.LogMethodExit("Preference",
                                 "EnableNecessaryGradingTabPreferenceSettings",
                                 base.IsTakeScreenShotDuringEntryExit);
        }
Esempio n. 9
0
        public void EnableNecessaryGeneralTabPreferenceSettings()
        {
            //Enable Necessary General Preference Settings
            Logger.LogMethodEntry("Preferences",
                                  "EnableNecessaryGeneralTabPreferenceSettings",
                                  base.IsTakeScreenShotDuringEntryExit);
            //Intialize the objects
            ToolbarPreferencesPage toolbarPreferencePage = new ToolbarPreferencesPage();
            GeneralPreferencesPage generalPreferencePage = new GeneralPreferencesPage();

            //Select Main Frame
            generalPreferencePage.SelectThePreferenceWindowWithFrame();
            //Enable Embedded Report in General Preferences Page
            generalPreferencePage.EnableGeneralTabEmbeddedReportPreferenceSettings();
            //Enable Try Again Preference CheckBox
            toolbarPreferencePage.SelectCourseToolTabPreferenceCheckBox(PreferencesResource.
                                                                        PreferencesPage_EnableTryAgain_Checkbox_Id_Locator);
            //Save the preferences
            generalPreferencePage.SavePreferences();
            Logger.LogMethodExit("Preferences",
                                 "EnableNecessaryGeneralTabPreferenceSettings",
                                 base.IsTakeScreenShotDuringEntryExit);
        }
        public void EnableNecessaryGeneralTabPreferenceSettings()
        {
            //Enable Necessary General Preference Settings
            Logger.LogMethodEntry("Preferences",
                                  "EnableNecessaryGeneralTabPreferenceSettings",
                                  base.IsTakeScreenShotDuringEntryExit);
            GeneralPreferencesPage generalPreferencePage = new GeneralPreferencesPage();

            //Select Main Frame
            generalPreferencePage.SelectThePreferenceWindowWithFrame();
            //Enable Calendar Preference
            generalPreferencePage.EnableGeneralTabCalendarPreferenceSettings();
            //Enable Embedded Report in General Preferences Page
            generalPreferencePage.EnableGeneralTabEmbeddedReportPreferenceSettings();
            //Enable Black board IM Preference Settings
            generalPreferencePage.EnableBlackboardIMPreferenceSettings();
            //Enable Character Palate Preference Settings
            generalPreferencePage.EnableCharacterPalatePreferenceSettings();
            //Save the preferences
            generalPreferencePage.SavePreferences();
            Logger.LogMethodExit("Preferences",
                                 "EnableNecessaryGeneralTabPreferenceSettings",
                                 base.IsTakeScreenShotDuringEntryExit);
        }