示例#1
0
 public void P20_1_b13_View_Post_Access_Items_to_Document_27108()
 {
     CommonSection.CreteNewDocuemnt(DocumentTitle + "Child");
     _test.Log(Status.Info, "Create a Document");
     CommonSection.CreteNewDocuemnt(DocumentTitle + "Parent");
     _test.Log(Status.Info, "Create a Document");
     AdminContentDetailsPage.AddPrequisites(DocumentTitle + "Child");
     _test.Log(Status.Info, "Click Edit Prerequisite and add Prequisite");
     Assert.IsTrue(Driver.comparePartialString(" The selected items were added as prerequisites. " +
                                               "If values were entered for any prerequisite's attributes, then these values were saved.", PrerequisitesPage.VerifyPrerequisiteMessage()));
     _test.Log(Status.Pass, "Verify prerequisite message");
     CommonSection.CatalogSearchText(DocumentTitle + "Parent");
     _test.Log(Status.Info, "Search for content through Catalog search");
     SearchResultsPage.ClickCourseTitle(DocumentTitle + "Parent");
     _test.Log(Status.Info, "Click the content Title");
     Assert.IsTrue(ContentDetailsPage.isprerequisitetableDisplayed());
     _test.Log(Status.Pass, "Verify is the prerquisite table Dispayed");
     Assert.IsTrue(ContentDetailsPage.isPrerequisiteTitleDisplayed());
     _test.Log(Status.Pass, "Verify is the prerquisite title Dispayed");
     Assert.IsTrue(ContentDetailsPage.isPrerequisiteCostDisplayed());
     _test.Log(Status.Pass, "Verify is the prerquisite Cost Dispayed");
     Assert.IsTrue(ContentDetailsPage.isPrerequisiteStatusDisplayed());
     _test.Log(Status.Pass, "Verify is the prerquisite Status Dispayed");
     ContentDetailsPage.ClickPrerequisiteTitle();
     _test.Log(Status.Info, "Click the prerequisite Title");
     Assert.IsTrue(ContentDetailsPage.isOtherAvailableTraining());
     _test.Log(Status.Pass, "verify is the other Available training table is Displayed");
 }
        public void a12_View_Prerequisities_to_SCORM_Course_26955()
        {
            CommonSection.CreteNewScorm(scormtitle + "TC26955");
            _test.Log(Status.Info, "Creating New Scorm");
            Assert.IsTrue(ContentDetailsPage.IsContentCreated());
            _test.Log(Status.Pass, "Verify New Scorm Course is Created");
            AdminContentDetailsPage.AddPrequisites("General");
            ContentDetailsPage.Click_Check_in();

            CommonSection.SearchCatalog('"' + scormtitle + "TC26955" + '"');
            _test.Log(Status.Info, "Search created scrom from Catalog");
            SearchResultsPage.ClickCourseTitle(scormtitle + "TC26955");
            _test.Log(Status.Info, "Click searched scrom course title");
            Assert.IsTrue(ContentDetailsPage.OverviewTab.isPrerequisitePortletDisplay()); //AC1
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isMessagedisplay("Completed"));
            TC57930_2 = true;
        }
        public void tc_52418_Curriculums_Panel_Prerequisite_for_these_Items()
        {
            CommonSection.CreteNewCurriculumn(curriculamtitle + "TC52418_Child");
            _test.Log(Status.Info, "Create Curriculum");
            ContentDetailsPage.Click_Check_in();

            CommonSection.CreteNewCurriculumn(curriculamtitle + "TC52418_Parent");
            _test.Log(Status.Info, "Create Curriculum");
            AdminContentDetailsPage.AddPrequisites(curriculamtitle + "TC52418_Child");
            ContentDetailsPage.Click_Check_in();
            AdminContentDetailsPage.DropDownToggle.ViewAsLearner();
            _test.Log(Status.Info, "Click view as learner");
            Assert.IsTrue(ContentDetailsPage.OverviewTab.Prerequisiteportlet.isContentdisplay(curriculamtitle + "TC52418_Child"));
            ContentDetailsPage.OverviewTab.Prerequisiteportlet.ClickPrerequisiteContentTitle(curriculamtitle + "TC52418_Child");
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isContentTitledisplay(curriculamtitle + "TC52418_Child"));
            Assert.IsTrue(ContentDetailsPage.OverviewTab.isPrerequisitefortheseitems());
            ContentDetailsPage.OverviewTab.clickToexpandPrerequisitefortheseitems();
            Assert.IsTrue(ContentDetailsPage.OverviewTab.Prerequisitefortheseitems.isContentdisplay(curriculamtitle + "TC52418_Parent"));
        }
示例#4
0
        public void P20_1_tc_57756_Bundle_User_access_Bundle_Item_with_prerequisite()
        {
            #region Create a general course
            CommonSection.CreateGeneralCourse(GeneralCourseTitle + "_TC57756_Pre");
            DocumentPage.ClickButton_CheckIn();
            #endregion
            #region Create a general course
            CommonSection.CreateGeneralCourse(GeneralCourseTitle + "_TC57756_Content");
            DocumentPage.ClickButton_CheckIn();
            #endregion
            CommonSection.CreateLink.Bundle();
            CreatebundlePage.CreateBundle("Progress", bunbdleTitle + "TC57756", "Bundle Price");
            AdminContentDetailsPage.AddContentToBundle(GeneralCourseTitle + "_TC57756_Content");

            AdminContentDetailsPage.AddPrequisites(GeneralCourseTitle + "_TC57756_Pre");
            DocumentPage.ClickButton_CheckIn();

            CommonSection.SearchCatalog(bunbdleTitle + "TC57756");
            SearchResultsPage.ClickCourseTitle(bunbdleTitle + "TC57756");
            Assert.IsTrue(ContentDetailsPage.OverviewTab.isPrerequisitePortletDisplay());
            TC57009_1 = true;
        }
 public void tc_56144_User_Views_pre_requisite_requirements_in_banner_Pre_requisite_Completed()
 {
     CommonSection.CreateGeneralCourse(generalcoursetitle + "TC56144");
     _test.Log(Status.Info, "Create general Course");
     AdminContentDetailsPage.ClickCheckInbutton();
     CommonSection.CreteNewCurriculumn(curriculamtitle + "TC56144");
     _test.Log(Status.Info, "Create Curriculum");
     AdminContentDetailsPage.AddPrequisites(generalcoursetitle + "TC56144");
     ContentDetailsPage.Click_Check_in();
     AdminContentDetailsPage.DropDownToggle.ViewAsLearner();
     _test.Log(Status.Info, "Click view as learner");
     Assert.IsTrue(ContentDetailsPage.OverviewTab.Prerequisiteportlet.isContentdisplay(curriculamtitle + "TC52418_Child"));
     Assert.IsFalse(ContentDetailsPage.isEnrollButtonDisplay());
     _test.Log(Status.Pass, "Verify No Enroll button is display on banner");
     Assert.IsTrue(ContentDetailsPage.ContentBanner.isPrereqisiteRequiredmessageDisplay("Complete 1 prerequisites to enroll"));
     ContentDetailsPage.OverviewTab.Prerequisiteportlet.ClickPrerequisiteContentTitle(generalcoursetitle + "TC56144");
     Assert.IsTrue(ContentDetailsPage.ContentBanner.isContentTitledisplay(generalcoursetitle + "TC56144"));
     AdminContentDetailsPage.ClickOpenNewAttemptbutton.CompleteContent();
     ContentDetailsPage.ClickBreadCrumb(curriculamtitle + "TC56144");
     Assert.IsTrue(ContentDetailsPage.ContentBanner.isContentTitledisplay(curriculamtitle + "TC56144"));
     Assert.IsFalse(ContentDetailsPage.ContentBanner.isPrereqisiteRequiredmessageDisplay("Complete 1 prerequisites to enroll"));
     Assert.IsTrue(ContentDetailsPage.isEnrollButtonDisplay());
 }
        public void tc_61678_As_a_learner_Accessing_Nested_Curriculum()
        {
            CommonSection.CreateGeneralCourse(GeneralCourseTitle + "TC61678");
            _test.Log(Status.Info, "Create a new General Course");
            AdminContentDetailsPage.ClickCheckInbutton();
            _test.Log(Status.Info, "Click Check-In");
            CommonSection.CreateGeneralCourse(GeneralCourseTitle + "TC61678_Pretochild");
            _test.Log(Status.Info, "Create a new General Course");
            AdminContentDetailsPage.ClickCheckInbutton();
            _test.Log(Status.Info, "Click Check-In");
            CommonSection.CreateGeneralCourse(GeneralCourseTitle + "TC61678_PretoParent");
            _test.Log(Status.Info, "Create a new General Course");
            AdminContentDetailsPage.ClickCheckInbutton();
            _test.Log(Status.Info, "Click Check-In");

            CommonSection.CreteNewCurriculumn(curriculamtitle + "TC61678");
            _test.Log(Status.Info, "Create Curriculum");
            AdminContentDetailsPage.AddPrequisites('"' + GeneralCourseTitle + "TC61678_Pretochild" + '"');
            ContentDetailsPage.ClickCurriculumContentEditButton();
            _test.Log(Status.Info, "Click Edit Content for Curriculum");
            ContentDetailsPage.ClickAddCurriculumBlock();
            _test.Log(Status.Info, "Click Curriculum content Block");
            CurriculumContentPage.AddCurriculumBlock.AddBlockAs("ak_1");
            _test.Log(Status.Info, "Add Curriculum Block");
            CurriculumContentPage.AddTrainingActivities_UnOrdered(GeneralCourseTitle + "TC61678");
            _test.Log(Status.Info, "Add training Activities");
            AdminContentDetailsPage.ClickCheckInbutton();
            _test.Log(Status.Info, "Click Check In button");

            CommonSection.CreteNewCurriculumn(curriculamtitle + "TC61678_Parent");
            _test.Log(Status.Info, "Create Curriculum");
            AdminContentDetailsPage.AddPrequisites('"' + GeneralCourseTitle + "TC61678_Pretochild" + '"');
            ContentDetailsPage.ClickCurriculumContentEditButton();
            _test.Log(Status.Info, "Click Edit Content for Curriculum");
            ContentDetailsPage.ClickAddCurriculumBlock();
            _test.Log(Status.Info, "Click Curriculum content Block");
            CurriculumContentPage.AddCurriculumBlock.AddBlockAs("ak_1");
            _test.Log(Status.Info, "Add Curriculum Block");
            CurriculumContentPage.AddTrainingActivities_UnOrdered(curriculamtitle + "TC61678");
            _test.Log(Status.Info, "Add training Activities");
            AdminContentDetailsPage.ClickCheckInbutton();
            _test.Log(Status.Info, "Click Check In button");

            CommonSection.SearchCatalog('"' + curriculamtitle + "TC61678" + '"');
            _test.Log(Status.Pass, "Search the General Course Course");
            SearchResultsPage.ClickCourseTitle(curriculamtitle + "TC61678");
            Assert.IsFalse(ContentDetailsPage.ContentBanner.isEnrollButtondisplay());
            _test.Log(Status.Pass, "Verify Enroll button is not display");
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isPrereqisiteRequiredmessageDisplay("Complete 1 prerequisites to continue"));
            _test.Log(Status.Pass, "Verify prerequisite required message display on banner");

            CommonSection.SearchCatalog('"' + curriculamtitle + "TC61678_Parent" + '"');
            _test.Log(Status.Pass, "Search the General Course Course");
            SearchResultsPage.ClickCourseTitle(curriculamtitle + "TC61678_Parent");
            Assert.IsFalse(ContentDetailsPage.ContentBanner.isEnrollButtondisplay());
            _test.Log(Status.Pass, "Verify Enroll button is not display");
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isPrereqisiteRequiredmessageDisplay("Complete 1 prerequisites to continue"));
            _test.Log(Status.Pass, "Verify prerequisite required message display on banner");
            ContentDetailsPage.OverviewTab.Prerequisiteportlet.ClickPrerequisiteContentTitle(GeneralCourseTitle + "TC61678_Pretochild");
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isContentTitledisplay(GeneralCourseTitle + "TC61678_Pretochild"));
            ContentDetailsPage.ContentBanner.Click_Enrollbutton();
            AdminContentDetailsPage.ClickOpenNewAttemptbutton.CompleteContent();
            ContentDetailsPage.ClickBreadCrumb(curriculamtitle + "TC61678_Parent");
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isContentTitledisplay(curriculamtitle + "TC61678_Parent"));
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isEnrollButtondisplay());
            ContentDetailsPage.ContentBanner.Click_Enrollbutton();
            ContentDetailsPage.CurriculumContentTab.Click_CurriculumContent();
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isContentTitledisplay(curriculamtitle + "TC61678"));
            Assert.IsFalse(ContentDetailsPage.ContentBanner.isEnrollButtondisplay());
            _test.Log(Status.Pass, "Verify Enroll button is not display");
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isPrereqisiteRequiredmessageDisplay("Complete 1 prerequisites to continue"));
            _test.Log(Status.Pass, "Verify prerequisite required message display on banner");
            Assert.IsFalse(ContentDetailsPage.OverviewTab.isPrerequisitePortletDisplay());
        }