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()); }
public void a04_Recertification_Admin_chooses_when_recertification_starts_58098() { 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.isWhendoestheCertificationgointoeffectLevelDisplay()); //AC1 Assert.IsTrue(CertificatePage.isUponrecertificationcontentcompletionDisplay()); //AC2 Assert.IsTrue(CertificatePage.isWhenpreviousCertificationexpiresDisplay()); //AC3 //Assert.IsTrue(CertificatePage.isUponrecertificationcontentcompletionSelected()); //AC4 _test.Log(Status.Pass, "Is Upon recertification content completion Selected"); TC10877_1 = true; }
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; }