public void Learner_Views_Certificate_For_ReCertification_Completed_By_Fulfilling_Required_Amount_Of_Credit_Type_Hours_33956() //Certification and Re-Certification created with completion criteria as Total Credit hours is achieved. User has already completed the certification and Re-Certification { // LoginPage.LoginAs("reguser").WithPassword("").Login(); //Login as regular user (Learner) // CommonSection.Home.CertificationPortlet(); CommonSection.Learn.ClickHome(); HomePage.CertificationPortlet.For("testcert_0709").ClickViewDetailsButton(); Assert.IsTrue(ContentDetailsPage.RecertificationCriteriaPortlet.isTextDisplayed("3 sa_credittype")); ContentDetailsPage.ClickReCertifybutton(); Assert.IsTrue(ContentDetailsPage.isProgressDisplayed("0")); CommonSection.ClickHome(); Assert.IsTrue(HomePage.CertificationPortlet.For("testcert_0709").IsProgressStatus("0%")); Assert.IsTrue(HomePage.CurrentTrainingPortlet.For("testcert_0709").IsProgress("0%")); Assert.IsTrue(HomePage.CertificationContentPortlet.For("testcert_0709").IsProgressCount("1")); HomePage.CertificationPortlet.ClickViewDetailsButtonofCertificationTitle("testcert_0709", "View Details"); // Assert.IsTrue(CertificationDetailPage); ContentDetailsPage.ClickFindQualifyingContentButton(); // // Assert.IsTrue(SearchResultsPage.CheckSearchRecord.CreditTypeHours); //Verify the Search Results display with all the course records with CreditTypes and Hours SearchResultsPage.ClickCourseTitle("testgen1"); //From Search Results page click on the Title of the Course which qualifies for the Credit Type Hours ContentDetailsPage.EnrolGeneralCourse(); ContentDetailsPage.LaunchGenralCourse(); ContentDetailsPage.MarkCompleteGeneralCourse();// Enroll, Launch, and Completed the course CommonSection.ClickHome(); Assert.IsTrue(HomePage.CertificationPortlet.For("testcert_0709").IsStatus("Certified")); Assert.IsTrue(HomePage.CertificationPortlet.For("testcert_0709").IsProgressStatus("100%")); CommonSection.ClickTranscript(); TranscriptPage.ClickCertificationsTab(); Assert.IsTrue(TranscriptPage.CertificationTab.For("testcert_0709").isCertificationStatus("Certified")); Assert.IsTrue(TranscriptPage.CertificationTab.For("testcert_0709").isCertificationProgress("100% Completed")); // CommonSection.Logout(); }
public void P20_1_Learner_Views_Content_And_Credit_Hours_Completed_For_Core_Certification_34011() //Create a certification with completion criteria as Total credit hours achieved for both certification and Re-certification. Complete certification so that learner can Re-Certify it { // driver.UserLogin("userforregression", browserstr); //Login as regular user (Learner) CommonSection.ClickHome(); HomePage.CertificationPortlet.ClickViewDetailsButtonofCertificationTitle("testcert_0709", "View Details"); // HomePage.CertificationPortlet.ExpandCertificationTitle();// Expand the certification that has completed certification //Assert.IsTrue(HomePage.CertificationPortlet.isCertificationReCertifyButtonDisplayed); // Verify the Re-Certify button is displayed //HomePage.CertificationPortlet.ClickReCertifyButton(); // Click Re-Certify button Assert.IsTrue(ContentDetailsPage.isViewCoreCertificationButtonDisplayed()); //Verify the Content Details page with View Core Certification Button is displayed ContentDetailsPage.ClickViewCoreCertificationButton(); //Click on the View Core Certification button Assert.IsTrue(ContentDetailsPage.isCertificationInfoPageDisplayed()); //Verify Certification Info Page is displayed CertificationInfoPage.SelectCompletionCriteriaTab(); //Select Completion Criteria Tab on Certification Info page //Assert.IsTrue(CertificationInfoPage.CompletionCriteriaTab.isTextWithNumberOfCreditsAndCreditTypesDisplayed("3 sa_credittype")); //Verify text with Number of Credits and Credit Types required to earn Certification are displayed CertificationInfoPage.SelectReCertificationCriteriaTab(); //Select Completion Criteria Tab on Certification Info page // Assert.IsTrue(CertificationInfoPage.ReCertificationCriteriaTab.isTextWithNumberOfCreditsAndCreditTypesDisplayed("1 sa_credittype")); //Verify text with Number of Credits and Credit Types required to earn Re-certification are displayed //CommonSection.SelectParentWindow(); }
public void Learner_Views_Their_Certification_Progress_33943() //Certification created with completion criteria as Total Credit hours achieved { CommonSection.Logout(); Driver.CreateNewAccount(); LoginPage.LoginAs(Meridian_Common.NewUserId).WithPassword("").Login(); //Login as regular user (Learner) CommonSection.SearchCatalog("testcert_0709"); // CatalogSearch.EnterSearchText"Certification".ClickSearch(); //Search for the certification with completion criteria is based on Total Credit Hours // Assert.IsTrue(SearchResultsPage.ListofSearchResults); //Verify the certification is displayed SearchResultsPage.ClickCourseTitle("testcert_0709"); //SearchResultsPage.CheckSearchRecord("Certification"); ContentDetailsPage.ClickAccessItemButton(); Assert.IsTrue(ContentDetailsPage.isProgressDisplayed("0%")); CommonSection.Learn.ClickHome(); Assert.IsTrue(HomePage.CertificationPortlet.For("testcert_0709").IsStatus("In Progress")); Assert.IsTrue(HomePage.CertificationPortlet.For("testcert_0709").IsProgressStatus("0%")); Assert.IsTrue(HomePage.CertificationPortlet.For("testcert_0709").IsRequiredCount(3)); Assert.IsTrue(HomePage.CertificationPortlet.For("testcert_0709").IsEarnedCount(0)); // Assert.IsTrue(HomePage.CertificationPortlet.Status("InProgress").Progress("0%")); CommonSection.ClickCurrentTraining(); //Assert.IsTrue(HomePage.CurrentTrainingPortlet.For("Automation Certification").IsStatus("InProgress")); Assert.IsTrue(HomePage.CurrentTrainingPortlet.For("testcert_0709").IsProgress("0%")); // Assert.IsTrue(HomePage.CurrentTrainingPortlet.Status("InProgress").Progress("0%")); //testgen1 CommonSection.ClickHome(); HomePage.CertificationPortlet.ClickViewDetailsButtonofCertificationTitle("testcert_0709", "View Details"); // Assert.IsTrue(CertificationDetailPage); ContentDetailsPage.ClickFindQualifyingContentButton(); // // Assert.IsTrue(SearchResultsPage.CheckSearchRecord.CreditTypeHours); //Verify the Search Results display with all the course records with CreditTypes and Hours SearchResultsPage.ClickCourseTitle("testgen1"); //From Search Results page click on the Title of the Course which qualifies for the Credit Type Hours ContentDetailsPage.EnrolGeneralCourse(); ContentDetailsPage.LaunchGenralCourse(); ContentDetailsPage.MarkCompleteGeneralCourse();// Enroll, Launch, and Completed the course CommonSection.ClickHome(); Assert.IsTrue(HomePage.CertificationPortlet.For("testcert_0709").IsStatus("In Progress")); Assert.IsTrue(HomePage.CertificationPortlet.For("testcert_0709").IsProgressStatus("33%")); Assert.IsTrue(HomePage.CertificationPortlet.For("testcert_0709").IsRequiredCount(3)); Assert.IsTrue(HomePage.CertificationPortlet.For("testcert_0709").IsEarnedCount(1)); //testgen2 HomePage.CertificationPortlet.ClickViewDetailsButtonofCertificationTitle("testcert_0709", "View Details"); // Assert.IsTrue(CertificationDetailPage); ContentDetailsPage.ClickFindQualifyingContentButton(); // // Assert.IsTrue(SearchResultsPage.CheckSearchRecord.CreditTypeHours); //Verify the Search Results display with all the course records with CreditTypes and Hours SearchResultsPage.ClickCourseTitle("testgen2"); //From Search Results page click on the Title of the Course which qualifies for the Credit Type Hours ContentDetailsPage.EnrolGeneralCourse(); ContentDetailsPage.LaunchGenralCourse(); ContentDetailsPage.MarkCompleteGeneralCourse();// Enroll, Launch, and Completed the course CommonSection.ClickHome(); Assert.IsTrue(HomePage.CertificationPortlet.For("testcert_0709").IsStatus("In Progress")); Assert.IsTrue(HomePage.CertificationPortlet.For("testcert_0709").IsProgressStatus("67%")); Assert.IsTrue(HomePage.CertificationPortlet.For("testcert_0709").IsRequiredCount(3)); Assert.IsTrue(HomePage.CertificationPortlet.For("testcert_0709").IsEarnedCount(2)); //testgen3 HomePage.CertificationPortlet.ClickViewDetailsButtonofCertificationTitle("testcert_0709", "View Details"); // Assert.IsTrue(CertificationDetailPage); ContentDetailsPage.ClickFindQualifyingContentButton(); // // Assert.IsTrue(SearchResultsPage.CheckSearchRecord.CreditTypeHours); //Verify the Search Results display with all the course records with CreditTypes and Hours SearchResultsPage.ClickCourseTitle("testgen3"); //From Search Results page click on the Title of the Course which qualifies for the Credit Type Hours ContentDetailsPage.EnrolGeneralCourse(); ContentDetailsPage.LaunchGenralCourse(); ContentDetailsPage.MarkCompleteGeneralCourse();// Enroll, Launch, and Completed the course CommonSection.ClickHome(); Assert.IsTrue(HomePage.CertificationPortlet.For("testcert_0709").IsStatus("Certified")); Assert.IsTrue(HomePage.CertificationPortlet.For("testcert_0709").IsProgressStatus("100%")); Assert.IsTrue(HomePage.CertificationPortlet.For("testcert_0709").IsRequiredCount(3)); Assert.IsTrue(HomePage.CertificationPortlet.For("testcert_0709").IsEarnedCount(3)); // Assert.IsTrue(HomePage.CertificationPortlet.Status("Certified").Progress("100% Completed")); HomePage.CertificationPortlet.ClickViewDetailsButtonofCertificationTitle("testcert_0709", "View Details"); //Assert.IsTrue(ContentDetailsPage.isStatus("Certified")); Assert.IsTrue(ContentDetailsPage.isProgress("100% Completed")); // Assert.IsTrue(CertificationDetailPage.Status("Certified").Progress("100% Completed")); CommonSection.ClickTranscript(); TranscriptPage.ClickCertificationsTab(); Assert.IsTrue(TranscriptPage.CertificationTab.For("testcert_0709").isCertificationStatus("Certified")); Assert.IsTrue(TranscriptPage.CertificationTab.For("testcert_0709").isCertificationProgress("100% Completed")); // Assert.IsTrue(TranscriptPage.CertificationsTab.Certification.Status("Certified").Progress("100% Completed")); learner_view_required_credit = true; }