Example #1
0
        public void learner_views_credit_hours_required_for_Re_Certification_and_any_completed_content_toward_those_hours_33968()
        {
            CommonSection.Logout();
            LoginPage.LoginAs(ExtractDataExcel.MasterDic_userforreg["Id"] + "people").WithPassword("").Login();
            //driver.UserLogin("userforregression", browserstr);
            //      CommonSection.Learn.ClickHome();
            HomePage.CertificationPortlet.For("testcert_0709").ClickViewDetailsButton();
            ContentDetailsPage.ClickAccessItemButton();
            ContentDetailsPage.ClickReCertifybutton();
            _test.Log(Status.Info, "Click  Re-Certify button");
            Assert.IsTrue(ContentDetailsPage.isTextDisplayed("Re-certification Criteria"));
            _test.Log(Status.Info, "Verify Re-certification Criteria section for this certificaiton");
            Assert.IsTrue(ContentDetailsPage.isTextDisplayed("1 sa_credittype"));
            _test.Log(Status.Info, "Verify Credit type Value needed to complete this certificaiton");
            Assert.IsTrue(ContentDetailsPage.isTextDisplayed("You must earn 3 sa_credittype credits to complete re-certification. Below is a list of content you’ve previously completed that awards this credit type"));
            _test.Log(Status.Info, "Verify Text displayed for Credit type Value needed to complete this certificaiton");

            //login with a admin
            //Pre-Req- Create a Certification with completion criteria as Credit Hrs.(with 3 Default Credit Type) Achieved.
            //Pre-Req- Set it as Expired and set expired completion time interval as 0, with completion criteria as Credit Hrs.(with 4 DV_Credit_Type) Achieved.
            //login with learner, access item and certify it by completing the content for credit type
            CommonSection.CatalogSearchText("testcert_0609");
            SearchResultsPage.ClickCourseTitle("testcert_0609");
            _test.Log(Status.Info, "Search Certification testcert_0609 from catalog search and open it");
            Assert.IsTrue(ContentDetailsPage.CertificationPortlet.isTextDisplayed("testcert_0609"));
            _test.Log(Status.Info, "Verify Certification course name");
            ContentDetailsPage.ClickAccessItemButton();
            _test.Log(Status.Info, "Click  Access Item button");
            // StringAssert.AreEqualIgnoringCase("3 Default Credit Type", ContentDetailsPage.CompletionCriteraiPortlet.isTextDisplayed("3 Default Credit Type"));
            _test.Log(Status.Info, "Verify Credit type Value needed to complete this certificaiton");
            Assert.IsTrue(ContentDetailsPage.CompletionCriteraiPortlet.isMsgDisplayed("You must earn 3 sa_credittype Type credits to complete this certification. Below is a list of content you’ve previously completed that awards this credit type."));
            _test.Log(Status.Info, "Verify Text displayed for Credit type Value needed to complete this certificaiton");
            //Click find qualified content and open and complete content which meeting required credit type so that certificaiton will complete
            ContentDetailsPage.ClickReCertifybutton();
            _test.Log(Status.Info, "Click  Re-Certify button");
            Assert.IsTrue(ContentDetailsPage.isTextDisplayed("Re-certification Criteria"));
            _test.Log(Status.Info, "Verify Re-certification Criteria section for this certificaiton");
            Assert.IsTrue(ContentDetailsPage.isTextDisplayed("4 DV_Credit_Type"));
            _test.Log(Status.Info, "Verify Credit type Value needed to complete this certificaiton");
            Assert.IsTrue(ContentDetailsPage.isTextDisplayed("You must earn 4 DV_Credit_Type credits to complete re-certification. Below is a list of content you’ve previously completed that awards this credit type"));
            _test.Log(Status.Info, "Verify Text displayed for Credit type Value needed to complete this certificaiton");
        }
        public void learner_views_credit_hours_required_for_Certification_and_any_completed_content_toward_those_hours_33921()
        {
            Driver.focusParentWindow();
            CommonSection.Logout();
            //login with a admin
            //Pre-Req- Create a Certification with completion criteria as Credit Hrs.(with 3 Default Credit Type) Achieved.
            //login with learner
            LoginPage.LoginAs("saiflearner").WithPassword("").Login(); //Login as regular user (Learner)
            CommonSection.SearchCatalog(CertificatrTitle + "TC33850");
            SearchResultsPage.ClickCourseTitle(CertificatrTitle + "TC33850");

            _test.Log(Status.Info, "Search Certification DV_Re_Cert_0803 from catalog search and open it");
            Assert.IsTrue(ContentDetailsPage.CertificationPortlet.isTextDisplayed(CertificatrTitle + "TC33850"));
            _test.Log(Status.Info, "Verify Certification course name");
            ContentDetailsPage.ClickAccessItemButton();
            _test.Log(Status.Info, "Click  Access Item button");
            Assert.IsTrue(ContentDetailsPage.CompletionCriteraiPortlet.isTextDisplayed("Completion Criteria"));
            _test.Log(Status.Info, "Verify Completion Criteria section for this certificaiton");
            Assert.IsTrue(ContentDetailsPage.CertificationPortlet.isBoldTextDisplayed("2.5 Default Credit Type"));
            _test.Log(Status.Info, "Verify Credit type Value needed to complete this certificaiton");
            Assert.IsTrue(ContentDetailsPage.ObjectivesPorlet.isTextDisplayed("Below is a list of content you’ve previously completed that awards this credit type."));
            _test.Log(Status.Info, "Verify Text displayed for Credit type Value needed to complete this certificaiton");
        }
        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;
        }