Esempio n. 1
0
        public void EnableNecessaryMyTestPreferenceSettings()
        {
            //Enable Necessary MyTest Preference Settings
            Logger.LogMethodEntry("Preferences",
                                  "EnableNecessaryMyTestPreferenceSettings",
                                  base.IsTakeScreenShotDuringEntryExit);
            //Intialize the objects
            ToolbarPreferencesPage toolbarPreferencePage = new ToolbarPreferencesPage();
            GeneralPreferencesPage generalPreferencePage = new GeneralPreferencesPage();

            //Select Main Frame
            generalPreferencePage.SelectThePreferenceWindowWithFrame();
            //Allow this Master Course to be delivered as a MyTest Course Preference CheckBox
            toolbarPreferencePage.SelectCourseToolTabPreferenceCheckBox(PreferencesResource.
                                                                        PreferencesPage_DeliverAsMyTestCourse_Checkbox_Id_Locator);
            //Display My Questions Folder in Testbank and Manage Question Bank Preference CheckBox
            toolbarPreferencePage.SelectCourseToolTabPreferenceCheckBox(PreferencesResource.
                                                                        PreferencesPage_DisplayMyQuestionFolder_Checkbox_Id_Locator);
            //Display MyTest Folder in Course Materials Library Preference CheckBox
            toolbarPreferencePage.SelectCourseToolTabPreferenceCheckBox(PreferencesResource.
                                                                        PreferencesPage_DisplayCourseMaterialLibrary_Checkbox_Id_Locator);
            //Enable upgrade (show Upgrade button on toolbar)
            toolbarPreferencePage.SelectCourseToolTabPreferenceCheckBox(PreferencesResource.
                                                                        PreferencesPage_EnableUpgrade_Checkbox_Id_Locator);
            //Show MyTest on toolbar after upgrade
            toolbarPreferencePage.SelectCourseToolTabPreferenceCheckBox(PreferencesResource.
                                                                        PreferencesPage_ShowMyTestToolBarUpgrade_Checkbox_Id_Locator);
            //Save the preferences
            generalPreferencePage.SavePreferences();
            Logger.LogMethodExit("Preferences",
                                 "EnableNecessaryMyTestPreferenceSettings",
                                 base.IsTakeScreenShotDuringEntryExit);
        }
        public void EnableNecessaryCourseToolsTabPreferenceSettings()
        {
            //Enable Necessary Course Tools Tab Preference Settings
            Logger.LogMethodEntry("Preference",
                                  "EnableNecessaryCourseToolsTabPreferenceSettings",
                                  base.IsTakeScreenShotDuringEntryExit);
            ToolbarPreferencesPage toolbarPreferencePage = new ToolbarPreferencesPage();
            GeneralPreferencesPage generalPreferencePage = new GeneralPreferencesPage();

            //Select Main Frame
            generalPreferencePage.SelectThePreferenceWindowWithFrame();
            //Enable the 'Assignment Calendar' link
            toolbarPreferencePage.ClickOnTheAssignmentCalendarDisplayLink();
            //Check the Calendar checkbox preference
            toolbarPreferencePage.SetCalendarCheckBoxPreference();
            //Select MyTestTab Enable the Preference CheckBox
            toolbarPreferencePage.SelectCourseToolTabPreferenceCheckBox(PreferencesResource.
                                                                        PreferencesPage_CourseTool_Select_MyTest_Checkbox_Id_Locator);
            //Select MapLearning Objectives Enable the Preference CheckBox
            toolbarPreferencePage.SelectCourseToolTabPreferenceCheckBox(PreferencesResource.
                                                                        PreferencesPage_CourseTool_Select_MapLearningObjectives_Checkbox_Id_Locator);
            //Select MapLearning Objectives To Question Enable the Preference CheckBox
            toolbarPreferencePage.SelectCourseToolTabPreferenceCheckBox(PreferencesResource.
                                                                        PreferencesPage_CourseTool_MapLearningObjectivesToQuestion_Checkbox_Id_Locator);
            //Select Communicate Teacher Side Enable the Preference CheckBox
            toolbarPreferencePage.SelectCourseToolTabPreferenceCheckBox(PreferencesResource.
                                                                        PreferencesPage_CourseTool_Communicate_TeacherSide_Checkbox_Id_Locator);
            //Select Communicate Mail Teacher Side Enable the Preference CheckBox
            toolbarPreferencePage.SelectCourseToolTabPreferenceCheckBox(PreferencesResource.
                                                                        PreferencesPage_CourseTool_Mail_TeacherSide_Checkbox_Id_Locator);
            //Select Communicate Student Side Enable the Preference CheckBox
            toolbarPreferencePage.SelectCourseToolTabPreferenceCheckBox(PreferencesResource.
                                                                        PreferencesPage_CourseTool_Communicate_StudentSide_Checkbox_Id_Locator);
            //Select Communicate Mail Student Side Enable the Preference CheckBox
            toolbarPreferencePage.SelectCourseToolTabPreferenceCheckBox(PreferencesResource.
                                                                        PreferencesPage_CourseTool_Mail_StudentSide_Checkbox_Id_Locator);
            //Select Student Side Course Calendar By Default subtab
            toolbarPreferencePage.SelectCourseToolTabPreferenceCheckBox(PreferencesResource.
                                                                        PreferencesPage_CourseToolCourse_Calendar_RadioButton_Id_Locator);
            //Select Enrollment 'Manage Roster' By Default subtab
            toolbarPreferencePage.SelectCourseToolTabPreferenceCheckBox(PreferencesResource.
                                                                        PreferencesPage_CourseToolCourse_Enrollment_Roster_RadioButton_Id_Locator);
            //Save The Preference
            generalPreferencePage.SavePreferences();
            Logger.LogMethodExit("Preference",
                                 "EnableNecessaryCourseToolsTabPreferenceSettings",
                                 base.IsTakeScreenShotDuringEntryExit);
        }
Esempio n. 3
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);
        }