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();
        }
예제 #2
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 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;
        }