Esempio n. 1
0
        public void tc_26327_Add_Certification_To_Cart()
        {
            CommonSection.CreateLink.Certifications();
            _test.Log(Status.Info, "Click create>certification");
            CertificationPage.FillTitle(CertificatrTitle + "TC26327");
            _test.Log(Status.Info, "Fill title");
            CertificationPage.ClickCreateCertification();
            _test.Log(Status.Info, "Click create");
            AdminContentDetailsPage.AddCost();
            ContentDetailsPage.Click_Check_in();
            //CommonSection.SearchCatalog('"' + CertificatrTitle + "TC26327" + '"'); // Search for Bundle that has Promotional Video
            //_test.Log(Status.Info, "Searched" + CertificatrTitle + "TC26327" + "from Catalog");
            //SearchResultsPage.ClickCourseTitle(CertificatrTitle + "TC26327"); // Click on Bundle Title
            //_test.Log(Status.Info, "Clicked searched course title");
            //ContentDetailsPage.Click_CheckOut();
            //ContentDetailsPage.ClickEditContent_New19_2();
            //AdminContentDetailsPage.AddCost();
            //ContentDetailsPage.Click_Check_in();

            CommonSection.SearchCatalog('"' + CertificatrTitle + "TC26327" + '"'); // Search for Bundle that has Promotional Video
            _test.Log(Status.Info, "Searched" + CertificatrTitle + "TC26327" + "from Catalog");
            SearchResultsPage.ClickCourseTitle(CertificatrTitle + "TC26327");      // Click on Bundle Title
            _test.Log(Status.Info, "Clicked searched course title");
            Assert.IsTrue(ContentDetailsPage.isAddToCartButtonDisplayed());
            ContentDetailsPage.ClickAddtoCart_GeneralCourse();
            StringAssert.AreEqualIgnoringCase("Success\r\nThe item was added to the cart.\r\n×", Driver.getSuccessMessage(), "Error message is different");
            Assert.IsTrue(ContentDetailsPage.ClickAddtoCartPortlet.isAddedtocardinfodisplay());
            Assert.IsTrue(CommonSection.isCountincrease_ShopingCart());
        }
Esempio n. 2
0
 public void tc_58378_As_an_Admin_Include_evaluation_in_certification_content()
 {
     CommonSection.CreateLink.Certifications();
     _test.Log(Status.Info, "Click create>certification");
     CertificationPage.FillTitle(CertificatrTitle + "TC58378");
     _test.Log(Status.Info, "Fill title");
     CertificationPage.ClickCreateCertification();
     _test.Log(Status.Info, "Click create");
     ContentDetailsPage.ClickEditCertificationContent();
     EditCertificateContentsPage.ClickAddContent();
     AddContentToCertificationPage.ClickSeemoresearchcriteriaLink();
     AddContentToCertificationPage.SearchType.ClickType();
     Assert.IsTrue(AddContentToCertificationPage.SearchType.Type.isEvaluationdisplay());
     _test.Log(Status.Pass, "Verify is Evaluation display in Type list");
     AddContentToCertificationPage.SearchType.Type.SelectType("Evaluation");
     AddContentToCertificationPage.ClickSearchbutton();
     Assert.IsTrue(AddContentToCertificationPage.ResultGrid.isContentTypeDisplay("Evaluation"));
     _test.Log(Status.Pass, "Verify Evaluation recoreds are searched");
     AddContentToCertificationPage.ResultGrid.Selectfirstrecord();
     AddContentToCertificationPage.clickAddButton();
     Assert.IsTrue(AddContentToCertificationPage.getFeedbackMessage());
     _test.Log(Status.Pass, "Verify Content added feedback message on page");
     AddContentToCertificationPage.clickBackButton();
     Assert.IsTrue(EditCertificateContentsPage.addedContent.isEvaluationAdded());
     _test.Log(Status.Pass, "Verify Evaluation added to certification content");
 }
Esempio n. 3
0
        public void tc_57596_As_an_admin_I_want_to_attach_an_Evaluation_for_Certification()
        {
            CommonSection.CreateLink.Certifications();
            _test.Log(Status.Info, "Click create>certification");
            CertificationPage.FillTitle(CertificatrTitle + "TC57596");
            _test.Log(Status.Info, "Fill title");
            CertificationPage.ClickCreateCertification();
            _test.Log(Status.Info, "Click create");
            Assert.IsTrue(ContentDetailsPage.isSurveyAccordiandisplayed());
            _test.Log(Status.Info, "Verify Survey and Evaluations accordian display on RHS side");
            ContentDetailsPage.Accordians.ClickManage_Survey();
            _test.Log(Status.Info, "Click Survey Manage button");
            Assert.IsTrue(SurveysPage.IsSurveyPageCompenetsarepresent("Add btn", "resultgrid"));
            _test.Log(Status.Info, "Verify Survey page has Add Surveys button and result grid has no record");
            SurveysPage.ClickAssignSurveysnew();
            _test.Log(Status.Info, "Click on Assign Surveys Button");
            Assert.IsTrue(SurveysPage.isAddSurveyandEvaluationsModalDisplay());
            Assert.IsTrue(SurveysPage.AddSurveyModal.IsSearchfieldsDisplayed());
            _test.Log(Status.Pass, "Verify Search, Result grid, Add button on Add survey Modal");
            SurveysPage.AddSurveyModal.ClickAllTypedropdown();
            Assert.IsTrue(SurveysPage.AddSurveyModal.AllTypedropdown.isEvaluationdisplay());
            _test.Log(Status.Pass, "Verify Evaluation display in alltype dropdown");
            SurveysPage.AddSurveyModal.AllTypedropdown.ClickEvaluations();
            SurveysPage.AddSurveyModal.clickSearchicon();
            Assert.IsTrue(SurveysPage.AddSurveyModal.ResultGrid.isEvaluationsDisplay());
            _test.Log(Status.Pass, "Verify Evaluations are display in Result grid");
            Assert.IsTrue(SurveysPage.AddSurveyModal.ResultGrid.isRequiredChangeble());
            _test.Log(Status.Pass, "Verifyis Require is changeable");
            Assert.IsTrue(SurveysPage.AddSurveyModal.ResultGrid.isAvailableChangeble());
            _test.Log(Status.Pass, "Verify Available is changeable");

            ContentDetailsPage.DeleteContent();
        }
Esempio n. 4
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. 5
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
        }
        public void tc_60488_Public_catalog_banner_actions_for_Certification()
        {
            ContentDetailsPage.clickReturningUserLogin();
            LoginPage.LoginAs("").WithPassword("").Login();
            CommonSection.CreateGeneralCourse(GeneralCourseTitle + "_TC60488");
            DocumentPage.ClickButton_CheckIn();

            CommonSection.CreateLink.Certifications();
            CertificationPage.FillTitle(CertificatrTitle + "_TC60488");
            _test.Log(Status.Info, "Fill title");
            CertificationPage.ClickCreateCertification();
            _test.Log(Status.Info, "Click create");
            Assert.IsTrue(ContentDetailsPage.IsContentCreated());
            _test.Log(Status.Pass, "Verify New Document is Created");
            ContentDetailsPage.Edit_Prerequisites(generalcoursetitle + "TC60459");
            _test.Log(Status.Pass, "Click edit Prerequisite and add Prerequisite");
            PrerequisitesPage.Click_BreadCrumb();
            _test.Log(Status.Pass, "Click breadcrumbs");
            AdminContentDetailsPage.EditAndAddCertificationContent('"' + GeneralCourseTitle + "_TC60488" + '"');
            CertificatePage.Click_backbutton();
            ContentDetailsPage.Accordians.ClickEdit_Image();
            ImagePage.UploadnewImageFile();
            _test.Log(Status.Info, "Upload any Image file to content");
            ContentDetailsPage.Click_editContentSharing();
            ContentSharingPage.PublishtoPublishcatalog();
            ContentDetailsPage.Click_Check_in();
            _test.Log(Status.Info, "Click on Check In");

            CommonSection.Logout();
            LoginPage.ClickBrowsePublicCatalogLink();
            CommonSection.SearchCatalog(CertificatrTitle + "_TC60488");
            SearchResultsPage.ClickCourseTitle(CertificatrTitle + "_TC60488");
            Assert.IsTrue(ContentDetailsPage.isBradCrumbdisplay());
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isContentTitledisplay(CertificatrTitle + "_TC60488"));
            _test.Log(Status.Pass, "Verify Content title is display on Banner");
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isContentTypedisplay());
            _test.Log(Status.Pass, "Verify Content type is display on Banner");
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isContentImagedisplay());
            _test.Log(Status.Pass, "Verify Image is display on Banner");
            Assert.IsTrue(ContentDetailsPage.OverviewTab.isPrerequisitePortletDisplay());
            Assert.IsTrue(ContentDetailsPage.isContentTabdisplay());
            tc_60477 = true;
        }
Esempio n. 7
0
 public void P20_1_a03_As_an_Admin_I_want_to_set_when_a_learner_can_begin_recertification_and_whether_they_can_complete_after_expiration_58197()
 {
     CommonSection.Logout();
     LoginPage.LoginAs("").WithPassword("").Login();
     CommonSection.CreateLink.Certifications();
     _test.Log(Status.Info, "Click create>certification");
     CertificationPage.FillTitle(CertificatrTitle + "TC57970");
     _test.Log(Status.Info, "Fill title");
     CertificationPage.DoesthisCertificationexpire("Yes");
     Assert.IsTrue(CertificationPage.isthisarecurringcertificationLeveldisplay());
     CertificationPage.isthisarecurringcertification("Yes");
     Assert.IsTrue(CertificationPage.isWhenistherecertificationperiodLevelDisplay()); //AC1
     CertificationPage.Whenistherecertificationperiod.Setbeforeexpiration();
     Assert.IsTrue(CertificationPage.isCertificationperiodfieldsDisplay());           //AC2
     CertificationPage.Whenistherecertificationperiod.Brfore("15");
     CertificationPage.Whenistherecertificationperiod.SetEndsAs("Set period");
     CertificationPage.Whenistherecertificationperiod.After("15");
     CertificationPage.ClickCreateCertification();
     _test.Log(Status.Info, "Click create");
     Assert.IsTrue(ContentDetailsPage.Summary.VerifyRecertificationIntervaldays("15 Days")); //AC3
     TC10877 = true;
 }