Esempio n. 1
0
        public void ThenICreateStudyPlanFromCourseMaterialTab()
        {
            try
            {
                GenericHelper.WaitUtilWindow("Course Materials");
                _contentLibraryUxPage.ClickAddCourseMaterialsButton();
                if (!_contentLibraryUxPage.IsStudyPlanOptionPresent())
                {
                    GenericTestStep.StepToNavigateToTheTab("Preferences");
                    _generalPreferencesPage.SelectSkillsAndStandards();
                    _standardSkillPreferencesPage.SelectNeitherRadioButtonAndSave();
                    GenericTestStep.StepToNavigateToTheTab("Course Materials");
                    _contentLibraryUxPage.GetControlToLeftFrame();
                    _contentLibraryUxPage.ClickAddCourseMaterialsButton();
                }

                //create study plan
                string studyPlanName = GenericHelper.GenerateUniqueVariable("SP");
                _contentLibraryUxPage.StudyPlanCreation(studyPlanName);
                _contentLibraryUxPage.GetControlToLeftFrame();
                string SPName = DatabaseTools.GetActivityName(Enumerations.ActivityType.StudyPlan);
                GenericTestStep.StepToAddTheActivityToMyCourse(SPName);
            }
            catch (Exception e)
            {
                GenericHelper.Logs(e.ToString(), "FAILED");
                Assert.Fail(e.ToString());
            }
        }