public void tc_59969_Document_Prerequisite_Overview_Tab_What_other_content_can_learner_take()
        {
            CommonSection.CreateLink.Document();
            DocumentPage.SearchTagForNewContent(tagname + "TC59969");
            _test.Log(Status.Info, "Searching Tag.");
            DocumentPage.CreateDocument(DocumentTitle + "TC59969");
            DocumentPage.ClickButton_CheckIn();

            CommonSection.CreateLink.Document();
            DocumentPage.SearchTagForNewContent(tagname + "TC59969");
            _test.Log(Status.Info, "Searching Tag.");
            DocumentPage.CreateDocument(DocumentTitle + "TC59969_1");
            DocumentPage.ClickButton_CheckIn();

            CommonSection.CreteNewCurriculumn(curriculamtitle + "_TC59969");
            _test.Log(Status.Info, "Create A new Curriculum");
            ContentDetailsPage.ClickCurriculumContentEditButton();
            CurriculumContentPage.ClickAddCurriculumBlock();
            CurriculumContentPage.AddCurriculumBlock.AddBlockAs(block + "_UnOrdered");
            CurriculumContentPage.AddTrainingActivities_UnOrdered(DocumentTitle + "TC59969");
            CurriculumContentPage.ClickBackbutton();
            //ContentDetailsPage.Edit_AddAccessPeriod("1");
            DocumentPage.ClickButton_CheckIn();

            //CommonSection.Logout();
            //LoginPage.LoginAs("srlearner101").WithPassword("").Login();
            CommonSection.SearchCatalog(DocumentTitle + "TC59969");
            SearchResultsPage.ClickCourseTitle(DocumentTitle + "TC59969");
            Assert.IsTrue(ContentDetailsPage.isrelatedContentDisplay(DocumentTitle + "TC59969_1"));
            _test.Log(Status.Pass, "Verify similar content displaying in More like this Portlet");
            Assert.IsTrue(ContentDetailsPage.OverviewTab.isPartoftheseCollectionDisplay());
        }
        public void P20_1_tc_57850_Curriculum__User_access_Content_Details_page_of_SCORM_from_Curriculum()
        {
            CommonSection.CreateLink.SCORM();
            Uploadscromecourse.uploadfile();
            CretaeSCROM2004Page.Tile(scormtitle + "TC57850");
            CretaeSCROM2004Page.clickSaveButton();
            _test.Log(Status.Info, "A new SCROM Course Created");
            ContentDetailsPage.Click_Check_in();

            CommonSection.CreteNewCurriculumn(curriculamtitle + "TC57850");
            _test.Log(Status.Info, "Create Curriculum");
            ContentDetailsPage.ClickCurriculumContentEditButton();
            _test.Log(Status.Info, "Click Edit Content for Curriculum");
            ContentDetailsPage.ClickAddCurriculumBlock();
            _test.Log(Status.Info, "Click Curriculum content Block");

            CurriculumContentPage.AddCurriculumBlock.AddBlockAs_OrderedType("ak_1");
            _test.Log(Status.Info, "Add Curriculum Block");

            CurriculumContentPage.AddTrainingActivities_UnOrdered(scormtitle + "TC57850");
            _test.Log(Status.Info, "Add training Activities");

            AdminContentDetailsPage.ClickCheckInbutton();
            _test.Log(Status.Info, "Click Check In button");
            AdminContentDetailsPage.DropDownToggle.ViewAsLearner();
            _test.Log(Status.Info, "Click view as learner");
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isInstructionalMessage("Enroll in the Curriculum to get started"));
            TC56142 = true;
            ContentDetailsPage.EnrollinCurriculum();
            Assert.IsTrue(ContentDetailsPage.ContentTab.CurriculumBlock.iscontentdisplay(scormtitle + "TC57850"));
            ContentDetailsPage.ContentTab.CurriculumBlock.ClickContenttitle(scormtitle + "TC57850");
            Assert.IsTrue(Driver.Instance.Url.Contains("contentdetails"));
            ContentDetailsPage.ClickBreadCrumb(curriculamtitle + "TC57850");
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isContentTitledisplay(curriculamtitle + "TC57850"));
        }
예제 #3
0
 public void P20_1_a22_Lunch_Curriculum_26346()
 {
     CommonSection.Logout();
     LoginPage.LoginAs("").WithPassword("").Login();
     #region Create a general course
     CommonSection.CreateGeneralCourse(generalcoursetitle + "_TC26346");
     DocumentPage.ClickButton_CheckIn();
     #endregion
     #region Create a curriculum
     CommonSection.CreteNewCurriculumn(curriculamtitle + "_TC26346");
     _test.Log(Status.Info, "Create A new Curriculum");
     ContentDetailsPage.ClickCurriculumContentEditButton();
     CurriculumContentPage.ClickAddCurriculumBlock();
     CurriculumContentPage.AddCurriculumBlock.AddBlockAs("_UnOrdered" + "_TC26346");
     CurriculumContentPage.AddTrainingActivities_UnOrdered(generalcoursetitle + "_TC26346");
     DocumentPage.ClickButton_CheckIn();
     #endregion
     CommonSection.SearchCatalog(curriculamtitle + "_TC26346");
     _test.Log(Status.Info, "Enter curriculum title in global search box");
     SearchResultsPage.ClickCourseTitle(curriculamtitle + "_TC26346");
     _test.Log(Status.Info, "Click on search result from catalog");
     ContentDetailsPage.EnrollinCurriculum();
     ContentDetailsPage.Click_ContentTab();
     Assert.IsTrue(ContentDetailsPage.MarkComplete_Curriculum());
 }
예제 #4
0
 public void A09_Learner_Review_Previously_Completed_Content_36030()
 {
     #region Create a 2 general course
     CommonSection.CreateGeneralCourse(GeneralCourseTitle + "_TC36030_1");
     DocumentPage.ClickButton_CheckIn();
     CommonSection.CreateGeneralCourse(GeneralCourseTitle + "_TC36030_2");
     DocumentPage.ClickButton_CheckIn();
     #endregion
     #region Create a curriculum
     CommonSection.CreteNewCurriculumn(curriculamtitle + "_TC36030");
     _test.Log(Status.Info, "Create A new Curriculum");
     ContentDetailsPage.ClickCurriculumContentEditButton();
     CurriculumContentPage.ClickAddCurriculumBlock();
     CurriculumContentPage.AddCurriculumBlock.AddBlockAs(block + "_UnOrdered" + "_TC26349");
     CurriculumContentPage.AddTrainingActivities_UnOrdered(GeneralCourseTitle + "_TC36030_1");
     CurriculumContentPage.AddTrainingActivities_UnOrdered(GeneralCourseTitle + "_TC36030_2");
     DocumentPage.ClickButton_CheckIn();
     #endregion
     #region Create Learner and Login with it
     CommonSection.Logout();
     _test.Log(Status.Info, "Logout from Admin");
     Driver.CreateNewAccount();
     _test.Log(Status.Info, "Create new user account");
     LoginPage.LoginAs(Meridian_Common.NewUserId).WithPassword("").Login();
     _test.Log(Status.Info, "Login as Learner");
     #endregion
     CommonSection.SearchCatalog(curriculamtitle + "_TC36030");
     _test.Log(Status.Info, "Enter curriculum title in global search box");
     SearchResultsPage.ClickCourseTitle(curriculamtitle + "_TC36030");
     _test.Log(Status.Info, "Click on search result from catalog");
     ContentDetailsPage.EnrollinCurriculum();
     ContentDetailsPage.Click_ContentTab();
     ContentDetailsPage.MarkComplete_Curriculum_Content();
     Assert.IsTrue(ContentDetailsPage.Review_Previously_CompletedContent());
 }
        public void P20_1_tc_57848_Curriculum__User_navigates_to_content_Details_page_of_a_Document()
        {
            CommonSection.CreateLink.Document();
            _test.Log(Status.Info, "Naviagte to Cretae Document page");
            CommonSection.CreteNewDocuemnt(documenttitle + "TC57848");
            _test.Log(Status.Info, "A new Document Created");
            ContentDetailsPage.Click_Check_in();

            CommonSection.CreteNewCurriculumn(curriculamtitle + "TC57848");
            _test.Log(Status.Info, "Create Curriculum");
            ContentDetailsPage.ClickCurriculumContentEditButton();
            _test.Log(Status.Info, "Click Edit Content for Curriculum");
            ContentDetailsPage.ClickAddCurriculumBlock();
            _test.Log(Status.Info, "Click Curriculum content Block");

            CurriculumContentPage.AddCurriculumBlock.AddBlockAs_OrderedType("ak_1");
            _test.Log(Status.Info, "Add Curriculum Block");

            CurriculumContentPage.AddTrainingActivities_UnOrdered(documenttitle + "TC57848");
            _test.Log(Status.Info, "Add training Activities");

            AdminContentDetailsPage.ClickCheckInbutton();
            _test.Log(Status.Info, "Click Check In button");
            AdminContentDetailsPage.DropDownToggle.ViewAsLearner();
            _test.Log(Status.Info, "Click view as learner");
            ContentDetailsPage.EnrollinCurriculum();
            Assert.IsTrue(ContentDetailsPage.ContentTab.CurriculumBlock.iscontentdisplay(documenttitle + "TC57848"));
            ContentDetailsPage.ContentTab.CurriculumBlock.ClickContenttitle(documenttitle + "TC57848");
            Assert.IsTrue(Driver.Instance.Url.Contains("contentdetails"));
            ContentDetailsPage.ClickBreadCrumb(curriculamtitle + "TC57848");
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isContentTitledisplay(curriculamtitle + "TC57848"));
        }
예제 #6
0
 public void P20_1_A05_Learner_View_Content_Tab_of_Curriculum_35589()
 {
     #region Create a Curriculum and Add Content Into it
     CommonSection.CreteNewCurriculumn(curriculamtitle + "_TC35589");
     _test.Log(Status.Info, "Create A new Curriculum");
     ContentDetailsPage.ClickCurriculumContentEditButton();
     CurriculumContentPage.ClickAddCurriculumBlock();
     CurriculumContentPage.AddCurriculumBlock.AddMultiple_TypeBlocks(block);
     CurriculumContentPage.AddTrainingActivities_UnOrdered("");
     CurriculumContentPage.AddTrainingActivities_Ordered();
     CurriculumContentPage.AddTrainingActivities_Credit();
     CurriculumContentPage.AddTrainingActivities_Optional();
     #endregion
     CommonSection.SearchCatalog(curriculamtitle + "_TC35589");
     _test.Log(Status.Info, "Enter curriculum title in global search box");
     SearchResultsPage.ClickCourseTitle(curriculamtitle + "_TC35589");
     _test.Log(Status.Info, "Click on search result from catalog");
     Assert.IsFalse(Driver.existsElement(By.XPath("//a[@href='#contentTab']")));
     _test.Log(Status.Info, "Assertion Pass as Content Tab Not displaying when content under revison");
     ContentDetailsPage.ClickEditContent_New19_2();
     DocumentPage.ClickButton_CheckIn();
     CommonSection.SearchCatalog(curriculamtitle + "_TC35589");
     _test.Log(Status.Info, "Enter curriculum title in global search box");
     SearchResultsPage.ClickCourseTitle(curriculamtitle + "_TC35589");
     _test.Log(Status.Info, "Click on search result from catalog");
     ContentDetailsPage.Click_ContentTab();
     Assert.IsTrue(ContentDetailsPage.VerifyCurriculum_ContentTab(block + "_UnOrdered", block + "_Ordered", block + "_Credit", block + "_Optional", curriculamtitle + "TCID1"));
 }
 public void a01_User_views_access_period_limitations_after_enrolling_in_a_curriculum_52344()
 {
     #region Create a general course
     CommonSection.CreateLink.GeneralCourse();
     CommonSection.CreateGeneralCourse(GeneralCourseTitle + "_TC51560");
     DocumentPage.ClickButton_CheckIn();
     #endregion
     #region Create a curriculum
     CommonSection.CreteNewCurriculumn(curriculamtitle + "_TC51560");
     _test.Log(Status.Info, "Create A new Curriculum");
     ContentDetailsPage.ClickCurriculumContentEditButton();
     CurriculumContentPage.ClickAddCurriculumBlock();
     CurriculumContentPage.AddCurriculumBlock.AddBlockAs(block + "_UnOrdered" + "_TC51560");
     CurriculumContentPage.AddTrainingActivities_UnOrdered(GeneralCourseTitle + "_TC51560");
     CurriculumContentPage.ClickBackbutton();
     ContentDetailsPage.Edit_AddAccessPeriod("1");
     DocumentPage.ClickButton_CheckIn();
     #endregion
     CommonSection.SearchCatalog(curriculamtitle + "_TC51560");
     _test.Log(Status.Info, "Enter curriculum title in global search box");
     SearchResultsPage.ClickCourseTitle(curriculamtitle + "_TC51560");
     _test.Log(Status.Info, "Click on search result from catalog");
     Assert.IsTrue(ContentDetailsPage.ContentBanner.AccessPeriodtext("Access ends 1 day(s) after enrollment"));
     ContentDetailsPage.EnrollinCurriculum();
     Assert.IsTrue(ContentDetailsPage.ContentBanner.AccessPeriodtext("Your access to this content item ends"));
     _test.Log(Status.Pass, "Verify Access end date message display on banner");
     Assert.IsTrue(ContentDetailsPage.ContentBanner.isCancelEnrollmentLinkDisplay());
     TC24948 = true;
 }
        public void a04_User_can_jump_to_curriculum_content_from_banner_messaging_56247()
        {
            CommonSection.Administer.System.DomainsandURLS.Domains();
            DomainsPage.ClickDomainLink("Meridian Global");
            EditSummaryPage.ClickOptionsTab();
            EditSummaryPage.OptionsTab.AutomaticCurriculumnEnrolment("On");

            #region Create a general course
            CommonSection.CreateGeneralCourse(GeneralCourseTitle + "_TC56247");
            DocumentPage.ClickButton_CheckIn();
            #endregion
            #region Create a curriculum
            CommonSection.CreteNewCurriculumn(curriculamtitle + "_TC56247");
            _test.Log(Status.Info, "Create A new Curriculum");
            ContentDetailsPage.ClickCurriculumContentEditButton();
            CurriculumContentPage.ClickAddCurriculumBlock();
            CurriculumContentPage.AddCurriculumBlock.AddBlockAs(block + "_UnOrdered" + "_TC56247");
            CurriculumContentPage.AddTrainingActivities_UnOrdered(GeneralCourseTitle + "_TC56247");

            DocumentPage.ClickButton_CheckIn();
            #endregion
            CommonSection.SearchCatalog(curriculamtitle + "_TC56247");
            _test.Log(Status.Info, "Enter curriculum title in global search box");
            SearchResultsPage.ClickCourseTitle(curriculamtitle + "_TC56247");
            _test.Log(Status.Info, "Click on search result from catalog");
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isViewContentButtonDisplay());
            Assert.IsTrue(ContentDetailsPage.ContentBanner.iscompleteitemmessage("Complete 1 required item(s)"));  //AC2
            CommonSection.Administer.System.DomainsandURLS.Domains();
            DomainsPage.ClickDomainLink("Meridian Global");
            EditSummaryPage.ClickOptionsTab();
            EditSummaryPage.OptionsTab.AutomaticCurriculumnEnrolment("Off");
        }
        public void P20_1_tc_57849_Curriculum__User_navigates_to_Content_Details_page_of_General_Course()
        {
            CommonSection.Logout();
            LoginPage.LoginAs("").WithPassword("").Login();
            CommonSection.CreateGeneralCourse(generalcoursetitle + "TC57849");
            _test.Log(Status.Info, "Create general Course");
            AdminContentDetailsPage.ClickCheckInbutton();
            CommonSection.CreteNewCurriculumn(curriculamtitle + "TC57849");
            _test.Log(Status.Info, "Create Curriculum");
            ContentDetailsPage.ClickCurriculumContentEditButton();
            _test.Log(Status.Info, "Click Edit Content for Curriculum");
            ContentDetailsPage.ClickAddCurriculumBlock();
            _test.Log(Status.Info, "Click Curriculum content Block");

            CurriculumContentPage.AddCurriculumBlock.AddBlockAs_OrderedType("ak_1");
            _test.Log(Status.Info, "Add Curriculum Block");

            CurriculumContentPage.AddTrainingActivities_UnOrdered(generalcoursetitle + "TC57849");
            _test.Log(Status.Info, "Add training Activities");

            AdminContentDetailsPage.ClickCheckInbutton();
            _test.Log(Status.Info, "Click Check In button");
            AdminContentDetailsPage.DropDownToggle.ViewAsLearner();
            _test.Log(Status.Info, "Click view as learner");
            ContentDetailsPage.EnrollinCurriculum();
            Assert.IsTrue(ContentDetailsPage.ContentTab.CurriculumBlock.iscontentdisplay(generalcoursetitle + "TC57849"));
            ContentDetailsPage.ContentTab.CurriculumBlock.ClickContenttitle(generalcoursetitle + "TC57849");
        }
        public void a05_User_views_duration_for_content_items_within_curriculum_blocks_56337()
        {
            #region Create a general course
            CommonSection.CreateGeneralCourse(GeneralCourseTitle + "_TC56337");
            ContentDetailsPage.Click_EditCourseInformation();
            CourseInformationPage.CourseProvider.Select("Meridian");
            CourseInformationPage.EnterDuration("10");
            CourseInformationPage.clickSave();
            DocumentPage.ClickButton_CheckIn();
            #endregion
            #region Create a curriculum
            CommonSection.CreteNewCurriculumn(curriculamtitle + "_TC56337");
            _test.Log(Status.Info, "Create A new Curriculum");
            ContentDetailsPage.ClickCurriculumContentEditButton();
            CurriculumContentPage.ClickAddCurriculumBlock();
            CurriculumContentPage.AddCurriculumBlock.AddBlockAs(block + "_UnOrdered" + "_TC56337");
            CurriculumContentPage.AddTrainingActivities_UnOrdered(GeneralCourseTitle + "_TC56337");

            DocumentPage.ClickButton_CheckIn();
            #endregion
            CommonSection.SearchCatalog(curriculamtitle + "_TC56337");
            _test.Log(Status.Info, "Enter curriculum title in global search box");
            SearchResultsPage.ClickCourseTitle(curriculamtitle + "_TC56337");
            _test.Log(Status.Info, "Click on search result from catalog");
            ContentDetailsPage.EnrollinCurriculum();
            ContentDetailsPage.Click_ContentTab();
            //ContentDetailsPage.ContentTab.ExpandCurriculumBlock();
            Assert.IsTrue(ContentDetailsPage.ContentTab.isContentDurationdisplay(GeneralCourseTitle + "_TC56337", "10"));
        }
        public void P20_1_a19_SCORM_What_Other_Content_can_learner_take_57664()
        {
            CommonSection.Logout();
            LoginPage.LoginAs("").WithPassword("").Login();
            CommonSection.CreteNewScorm(scormtitle + "TC57664");
            _test.Log(Status.Info, "Create A new SCROM Course");
            // ContentDetailsPage.Click_Check_in();
            CommonSection.CreteNewCurriculumn(curriculamtitle + "TC57664");
            ContentDetailsPage.ClickCurriculumContentEditButton();
            _test.Log(Status.Info, "Click Edit Content for Curriculum");
            ContentDetailsPage.ClickAddCurriculumBlock();
            _test.Log(Status.Info, "Click Curriculum content Block");

            CurriculumContentPage.AddCurriculumBlock.AddBlockAs_OrderedType("ak_1");
            _test.Log(Status.Info, "Add Curriculum Block");

            CurriculumContentPage.AddTrainingActivities_UnOrdered(scormtitle + "TC57664");
            _test.Log(Status.Info, "Add training Activities");

            AdminContentDetailsPage.ClickCheckInbutton();
            CommonSection.SearchCatalog('"' + scormtitle + "TC57664" + '"'); // Search for Bundle that has Promotional Video
            _test.Log(Status.Info, "Searched" + scormtitle + "TC57664" + "from Catalog");
            SearchResultsPage.ClickCourseTitle(scormtitle + "TC57664");      // Click on Bundle Title
            _test.Log(Status.Info, "Clicked searched course title");
            Assert.IsTrue(ContentDetailsPage.OverviewTab.isPartoftheseCollectionDisplay());
            ContentDetailsPage.OverviewTab.PartoftheseCollection.expandPartofthesecollection();
            Assert.IsTrue(ContentDetailsPage.OverviewTab.PartoftheseCollection.isContentdisplay(curriculamtitle + "TC57664"));
        }
예제 #12
0
        public void P20_1_a23_Take_Curriculum_Related_Surveys_26347()
        {
            CommonSection.CreateLink.GeneralCourse();
            _test.Log(Status.Info, "Creating a Paid General Course");
            GeneralCoursePage.CreateGeneralCourse(generalcoursetitle + "_TC26347", "Test General Course");
            DocumentPage.ClickButton_CheckIn();
            _test.Log(Status.Info, "Paid general course created");
            CommonSection.CreteNewCurriculumn(curriculamtitle + "TC326347");
            _test.Log(Status.Info, "Create A new Curriculum");

            Assert.IsTrue(ContentDetailsPage.isSurveyAccordiandisplayed());
            _test.Log(Status.Info, "Verify Survey accordian display on RHS side");
            ContentDetailsPage.Accordians.ClickManage_Survey();
            _test.Log(Status.Info, "Click Survey Manage button");

            SurveysPage.ClickAssignSurveysnew();
            _test.Log(Status.Info, "Click on Assign Surveys Button");
            Assert.IsTrue(SurveysPage.AddSurveyModal.IsSearchfieldsDisplayed());
            _test.Log(Status.Pass, "Verify Search, Result grid, Add button on Add survey Modal");
            SurveysPage.AddSurveyModal.AddSurveystoContent("Before Course Start");
            _test.Log(Status.Info, "Search Survey and add one survey to content");
            SurveysPage.Click_backbutton();

            ContentDetailsPage.ClickCurriculumContentEditButton();
            CurriculumContentPage.ClickAddCurriculumBlock();
            CurriculumContentPage.AddCurriculumBlock.AddBlockAs("_UnOrdered" + "_TC26349");
            CurriculumContentPage.AddTrainingActivities_UnOrdered(generalcoursetitle + "_TC26347");
            DocumentPage.ClickButton_CheckIn();

            CommonSection.SearchCatalog(curriculamtitle + "TC326347");
            SearchResultsPage.ClickCourseTitle(curriculamtitle + "TC326347");
            //Assert.IsTrue(ContentDetailsPage.SurveyPortlet.IsSurveysDisplayForCurriculumn(Surveytitle_OnEnroll, Surveytitle_OnContentComplete));
            //Assert.IsTrue(ContentDetailsPage.SurveyPortlet.IsSurveysareNotavailable);
            ContentDetailsPage.ClickCurriculumnEnroll();
            // Assert.IsTrue(ContentDetailsPage.SurveyPortlet.IsSurveysAvailableforCurriculumn(Surveytitle_OnEnroll));
            ContentDetailsPage.Click_ContentTab();
            Assert.IsTrue(ContentDetailsPage.MarkComplete_Curriculum_whenSurveyRequired());
            ContentDetailsPage.Click_OverviewTab();
            //Assert.IsTrue(ContentDetailsPage.SurveyPortlet.IsSurveysAvailableforCurriculumn(Surveytitle_OnContentComplete));

            ContentDetailsPage.SurveyPortlet.ClickonattachedSurvey("Before Course Start");
            _test.Log(Status.Info, "Click Attached Survey");
            ContentDetailsPage.SurveyPortlet.CompleteSurvey();
            _test.Log(Status.Info, "Complete Survey");
            ContentDetailsPage.Click_MarkComplete();
            _test.Log(Status.Pass, "Click at Take Survey button");
            // ContentDetailsPage.SurveyPortlet.CompleteSurvey(); // Why we need it to do?

            Assert.IsTrue(ContentDetailsPage.ClickViewCertificate_Curriculum());
            //Assert.IsTrue(ContentDetailsPage.IsViewCertificateButtondisplay());
            _test.Log(Status.Pass, "Verify View Certificate Button is displayed");
        }
예제 #13
0
 public void P20_1_A11_Enroll_in_Curriculum_24948()
 {
     #region Create a general course
     CommonSection.CreateGeneralCourse(GeneralCourseTitle + "_TC26948");
     DocumentPage.ClickButton_CheckIn();
     #endregion
     #region Create a curriculum
     CommonSection.CreteNewCurriculumn(curriculamtitle + "_TC26948");
     _test.Log(Status.Info, "Create A new Curriculum");
     ContentDetailsPage.ClickCurriculumContentEditButton();
     CurriculumContentPage.ClickAddCurriculumBlock();
     CurriculumContentPage.AddCurriculumBlock.AddBlockAs(block + "_UnOrdered" + "_TC26948");
     CurriculumContentPage.AddTrainingActivities_UnOrdered(GeneralCourseTitle + "_TC26948");
     DocumentPage.ClickButton_CheckIn();
     #endregion
     CommonSection.SearchCatalog(curriculamtitle + "_TC26948");
     _test.Log(Status.Info, "Enter curriculum title in global search box");
     SearchResultsPage.ClickCourseTitle(curriculamtitle + "_TC26948");
     _test.Log(Status.Info, "Click on search result from catalog");
     ContentDetailsPage.EnrollinCurriculum();
     Assert.IsTrue(ContentDetailsPage.isCancleEnrolllinkdisplay());
 }
        public void P20_1_tc_56398_User_Views_Access_Key_usage_info_when_enrolling_in_curriculum()
        {
            #region Create a general course
            CommonSection.CreateGeneralCourse(GeneralCourseTitle + "_TC56398");
            AdminContentDetailsPage.AddCost();
            ContentDetailsPage.ClickEditContent_New19_2();
            DocumentPage.ClickButton_CheckIn();
            #endregion
            #region Create a curriculum
            CommonSection.CreteNewCurriculumn(curriculamtitle + "_TC56398");
            _test.Log(Status.Info, "Create A new Curriculum");
            ContentDetailsPage.ClickCurriculumContentEditButton();
            CurriculumContentPage.ClickAddCurriculumBlock();
            CurriculumContentPage.AddCurriculumBlock.AddBlockAs(block + "_UnOrdered" + "_TC56398");
            CurriculumContentPage.AddTrainingActivities_UnOrdered(GeneralCourseTitle + "_TC56398");
            CurriculumContentPage.ClickBackbutton();
            ContentDetailsPage.Accordians.ClickEdit_CostNSalesTax();
            CostPage.DefaultCostAs("5").Save();
            CostPage.ClickReturn();
            ContentDetailsPage.Accordians.ClickEdit_AccessKey();
            AccessKeysPage.EnableAccessKey("Yes").Save();
            DocumentPage.ClickButton_CheckIn();
            #endregion
            CommonSection.SearchCatalog(curriculamtitle + "_TC51560");
            _test.Log(Status.Info, "Enter curriculum title in global search box");
            SearchResultsPage.ClickCourseTitle(curriculamtitle + "_TC51560");
            _test.Log(Status.Info, "Click on search result from catalog");
            Assert.IsTrue(ContentDetailsPage.OverviewTab.isAddtoCartbuttondisplay());
            ContentDetailsPage.OverviewTab.click_AddtoCart();

            CommonSection.Completepurchage(curriculamtitle + "_TC51560");
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isStartbuttonDisplay());
            ContentDetailsPage.ContentBanner.Click_Startbutton();
            Assert.IsTrue(ContentDetailsPage.isContentTabSelected());
            Assert.IsTrue(ContentDetailsPage.isHistoryTabDisplay_GeneralCourse());
            ContentDetailsPage.Click_HistoryTab_Curriculum();
            Assert.IsTrue(ContentDetailsPage.HistoryTab.VerifyEnrolledinSectionwithAccessKey());
        }
        public void P20_1_tc_27144_Curriculums_Containing_an_AICC_Course()
        {
            Scorm12 CreateScorm = new Scorm12(driver);

            CommonSection.CreateLink.AICC();
            driver.navigateAICCfile("Data\\mv_mvet_a03_it_enus.au", By.Id("ctl00_MainContent_UC1_rau_aufile0"));
            driver.navigateAICCfile("Data\\mv_mvet_a03_it_enus.crs", By.Id("ctl00_MainContent_UC1_rau_crsfile0"));
            driver.navigateAICCfile("Data\\mv_mvet_a03_it_enus.cst", By.Id("ctl00_MainContent_UC1_rau_cstfile0"));
            driver.navigateAICCfile("Data\\mv_mvet_a03_it_enus.des", By.Id("ctl00_MainContent_UC1_rau_desfile0"));
            CreateScorm.buttoncreateclick(driver, true);
            _test.Log(Status.Info, "AICC files are uploaded");

            CreateAICCPage.Title(AICCCourseTitle + "TC27144");
            EditSummaryPage.ClickSavebutton();
            _test.Log(Status.Info, "Create a new AICC Course");
            Assert.IsTrue(ContentDetailsPage.IsContentCreated());
            _test.Log(Status.Pass, "Verify New Document is Created");
            ContentDetailsPage.Click_Check_in();

            CommonSection.CreteNewCurriculumn(curriculamtitle + "_TC27144");
            _test.Log(Status.Info, "Create A new Curriculum");
            ContentDetailsPage.ClickCurriculumContentEditButton();
            CurriculumContentPage.ClickAddCurriculumBlock();
            CurriculumContentPage.AddCurriculumBlock.AddBlockAs(block + "_UnOrdered" + "_TC27144");
            CurriculumContentPage.AddTrainingActivities_UnOrdered(AICCCourseTitle + "TC27144");

            DocumentPage.ClickButton_CheckIn();

            CommonSection.SearchCatalog(AICCCourseTitle + "TC27144");
            SearchResultsPage.ClickCourseTitle(AICCCourseTitle + "TC27144");
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isContentTitledisplay(AICCCourseTitle + "TC27144"));
            Assert.IsTrue(ContentDetailsPage.OverviewTab.isPartoftheseCollectionDisplay());
            _test.Log(Status.Pass, "Verify is part of these collestion portlet display");
            ContentDetailsPage.OverviewTab.clicktoexpandPartoftheseCollectionPortlet();
            Assert.IsTrue(ContentDetailsPage.OverviewTab.PartoftheseCollection.isContentdisplay(curriculamtitle + "_TC27144"));
            _test.Log(Status.Pass, "Verify Curriculum title is display in part of these collestion portlet");
        }
        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());
        }
        public void tc_35907_Curriculum__Learner_views_progress_towards_completeing_curriculum_for_each_block_type()
        {
            #region create 4 general course
            CommonSection.CreateGeneralCourse(generalcoursetitle + "TC35907_od_1");
            _test.Log(Status.Info, "Create general Course");
            DocumentPage.ClickButton_CheckIn();
            CommonSection.CreateGeneralCourse(generalcoursetitle + "TC35907_od_2");
            _test.Log(Status.Info, "Create general Course");
            DocumentPage.ClickButton_CheckIn();
            CommonSection.CreateGeneralCourse(generalcoursetitle + "TC35907_Uod_1");
            _test.Log(Status.Info, "Create general Course");
            DocumentPage.ClickButton_CheckIn();
            CommonSection.CreateGeneralCourse(generalcoursetitle + "TC35907_Uod_2");
            _test.Log(Status.Info, "Create general Course");
            DocumentPage.ClickButton_CheckIn();
            #endregion

            CommonSection.CreteNewCurriculumn(curriculamtitle + "TC35907");
            _test.Log(Status.Info, "Create Curriculum");
            ContentDetailsPage.ClickCurriculumContentEditButton();
            _test.Log(Status.Info, "Click Edit Content for Curriculum");
            ContentDetailsPage.ClickAddCurriculumBlock();
            _test.Log(Status.Info, "Click Curriculum content Block");
            CurriculumContentPage.AddCurriculumBlock.AddBlockAs("UnOrdered");
            _test.Log(Status.Info, "Add Curriculum UnOrdered Block");
            CurriculumContentPage.AddTrainingActivities_UnOrdered(generalcoursetitle + "TC35907_Uod_1");
            _test.Log(Status.Info, "Add training Activities");
            CurriculumContentPage.AddTrainingActivities_UnOrdered(generalcoursetitle + "TC35907_Uod_2");
            _test.Log(Status.Info, "Add training Activities");

            ContentDetailsPage.ClickAddCurriculumBlock();
            _test.Log(Status.Info, "Click Curriculum content Block");
            CurriculumContentPage.AddCurriculumBlock.AddBlockAs_OrderedType("Ordered");
            _test.Log(Status.Info, "Add Curriculum Ordered Block");
            CurriculumContentPage.AddTrainingActivities_Ordered(generalcoursetitle + "TC35907_od_1");
            _test.Log(Status.Info, "Add training Activities");
            CurriculumContentPage.AddTrainingActivities_Ordered(generalcoursetitle + "TC35907_od_2");
            _test.Log(Status.Info, "Add training Activities");
            AdminContentDetailsPage.ClickCheckInbutton();
            _test.Log(Status.Info, "Click Check In button");

            CommonSection.Logout();
            LoginPage.LoginAs("srlearner103").WithPassword("").Login();
            CommonSection.SearchCatalog(curriculamtitle + "TC35907");
            SearchResultsPage.ClickCourseTitle(curriculamtitle + "TC35907");
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isContentTitledisplay(curriculamtitle + "TC35907"));
            _test.Log(Status.Pass, "Verify Content details page is opend");
            ContentDetailsPage.ClickCurriculumnEnroll();
            Assert.IsTrue(ContentDetailsPage.ContentBanner.ContentProgress() == "0%");
            _test.Log(Status.Pass, "Verify Curriculum progress is 0%");
            Assert.IsTrue(ContentDetailsPage.ContentTab.CurriculumUnOrderedBlock.BannerCompletionText("Complete 2 in any order"));
            ContentDetailsPage.CurriculumContentTab.ClickStartGeneralCourse(generalcoursetitle + "TC35907_Uod_1");
            _test.Log(Status.Info, "Launch first General Course");
            ContentDetailsPage.CompleteCurriculumnContent();
            Assert.IsTrue(ContentDetailsPage.ContentTab.CurriculumUnOrderedBlock.BannerCompletionContentCount("1 / 2"));
            Assert.IsTrue(ContentDetailsPage.ContentBanner.ContentProgress() == "25%");
            _test.Log(Status.Pass, "Verify Curriculum progress is 25%");

            Assert.IsTrue(ContentDetailsPage.ContentTab.CurriculumOrderedBlock.BannerCompletionText("Complete 2 in any order"));
            ContentDetailsPage.CurriculumContentTab.ClickStartGeneralCourse(generalcoursetitle + "TC35907_od_1");
            _test.Log(Status.Info, "Launch first General Course");
            ContentDetailsPage.CompleteCurriculumnContent();
            Assert.IsTrue(ContentDetailsPage.ContentTab.CurriculumOrderedBlock.BannerCompletionContentCount("1 / 2"));
            Assert.IsTrue(ContentDetailsPage.ContentBanner.ContentProgress() == "50%");
            _test.Log(Status.Pass, "Verify Curriculum progress is 50%");
        }
        public void a07_Restart_Linear_Curriculum_35888()
        {
            #region
            CommonSection.CreateGeneralCourse(generalcoursetitle + "TC35888");
            _test.Log(Status.Info, "Create general Course");
            AdminContentDetailsPage.AddCost();
            _test.Log(Status.Info, "Add cost to Course");
            ContentDetailsPage.ClickEditContent();
            _test.Log(Status.Info, "Click on Edit content");
            AdminContentDetailsPage.AccessApproval.ClickEditButton();
            _test.Log(Status.Info, "Click Access Approval Edit Button");
            AccessApprovalPage.AssignApproverPath();
            _test.Log(Status.Info, "Assign Approver path");
            AdminContentDetailsPage.ClickCheckInbutton();
            _test.Log(Status.Info, "Click checkIn Button");
            CommonSection.CreateGeneralCourse(generalcoursetitle + "TC35888ak");
            _test.Log(Status.Info, "Create general Course");
            AdminContentDetailsPage.AddCost();
            _test.Log(Status.Info, "Add cost to Course");
            ContentDetailsPage.ClickEditContent();
            _test.Log(Status.Info, "Click on Edit content");
            AdminContentDetailsPage.AccessApproval.ClickEditButton();
            _test.Log(Status.Info, "Click Access Approval Edit Button");
            AccessApprovalPage.AssignApproverPath();
            _test.Log(Status.Info, "Assign Approver path");
            AdminContentDetailsPage.ClickCheckInbutton();
            _test.Log(Status.Info, "Click checkIn Button");
            #endregion

            CommonSection.CreteNewCurriculumn(curriculamtitle + "TC35888");
            _test.Log(Status.Info, "Create Curriculum");
            ContentDetailsPage.ClickCurriculumContentEditButton();
            _test.Log(Status.Info, "Click Edit Content for Curriculum");
            ContentDetailsPage.ClickAddCurriculumBlock();
            _test.Log(Status.Info, "Click Curriculum content Block");

            CurriculumContentPage.AddCurriculumBlock.AddBlockAs_OrderedType("ak_1");
            _test.Log(Status.Info, "Add Curriculum Block");

            CurriculumContentPage.AddTrainingActivities_UnOrdered(generalcoursetitle + "TC35888");
            _test.Log(Status.Info, "Add training Activities");
            CurriculumContentPage.AddTrainingActivities_UnOrdered(generalcoursetitle + "TC35888ak");
            _test.Log(Status.Info, "Add training Activities");
            AdminContentDetailsPage.ClickCheckInbutton();
            _test.Log(Status.Info, "Click Check In button");
            AdminContentDetailsPage.DropDownToggle.ViewAsLearner();
            _test.Log(Status.Info, "Click view as learner");
            ContentDetailsPage.ClickCurriculumnEnroll();
            _test.Log(Status.Info, "Click Enroll Button");
            ContentDetailsPage.Click_ContentTab();
            _test.Log(Status.Info, "Click on  Content Tab");
            //ContentDetailsPage.CurriculumContentTab.ClickCurriculumContentBlock();
            //_test.Log(Status.Info, "Click on  Content Tab");
            Assert.IsTrue(ContentDetailsPage.CurriculumContentTab.VerifyStatus(generalcoursetitle + "TC35888", "Not Enrolled"));
            _test.Log(Status.Pass, "Verify Status of the content of content Block");
            Assert.IsTrue(ContentDetailsPage.CurriculumContentTab.VerifyStatus(generalcoursetitle + "TC35888ak", "Not Enrolled"));
            _test.Log(Status.Pass, "Verify Status of the content of content Block");
            Assert.IsTrue(ContentDetailsPage.CurriculumContentTab.VerifyStartButtonDisplayed(generalcoursetitle + "TC35888"));
            _test.Log(Status.Pass, "Verify Start button is Displayed");
            Assert.IsFalse(ContentDetailsPage.CurriculumContentTab.VerifyStartButtonDisplayed(generalcoursetitle + "TC35888ak"));
            _test.Log(Status.Pass, "Verify Start button is Not Displayed");


            ContentDetailsPage.CurriculumContentTab.ClickStartGeneralCourse(generalcoursetitle + "TC35888");
            _test.Log(Status.Info, "Launch first General Course");
            ContentDetailsPage.CompleteCurriculumnContent();
            _test.Log(Status.Info, "Complete General Course");
            // ContentDetailsPage.CurriculumContentTab.ClickCurriculumContentBlock();
            //_test.Log(Status.Info, "Click on  Content Tab");
            Assert.IsTrue(ContentDetailsPage.CurriculumContentTab.VerifyStatus(generalcoursetitle + "TC35888", "Completed"));
            _test.Log(Status.Pass, "Verify Status of the content of content Block");
            Assert.IsTrue(ContentDetailsPage.CurriculumContentTab.VerifyStartButtonDisplayed(generalcoursetitle + "TC35888ak"));
            _test.Log(Status.Pass, "Verify Start button is Not Displayed");

            //ContentDetailsPage.CurriculumContentTab.ClickCurriculumContentBlock();
            //_test.Log(Status.Info, "Click on  Content Tab");
            ContentDetailsPage.CurriculumContentTab.ClickStartGeneralCourse(generalcoursetitle + "TC35888ak");
            _test.Log(Status.Info, "Launch first General Course");
            ContentDetailsPage.MarkComplete_Curriculum();
            _test.Log(Status.Info, "Complete General Course");
            ContentDetailsPage.CurriculumContentTab.ClickCurriculumContentBlock();
            _test.Log(Status.Info, "Click on  Content Tab");
            Assert.IsTrue(ContentDetailsPage.CurriculumContentTab.VerifyStatus(generalcoursetitle + "TC35888ak", "Completed"));
            _test.Log(Status.Pass, "Verify Status of the content of content Block");

            Assert.IsTrue(ContentDetailsPage.IsRestartCurriculumDisplayed());
            _test.Log(Status.Pass, "Verify Restart Curriculum is Displayed");

            ContentDetailsPage.ClickRetakeCurriculum_DissmissAlert();
            _test.Log(Status.Pass, "Click restart Curriculum");
            ContentDetailsPage.ClickRetakeCurriculum_AcceptAlert();
            _test.Log(Status.Pass, "Click restart Curriculum");
            //ContentDetailsPage.CurriculumContentTab.ClickCurriculumContentBlock();
            // _test.Log(Status.Info, "Click on  Content Tab");
            Assert.IsTrue(ContentDetailsPage.CurriculumContentTab.VerifyStatus(generalcoursetitle + "TC35888", "Enrolled"));
            _test.Log(Status.Pass, "Verify Status of the content of content Block");
            Assert.IsTrue(ContentDetailsPage.CurriculumContentTab.VerifyStatus(generalcoursetitle + "TC35888ak", "Enrolled"));
            _test.Log(Status.Pass, "Verify Status of the content of content Block");
            ContentDetailsPage.Click_HistoryTab_Curriculum();
            _test.Log(Status.Info, "Click History Tab");
            Assert.IsTrue(ContentDetailsPage.HistoryTab.VerifyRestartedCurriculum());
            _test.Log(Status.Pass, "Verify in history tab Curriculum is restarted is mentioned");
        }