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 Learner_Views_Certificate_For_Certification_Completed_By_Fulfilling_Required_Amount_Of_Credit_Type_Hours_33944() //Certification created with completion criteria as Total Credit hours is achieved. User has already completed the certification { // LoginPage.LoginAs("reguser").WithPassword("").Login(); //Login as regular user (Learner) // CommonSection.Home.CertificationPortlet(); //Assert.IsTrue(HomePage.CertificationPortlet.For("testcert_0709").IsStatus("Certified")); //Assert.IsTrue(HomePage.CertificationPortlet.For("testcert_0709").IsProgressStatus("100%")); //HomePage.CertificationPortlet.ClickViewDetailsButtonofCertificationTitle("testcert_0709", "View Details"); ////Assert.IsTrue(ContentDetailsPage.isStatus("Certified")); //Assert.IsTrue(ContentDetailsPage.isProgress("100% Completed")); CommonSection.ClickTranscript(); TranscriptPage.ClickCertificationsTab(); //Assert.IsTrue(TranscriptPage.CertificationTab.isCertificationStatus("Certified")); //Assert.IsTrue(TranscriptPage.CertificationTab.isProgress("100% Completed")); TranscriptPage.CertificationTab.ClickViewCertificateButton(); Driver.Instance.SwitchWindow("Certificate"); string s = Driver.Instance.Title; StringAssert.AreEqualIgnoringCase("Certificate", s); TranscriptPage.CloseCertificationWindow(); Driver.Instance.SwitchtoDefaultContent(); Assert.IsTrue(TranscriptPage.CertificateWindowIsClosed("Transcript")); }
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; }