Esempio n. 1
0
 public void P20_1_tc_57032_Bundles_Continue_In_progress_Item()
 {
     #region Create a general course
     CommonSection.CreateGeneralCourse(GeneralCourseTitle + "_TC57032");
     DocumentPage.ClickButton_CheckIn();
     CommonSection.CreateGeneralCourse(GeneralCourseTitle + "_TC57032_1");
     DocumentPage.ClickButton_CheckIn();
     #endregion
     CommonSection.CreateLink.Bundle();
     _test.Log(Status.Info, "Click create>Bundle");
     CreatebundlePage.CreateBundle("Progress Bundle", bunbdleTitle + "TC57032", "Bundle Price");
     _test.Log(Status.Info, "Create a new Content Bundle");
     AdminContentDetailsPage.AddContentToBundle(GeneralCourseTitle + "_TC57032");
     AdminContentDetailsPage.AddContentToBundle(GeneralCourseTitle + "_TC57032_1");
     ContentDetailsPage.ClickCheckInbutton();
     CommonSection.SearchCatalog('"' + bunbdleTitle + "TC57027" + '"');
     _test.Log(Status.Info, "Search created scrom from Catalog");
     SearchResultsPage.ClickCourseTitle(bunbdleTitle + "TC57027");
     _test.Log(Status.Info, "Click searched scrom course title");
     Assert.IsTrue(ContentDetailsPage.ContentBanner.isStartbuttonDisplay());
     ContentDetailsPage.ContentBanner.Click_Startbutton();
     Assert.IsTrue(ContentDetailsPage.ContentTab.RequiredContent.isContentStartdisplay(GeneralCourseTitle + "_TC57032"));
     ContentDetailsPage.ContentTab.RequiredContent.ClickContentEnroll(GeneralCourseTitle + "_TC57032");
     ContentDetailsPage.ContentTab.RequiredContent.CompleteBundleContent();
     Assert.IsTrue(ContentDetailsPage.ContentTab.RequiredContent.isContentRetakeisplay(GeneralCourseTitle + "_TC57032"));
     Assert.IsTrue(ContentDetailsPage.ContentBanner.ContentProgress() == "50%");
     TC57859 = true;
 }
Esempio n. 2
0
        public void P20_1_tc_55430_As_a_learner_I_want_to_see_what_surveys_are_required_and_when_they_are_available_Bundle_Progress()
        {
            #region Create a general course
            CommonSection.CreateGeneralCourse(GeneralCourseTitle + "_TC55430");
            DocumentPage.ClickButton_CheckIn();
            #endregion
            CommonSection.CreateLink.Bundle();
            _test.Log(Status.Info, "Click create>Bundle");
            CreatebundlePage.CreateBundle("Progress Bundle", bunbdleTitle + "TC55430", "Bundle Price");
            _test.Log(Status.Info, "Create a new Content Bundle");
            BundlesPage.addContentIntoBundle(GeneralCourseTitle + "_TC55430");
            _test.Log(Status.Info, "Adding Paid General Course into Bundle");

            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");
            Assert.IsTrue(SurveysPage.IsSurveyPageCompenetsarepresent("btn_AssignSurverbtn", "resultgrid"));
            _test.Log(Status.Info, "Verify Survey page has Assign Surveys button and result grid has no record");
            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");
            string Surveytitle_OnEnroll = SurveysPage.AddSurveyModal.AddSurveystoContentWithAvailabilityas("When learner enrolls");
            _test.Log(Status.Info, "Search Survey and add one survey to content with availability as When learner enrolls");
            SurveysPage.ClickAssignSurveysnew();
            _test.Log(Status.Info, "Click on Assign Surveys Button");
            string Surveytitle_OnContentComplete = SurveysPage.AddSurveyModal.AddSurveystoContentWithAvailabilityas("When content completed");
            _test.Log(Status.Info, "Search Survey and add one survey to content with availability as When content completed");
            //SurveysPage.Click_backbutton();
            ContentDetailsPage.ClickCheckInbutton();

            CommonSection.SearchCatalog(bunbdleTitle + "TC55430");
            SearchResultsPage.ClickCourseTitle(bunbdleTitle + "TC55430");
            Assert.IsTrue(ContentDetailsPage.OverviewTab.SurveyPortlet.IsSurveysDisplay(Surveytitle_OnEnroll, Surveytitle_OnContentComplete));
            Assert.IsTrue(ContentDetailsPage.SurveyPortlet.IsSurveysareNotavailable);
            ContentDetailsPage.Click_ReviewTab_GeneralCourse();
            Assert.IsFalse(ContentDetailsPage.GeneralCourse_ReviewsTab.isWriteaReviewButtondisplay());
            _test.Log(Status.Pass, "Verify Write a Review button is not visibile");
            ContentDetailsPage.ContentBanner.Click_Startbutton();
            Assert.IsTrue(ContentDetailsPage.ContentBanner.ContentProgress() == "0%");
            ContentDetailsPage.Click_ReviewTab_GeneralCourse();
            Assert.IsTrue(ContentDetailsPage.GeneralCourse_ReviewsTab.isWriteaReviewButtondisplay());
            ContentDetailsPage.GeneralCourse_ReviewsTab.WriteaReview("Title", "For Testing");
            Assert.IsTrue(ContentDetailsPage.GeneralCourse_ReviewsTab.isReviewlistUpdated("Title"));
            TC57571 = true;
            ContentDetailsPage.ContentBanner.ClickViewContentButton();
            ContentDetailsPage.ContentTab.RequiredContent.ClickContentEnroll(GeneralCourseTitle + "_TC55430");
            ContentDetailsPage.ContentTab.RequiredContent.ClickContentStart(GeneralCourseTitle + "_TC55430");
            ContentDetailsPage.ContentTab.RequiredContent.CompleteBundleContent();
            Assert.IsTrue(ContentDetailsPage.ContentBanner.ContentProgress() == "100%");
            _test.Log(Status.Pass, "Verify content progress display 100% completed");
            TC57313   = true;
            TC57025_1 = true;
            TC27105   = true;
            ContentDetailsPage.Click_OverviewTab();
            Assert.IsTrue(ContentDetailsPage.OverviewTab.SurveyPortlet.IsSurveysAvailable(Surveytitle_OnEnroll));
            Assert.IsTrue(ContentDetailsPage.OverviewTab.SurveyPortlet.IsSurveysAvailable(Surveytitle_OnContentComplete));
        }
Esempio n. 3
0
        public void tc_26335_Access_Re_certification()
        {
            CommonSection.CreateLink.GeneralCourse();
            _test.Log(Status.Info, "Creating a Paid General Course");
            GeneralCoursePage.CreateGeneralCourse(generalcoursetitle + "TC26335", "Test General Course");
            DocumentPage.ClickButton_CheckIn();
            CommonSection.CreateLink.GeneralCourse();
            _test.Log(Status.Info, "Creating a Paid General Course");
            GeneralCoursePage.CreateGeneralCourse(generalcoursetitle + "TC26335_Recitify", "Test General Course");
            DocumentPage.ClickButton_CheckIn();

            CommonSection.CreateLink.Certifications();
            _test.Log(Status.Info, "Click create>certification");
            CertificationPage.FillTitle(CertificatrTitle + "TC26335");
            _test.Log(Status.Info, "Fill title");
            CertificatePage.Doesthiscertificationexpire("Yes");
            CertificationPage.isthisarecurringcertification("Yes");
            CertificationPage.Whenistsertificationperiod("Immediately").until("1").Days();

            CertificationPage.ClickCreateCertification();
            _test.Log(Status.Info, "Click create");
            CertificatePage.addContentIntoCertificate(generalcoursetitle + "TC26335");
            CertificatePage.Click_backbutton();

            CertificatePage.addContenttoRecertification(generalcoursetitle + "TC26335_Recitify");
            CertificatePage.Click_backbutton();
            ContentDetailsPage.ClickCheckInbutton();

            CommonSection.Logout();
            LoginPage.LoginAs("srlearner103").WithPassword("").Login(); //Login as regular user (Learner)

            CommonSection.SearchCatalog('"' + CertificatrTitle + "TC26335" + '"');
            _test.Log(Status.Info, "Searched" + CertificatrTitle + "TC26335" + "from Catalog");
            SearchResultsPage.ClickCourseTitle(CertificatrTitle + "TC26335");
            _test.Log(Status.Info, "Clicked searched course title");
            ContentDetailsPage.ClickAccessItemButton_Certi();
            ContentDetailsPage.ContentItemsPortlet.ClickItemTitle(generalcoursetitle + "TC26335");
            ContentDetailsPage.ClickEnroll_CerficationGeneralCourse();
            AdminContentDetailsPage.ClickOpenNewAttemptbutton.CompleteContent_Certification();
            CertificationDetailsPage.ClickBreadCrumb();
            Assert.IsTrue(ContentDetailsPage.certificationProgress() == "100% Completed");  //AC4
            _test.Log(Status.Pass, "Verify progress display after content completed");
            Assert.IsTrue(ContentDetailsPage.IsViewCertificateButtondisplay());

            Assert.IsTrue(ContentDetailsPage.isRe_certifybuttondisplay());
            _test.Log(Status.Pass, "Verify recertify button display");
            ContentDetailsPage.Click_Recertfybutton();
            Assert.IsTrue(ContentDetailsPage.isReCertificationContentportletdisplay());
            Assert.IsTrue(ContentDetailsPage.RecertificationCriteriaPortlet.content(generalcoursetitle + "TC26335_Recitify"));
            _test.Log(Status.Pass, "Verify recertify content is display");
            ContentDetailsPage.RecertificationCriteriaPortlet.clickContentTitle(generalcoursetitle + "TC26335_Recitify");
            ContentDetailsPage.ClickEnroll_CerficationGeneralCourse();
            AdminContentDetailsPage.ClickOpenNewAttemptbutton.CompleteContent_Certification();
            CertificationDetailsPage.ClickBreadCrumb();
            Assert.IsTrue(ContentDetailsPage.certificationProgress() == "100% Completed");
            _test.Log(Status.Pass, "Verify progress display after content completed");
            Assert.IsTrue(ContentDetailsPage.IsViewCertificateButtondisplay());
            //Assert.IsTrue(ContentDetailsPage.IsViewCoreCertificateButtondisplay());
        }
Esempio n. 4
0
 public void Create_SCROM_Course_7251()
 {
     CommonSection.CreateLink.SCORM();
     _test.Log(Status.Info, "open scorm page");
     CreatePage.ClickBrowsebutton();
     _test.Log(Status.Info, "browse the content and click create button");
     //  //  CreatePage.UploadScormfile("\\fileserver\\maindrive\\product_team\\SCORM\\SCORM_1_2\\maritime_navigation_exam_only.zip");
     //  CreatePage.ClickCreatebutton();
     Assert.IsTrue(SummaryPage.Title == "Summary", "Expected = Summary, but actual was " + SummaryPage.Title);
     StringAssert.AreEqualIgnoringCase("The course was created.", SummaryPage.GetSuccessMessage(), "Error message is different");
     SummaryPage.UpdateTitle("Maritime Navigation - Exam only for Migration Test");
     //   SummaryPage.ClickSavebutton();
     StringAssert.AreEqualIgnoringCase("The changes were saved.", ContentDetailsPage.GetSuccessMessage(), "Error message is different");
     ContentDetailsPage.ClickCheckInbutton();
     _test.Log(Status.Info, "Checkin scorm course");
 }
        public void Upload_Launch_Course()
        {
            CommonSection.CreateLink.SCORM();
            _test.Log(Status.Info, "open scorm page");
            CreatePage.ClickBrowsebutton();
            _test.Log(Status.Info, "browse the content and click create button");
            //  //  CreatePage.UploadScormfile("\\fileserver\\maindrive\\product_team\\SCORM\\SCORM_1_2\\maritime_navigation_exam_only.zip");
            //  CreatePage.ClickCreatebutton();
            Assert.IsTrue(SummaryPage.Title == "Summary", "Expected = Summary, but actual was " + SummaryPage.Title);
            StringAssert.AreEqualIgnoringCase("The course was created.", SummaryPage.GetSuccessMessage(), "Error message is different");
            SummaryPage.UpdateTitle("Maritime Navigation - Exam only for Migration Test");
            //   SummaryPage.ClickSavebutton();
            StringAssert.AreEqualIgnoringCase("The changes were saved.", ContentDetailsPage.GetSuccessMessage(), "Error message is different");
            ContentDetailsPage.ClickCheckInbutton();
            _test.Log(Status.Info, "Checkin scorm course");
            CommonSection.CatalogSearchText("Maritime Navigation - Exam only for Migration Test");
            _test.Log(Status.Info, "search migration");
            Assert.IsTrue(SearchResultsPage.CheckSearchRecord("Maritime Navigation - Exam only for Migration Test") >= 1);
            SearchResultsPage.ClickCourseTitle("Maritime Navigation - Exam only for Migration Test");
            _test.Log(Status.Info, "opens searched content link");
            Assert.IsTrue(ContentDetailsPage.CheckCourseTitle("Maritime Navigation - Exam only for Migration Test"));
            ContentDetailsPage.ClickOpenItembutton();
            _test.Log(Status.Info, "Enrols and open the scorm course");
            Assert.IsTrue(CourseLaunchModalPage.Exist("Maritime Navigation - Exam only for Migration Test"));
            // CourseLaunchModalPage.ClickBrowserX();
            Assert.IsTrue(ContentDetailsPage.CheckResumeButton());

            CommonSection.Manage.Training();
            _test.Log(Status.Info, "open training page");
            TrainingPage.ManageContentPortlet.SearchForContent("Migration");
            _test.Log(Status.Info, "search for content migration");
            Assert.IsTrue(SearchResultsPage.CheckSearchRecord("Migration") >= 1);
            SearchResultsPage.ClickCourseTitle("Maritime Navigation - Exam only for Migration Test");
            _test.Log(Status.Info, "click the searjced title link");
            ContentDetailsPage.Summary.ClickViewButton();                                             //need towrite the code
            _test.Log(Status.Info, "CLick view button");
            Assert.IsTrue(SummaryPage.Title == "Maritime Navigation - Exam only for Migration Test"); //need towrite the code
            Assert.IsTrue(ContentDetailsPage.CheckCourseTitleOnClickingEditButton("Maritime Navigation - Exam only for Migration Test"));
            ContentDetailsPage.DeleteContent();
            _test.Log(Status.Info, "deleting the content");
            //  StringAssert.StartsWith("Success", ContentDetailsPage.GetRemovalSuccessMessage(), "Error message is different");
            CommonSection.Manage.Training();
            _test.Log(Status.Info, "open training page");
            TrainingPage.ManageContentPortlet.SearchForContent("Migration");
            _test.Log(Status.Info, "search for content migration");
            Assert.IsTrue(SearchResultsPage.CheckSearchRecord("Migration") == 0);
        }
Esempio n. 6
0
        public void a16_As_a_learner_I_want_to_see_what_surveys_are_required_and_when_they_are_available_AICC_Course_35688()
        {
            #region Create AICC Course
            Document documentpage    = new Document(driver);
            string   expectedresult  = "Summary";
            string   expectedresult1 = "The course was created.";
            AICC     aicccourse      = new AICC(driver);
            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);
            // UploadaiccPage.UploadfileandClickCreate();
            CreateAICCPage.CreateAICC(AICCTitle + "TC35688");
            _test.Log(Status.Info, "Create a new AICC Course");
            #endregion
            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");
            Assert.IsTrue(SurveysPage.IsSurveyPageCompenetsarepresent("btn_AssignSurverbtn", "resultgrid"));
            _test.Log(Status.Info, "Verify Survey page has Assign Surveys button and result grid has no record");
            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");
            string Surveytitle_OnEnroll = SurveysPage.AddSurveyModal.AddSurveystoContentWithAvailabilityas("When learner enrolls");
            _test.Log(Status.Info, "Search Survey and add one survey to content with availability as When learner enrolls");
            SurveysPage.ClickAssignSurveysnew();
            _test.Log(Status.Info, "Click on Assign Surveys Button");
            string Surveytitle_OnContentComplete = SurveysPage.AddSurveyModal.AddSurveystoContentWithAvailabilityas("When content completed");
            _test.Log(Status.Info, "Search Survey and add one survey to content with availability as When content completed");
            SurveysPage.Click_backbutton();
            ContentDetailsPage.ClickCheckInbutton();

            CommonSection.SearchCatalog(AICCTitle + "TC35688");
            SearchResultsPage.ClickCourseTitle(AICCTitle + "TC35688");
            Assert.IsTrue(ContentDetailsPage.SurveyPortlet.IsSurveysDisplay(Surveytitle_OnEnroll, Surveytitle_OnContentComplete));
            Assert.IsTrue(ContentDetailsPage.SurveyPortlet.IsSurveysareNotavailable);
            ContentDetailsPage.ClickEnroll();
            Assert.IsTrue(ContentDetailsPage.SurveyPortlet.IsSurveysAvailable(Surveytitle_OnEnroll));
            //AdminContentDetailsPage.ClickOpenNewAttemptbutton.CompleteContent();
            // Assert.IsFalse(ContentDetailsPage.SurveyPortlet.IsSurveysAvailable(Surveytitle_OnContentComplete));
        }
Esempio n. 7
0
        public void a02_Learner_experience_certification_where_admit_set_certificate_be_automatically_granted_upon_content_completion_is_No_57970()
        {
            CommonSection.Logout();
            LoginPage.LoginAs("").WithPassword("").Login();
            CommonSection.CreateLink.GeneralCourse();
            _test.Log(Status.Info, "Creating a Paid General Course");
            GeneralCoursePage.CreateGeneralCourse(generalcoursetitle + "TC57970", "Test General Course");
            DocumentPage.ClickButton_CheckIn();

            CommonSection.CreateLink.Certifications();
            _test.Log(Status.Info, "Click create>certification");
            CertificationPage.FillTitle(CertificatrTitle + "TC57970");
            _test.Log(Status.Info, "Fill title");
            Assert.IsTrue(CertificationPage.isShouldthecertificatebeautomaticallygranteduponcontentcompletion_lavelDisplay()); //AC1
            Assert.IsTrue(CertificationPage.automaticallygrantedcertificationDefaultValue("Yes"));                             //AC3
            CertificationPage.SelectautomaticallygrantedcertificationDefaultValue("No");


            CertificationPage.ClickCreateCertification();
            _test.Log(Status.Info, "Click create");
            CertificatePage.addContentIntoCertificate(generalcoursetitle + "TC57970");
            CertificatePage.Click_backbutton();
            ContentDetailsPage.ClickCheckInbutton();

            CommonSection.Logout();
            LoginPage.LoginAs("srlearner103").WithPassword("").Login(); //Login as regular user (Learner)

            CommonSection.SearchCatalog('"' + CertificatrTitle + "TC57970" + '"');
            _test.Log(Status.Info, "Searched" + CertificatrTitle + "TC57970" + "from Catalog");
            SearchResultsPage.ClickCourseTitle(CertificatrTitle + "TC57970");
            _test.Log(Status.Info, "Clicked searched course title");
            ContentDetailsPage.ClickAccessItemButton_Certi();
            ContentDetailsPage.ContentItemsPortlet.ClickItemTitle(generalcoursetitle + "TC57970");
            ContentDetailsPage.ClickEnroll_CerficationGeneralCourse();
            AdminContentDetailsPage.ClickOpenNewAttemptbutton.CompleteContent_Certification();
            CertificationDetailsPage.ClickBreadCrumb();
            Assert.IsTrue(ContentDetailsPage.certificationProgress() == "100% Completed"); //AC4
            Assert.IsFalse(ContentDetailsPage.IsViewCertificateButtondisplay());           //AC5  //AC5
            //ContentDetailsPage.Click_HistoryTab_Curriculum();
            //Assert.IsFalse(ContentDetailsPage.HistoryTab.isViewCertificateButtonDisplay());  //AC6
            CommonSection.Transcript();
            TranscriptPage.ClickCertificationsTab();
            TranscriptPage.CertificationTab.sortbyDate("as");
            Assert.IsTrue(TranscriptPage.CertificationTab.isCertificationStatus(CertificatrTitle + "TC57970") == "Pending"); //AC7
        }
Esempio n. 8
0
        public void P20_1_tc_57027_Bundles_Request_Access()
        {
            CommonSection.Logout();
            LoginPage.LoginAs("").WithPassword("").Login();
            #region Create a general course
            CommonSection.CreateGeneralCourse(GeneralCourseTitle + "_TC57027");
            DocumentPage.ClickButton_CheckIn();
            #endregion
            CommonSection.CreateLink.Bundle();
            _test.Log(Status.Info, "Click create>Subscriptions");
            CreatebundlePage.CreateBundle("Content Bundle", bunbdleTitle + "TC57027", "Bundle Price");
            _test.Log(Status.Info, "Create a new Content Bundle");
            AdminContentDetailsPage.AddContentToBundle(GeneralCourseTitle + "_TC57027");
            ContentDetailsPage.ClickCheckInbutton();
            Assert.IsTrue(ContentDetailsPage.isAccessApprovalAcordianDisplay());
            _test.Log(Status.Pass, "Verify Access Approval Acordian Display");
            ContentDetailsPage.Accordians.ClickEdit_AccessApproval();
            Assert.IsTrue(AccessApprovalPage.verifyFields());
            _test.Log(Status.Pass, "Verify Approval required, Search for options are available on page");

            AccessApprovalPage.AssignApproverPath();
            _test.Log(Status.Info, "Asign Approver path to content");
            StringAssert.AreEqualIgnoringCase("The approval path is now associated with the content.", ContentDetailsPage.VerifyFeedbackMessage());
            _test.Log(Status.Pass, "Verify feedback message");
            ContentDetailsPage.Click_Check_in();
            _test.Log(Status.Info, "Click check in button");

            CommonSection.SearchCatalog('"' + bunbdleTitle + "TC57027" + '"');
            _test.Log(Status.Info, "Search created scrom from Catalog");
            SearchResultsPage.ClickCourseTitle(bunbdleTitle + "TC57027");
            _test.Log(Status.Info, "Click searched scrom course title");
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isRequestAccessbuttondisplay());
            _test.Log(Status.Pass, "Verify is Request Access button display in content details page");
            ContentDetailsPage.AccessApprovalModal.SubmitRequestAccess("ForTest");
            _test.Log(Status.Info, "Submit Request Access");
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isCancleRequestbuttonDisplay());
            _test.Log(Status.Pass, "Verify is Cancle Request Access button display");

            ContentDetailsPage.AccessApprovalModal.SubmitCancelRequestAccess("ForTest");
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isRequestAccessbuttondisplay());
            TC57028 = true;
        }
Esempio n. 9
0
        [Test, Order(12)]//"Dolly's General Course w/ promotional video_12172018"
        public void a12_Learner_Plays_Promotional_Videos_From_General_Course_35375()
        {
            CommonSection.CreateLink.GeneralCourse();
            _test.Log(Status.Info, "Goto Content Creation Page");
            GeneralCoursePage.CreateGeneralCourse(generalcoursetitle + "TC35375", generalcoursetitle + "TC35375");
            _test.Log(Status.Info, "A new Genaral Course Created");
            Assert.IsTrue(ContentDetailsPage.Accordians.isPromotionalVideoPresent());
            _test.Log(Status.Info, "Verify Promotional Video accordian display on RHS side");
            ContentDetailsPage.Accordians.PromotionalVideo.Click_Edit();
            _test.Log(Status.Info, "Click Promotional Video Edit button");
            Assert.IsTrue(PromotionalVideoPage.VerifyCompenets("ULR", "Preview", "Save"));
            _test.Log(Status.Info, "Verify Add URL, preview section and save button are displaying in Promotional Video Page");
            PromotionalVideoPage.AddNewURL(PromoURL); ////www.youtube.com/embed/Fc1P-AEaEp8
            _test.Log(Status.Info, "Add a URl");
            Assert.IsTrue(PromotionalVideoPage.isVideoPreviewDisplay());
            _test.Log(Status.Info, "Verify video is added and preview display");
            PromotionalVideoPage.Click_SaveButton();
            _test.Log(Status.Info, "Click Save button");
            PromotionalVideoPage.Click_BackButton();
            _test.Log(Status.Info, "Click on Course title bread crumb");
            Assert.IsTrue(ContentDetailsPage.Accordians.PromotionalVideo.isVedioPreviewDisplay());
            _test.Log(Status.Info, "Verify Promotional Video preview on content details page");
            ContentDetailsPage.ClickCheckInbutton();

            CommonSection.Logout();
            LoginPage.LoginAs("srlearner103").WithPassword("").Login();              //Login as regular user (Learner)

            CommonSection.SearchCatalog('"' + generalcoursetitle + "TC35375" + '"'); // Search for Bundle that has Promotional Video
            _test.Log(Status.Info, "Searched" + generalcoursetitle + "TC35375" + "from Catalog");
            SearchResultsPage.ClickCourseTitle(generalcoursetitle + "TC35375");      // Click on Bundle Title
            _test.Log(Status.Info, "Clicked searched course title");
            //Assert.IsTrue(ContentDetailsPage.VerifyPromotionalVideo()); //Verify the Promotional Video is displayed
            //_test.Log(Status.Pass, "Verified Promotional Video display in content details page");
            //ContentDetailsPage.PromotionalVideo.ClickPlayButton(); //Click on Play button on Promotional Video
            //_test.Log(Status.Info, "Clicked Play button of Promotional video");
            //Assert.IsTrue(ContentDetailsPage.PromotionalVideo.VerifyPlaysInline()); //Verify the promotional Video plays Inline on the Page
            //_test.Log(Status.Pass, "Verified Promotional Video is playing in Inline mode");

            //Assert.IsTrue(ContentDetailsPage.PromotionalVideo.isFullScreenIconisdisabled()); //Verify the promotional Video plays on full screen
            //_test.Log(Status.Pass, "Verifyed the promotional Video plays on inline onle");
        }
Esempio n. 10
0
        public void a02_As_a_learner_I_want_to_see_what_surveys_are_required_and_when_they_are_available_General_Course_35687()
        {
            CommonSection.Logout();
            LoginPage.LoginAs("").WithPassword("").Login();
            //CommonSection.CreateLink.GeneralCourse();
            //_test.Log(Status.Info, "Goto Content Creation Page");
            CommonSection.CreateGeneralCourse(generalcoursetitle + "TC35687");
            _test.Log(Status.Info, "A new Genaral Course Created");
            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");
            Assert.IsTrue(SurveysPage.IsSurveyPageCompenetsarepresent("btn_AssignSurverbtn", "resultgrid"));
            _test.Log(Status.Info, "Verify Survey page has Assign Surveys button and result grid has no record");
            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");
            string Surveytitle_OnEnroll = SurveysPage.AddSurveyModal.AddSurveystoContentWithAvailabilityas("When learner enrolls");

            _test.Log(Status.Info, "Search Survey and add one survey to content with availability as When learner enrolls");
            SurveysPage.ClickAssignSurveysnew();
            _test.Log(Status.Info, "Click on Assign Surveys Button");
            string Surveytitle_OnContentComplete = SurveysPage.AddSurveyModal.AddSurveystoContentWithAvailabilityas("When content completed");

            _test.Log(Status.Info, "Search Survey and add one survey to content with availability as When content completed");
            SurveysPage.Click_backbutton();
            ContentDetailsPage.ClickCheckInbutton();

            CommonSection.SearchCatalog(generalcoursetitle + "TC35687");
            SearchResultsPage.ClickCourseTitle(generalcoursetitle + "TC35687");
            Assert.IsTrue(ContentDetailsPage.OverviewTab.SurveyPortlet.IsSurveysDisplay(Surveytitle_OnEnroll, Surveytitle_OnContentComplete));
            //Assert.IsTrue(ContentDetailsPage.SurveyPortlet.IsSurveysDisplay(Surveytitle_OnEnroll, Surveytitle_OnContentComplete));
            Assert.IsTrue(ContentDetailsPage.OverviewTab.SurveyPortlet.IsSurveysareNotavailable);
            //ContentDetailsPage.EnrollinGeneralCourse_new();

            AdminContentDetailsPage.ClickOpenNewAttemptbutton.CompleteContent();
            Assert.IsTrue(ContentDetailsPage.OverviewTab.SurveyPortlet.IsSurveysAvailable(Surveytitle_OnEnroll));
            Assert.IsTrue(ContentDetailsPage.OverviewTab.SurveyPortlet.IsSurveysAvailable(Surveytitle_OnContentComplete));
        }
Esempio n. 11
0
 public void P20_1_tc_57026_Bundles_Bundle_Actions()
 {
     CommonSection.CreateLink.Bundle();
     _test.Log(Status.Info, "Click create>Bundle");
     CreatebundlePage.CreateBundle("Content Bundle", bunbdleTitle + "TC57026", "Bundle Price");
     _test.Log(Status.Info, "Create a new Content Bundle");
     ContentDetailsPage.ClickCheckInbutton();
     CommonSection.SearchCatalog('"' + bunbdleTitle + "TC57026" + '"');
     _test.Log(Status.Info, "Search created scrom from Catalog");
     SearchResultsPage.ClickCourseTitle(bunbdleTitle + "TC57026");
     _test.Log(Status.Info, "Click searched scrom course title");
     Assert.IsTrue(ContentDetailsPage.OverviewTab.isSaveButtonDisplay());
     Assert.IsTrue(ContentDetailsPage.OverviewTab.isShareButtonDisplay());
     Assert.IsTrue(ContentDetailsPage.OverviewTab.iseditContentDisplay());
     CommonSection.Logout();
     LoginPage.LoginAs("srlearner101").WithPassword("").Login();
     CommonSection.SearchCatalog('"' + bunbdleTitle + "TC57026" + '"');
     _test.Log(Status.Info, "Search created scrom from Catalog");
     SearchResultsPage.ClickCourseTitle(bunbdleTitle + "TC57026");
     _test.Log(Status.Info, "Click searched scrom course title");
     Assert.IsTrue(ContentDetailsPage.OverviewTab.isSaveButtonDisplay());
     Assert.IsTrue(ContentDetailsPage.OverviewTab.isShareButtonDisplay());
     Assert.IsFalse(ContentDetailsPage.OverviewTab.iseditContentDisplay());
 }
Esempio n. 12
0
        public void tc_55367_Require_Survey_for_getting_a_certificate_Progress_Bundle()
        {
            #region Survey with Required status Yes
            CommonSection.Logout();
            _test.Log(Status.Pass, "Logout with Site Admin Account");
            LoginPage.LoginAs("").WithPassword("").Login();
            _test.Log(Status.Info, "login with siteadmin Account");
            CommonSection.CreateGeneralCourse(generalcoursetitle + "TC55367");
            DocumentPage.ClickButton_CheckIn();

            CommonSection.CreateLink.Bundle();
            _test.Log(Status.Info, "Click create>Bundle");
            CreatebundlePage.CreateBundle("Progress Bundle", bunbdleTitle + "TC55367", "Bundle Price");
            _test.Log(Status.Info, "Create a new Content Bundle");
            BundlesPage.addContentIntoBundle(generalcoursetitle + "TC55367");
            _test.Log(Status.Info, "Adding Paid General Course into Bundle");

            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");
            Assert.IsTrue(SurveysPage.IsSurveyPageCompenetsarepresent("btn_AssignSurverbtn", "resultgrid"));
            _test.Log(Status.Info, "Verify Survey page has Assign Surveys button and result grid has no record");
            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 with availability as When learner enrolls");

            //SurveysPage.Click_backbutton();
            ContentDetailsPage.ClickCheckInbutton();

            _test.Log(Status.Pass, "Click on Check-In");
            CommonSection.Logout();
            _test.Log(Status.Pass, "Logout From SiteAdmin Account");
            LoginPage.LoginAs("srlearner105").WithPassword("").Login();
            _test.Log(Status.Info, "Login From Learner Account");
            CommonSection.SearchCatalog(bunbdleTitle + "TC55367");
            _test.Log(Status.Info, "Search Created Course");
            SearchResultsPage.ClickCourseTitle(bunbdleTitle + "TC55367");
            _test.Log(Status.Info, "Click Course Title");
            ContentDetailsPage.ContentBanner.Click_Startbutton();
            ContentDetailsPage.Click_OverviewTab();
            Assert.IsTrue(ContentDetailsPage.SurveyPortlet.IsSurveysAvailable("Before Course Start"));
            //  ---------------------------------------------------------

            ContentDetailsPage.Click_ContentTab();
            ContentDetailsPage.ContentTab.RequiredContent.ClickContentEnroll(generalcoursetitle + "TC55367");
            ContentDetailsPage.ContentTab.RequiredContent.ClickContentStart(generalcoursetitle + "TC55367");
            ContentDetailsPage.ContentTab.RequiredContent.CompleteBundleContent();
            Assert.IsFalse(ContentDetailsPage.ContentBanner.isViewCertificationButtonDisplay());
            _test.Log(Status.Pass, "Verify View Certificate Button is displayed");
            ContentDetailsPage.Click_OverviewTab();
            ContentDetailsPage.SurveyPortlet.ClickonattachedSurvey("Before Course Start");
            _test.Log(Status.Info, "Click Attached Survey");
            ContentDetailsPage.SurveyPortlet.CompleteSurvey("Before Course Start");
            _test.Log(Status.Info, "Complete Survey");
            ContentDetailsPage.Click_OverviewTab();
            Assert.True(ContentDetailsPage.ContentBanner.isViewCertificationButtonDisplay());
            _test.Log(Status.Pass, "Verify View Certificate Button is displayed");
            ContentDetailsPage.ContentBanner.clickViewCertificateButton();
            _test.Log(Status.Pass, "Click View Certificate");
            Assert.IsTrue(ContentDetailsPage.isCertificateDisplayed());
            _test.Log(Status.Pass, "Verify certificate Page is displayed");
            Driver.focusParentWindow();
            #endregion

            #region Survey with Required status NO
            CommonSection.Logout();
            LoginPage.LoginAs("").WithPassword("").Login();
            _test.Log(Status.Info, "Login with site admin Account");

            CommonSection.CreateGeneralCourse(generalcoursetitle + "TC55367_1");
            DocumentPage.ClickButton_CheckIn();

            CommonSection.CreateLink.Bundle();
            _test.Log(Status.Info, "Click create>Bundle");
            CreatebundlePage.CreateBundle("Progress Bundle", bunbdleTitle + "TC55367_1", "Bundle Price");
            _test.Log(Status.Info, "Create a new Content Bundle");
            BundlesPage.addContentIntoBundle(generalcoursetitle + "TC55367_1");
            _test.Log(Status.Info, "Adding Paid General Course into Bundle");

            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");
            Assert.IsTrue(SurveysPage.IsSurveyPageCompenetsarepresent("btn_AssignSurverbtn", "resultgrid"));
            _test.Log(Status.Info, "Verify Survey page has Assign Surveys button and result grid has no record");
            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");
            // AddedsurveyTitle = SurveysPage.AddedSurveysTtile();
            _test.Log(Status.Pass, "Verify Survey Added to Content");
            SurveysPage.resultgrid.RequiredforFirstSurvey("No");
            _test.Log(Status.Pass, "Verify Required field is Yes");
            SurveysPage.CheckIn();
            _test.Log(Status.Pass, "Click on Check-In");

            CommonSection.Logout();
            _test.Log(Status.Pass, "Logout From SiteAdmin Account");
            LoginPage.LoginAs("srlearner105").WithPassword("").Login();
            _test.Log(Status.Info, "Login From Learner Account");
            CommonSection.SearchCatalog(bunbdleTitle + "TC55367_1");
            _test.Log(Status.Info, "Search Created Course");
            SearchResultsPage.ClickCourseTitle(bunbdleTitle + "TC55367_1");
            _test.Log(Status.Info, "Click Course Title");
            ContentDetailsPage.ContentBanner.Click_Startbutton();
            ContentDetailsPage.Click_OverviewTab();
            Assert.IsTrue(ContentDetailsPage.SurveyPortlet.IsSurveysAvailable("Before Course Start"));
            _test.Log(Status.Pass, "Verify Survey is Displayed");
            ContentDetailsPage.Click_ContentTab();
            ContentDetailsPage.ContentTab.RequiredContent.ClickContentEnroll(generalcoursetitle + "_TC55367");
            ContentDetailsPage.ContentTab.RequiredContent.ClickContentStart(generalcoursetitle + "_TC55367");
            ContentDetailsPage.ContentTab.RequiredContent.CompleteBundleContent();
            _test.Log(Status.Info, "Click on Open Item");
            ContentDetailsPage.Click_OverviewTab();
            Assert.IsTrue(ContentDetailsPage.SurveyPortlet.IsSurveysAvailable("Before Course Start"));
            _test.Log(Status.Info, "Verify Survey is Displayed");

            Assert.IsTrue(ContentDetailsPage.ContentBanner.isViewCertificationButtonDisplay());
            _test.Log(Status.Pass, "Verify View Certificate Button is displayed");
            //ContentDetailsPage.ClickViewCertificate();
            //_test.Log(Status.Pass, "Click View Certificate");
            //Assert.IsTrue(ContentDetailsPage.isCertificateDisplayed());
            //_test.Log(Status.Pass, "Verify certificate Page is displayed");
            //Driver.focusParentWindow();

            #endregion
        }