Пример #1
0
 public void Create_Certification_using_redesigned_certification_settings_33863()
 {
     //login with a admin
     //   Create a Certification from create>Certification
     CommonSection.Logout();
     LoginPage.LoginAs("").WithPassword("").Login();
     CommonSection.CreateLink.Certifications();
     _test.Log(Status.Info, "Click create>certification");
     CertificationPage.FillTitle(CertificatrTitle);
     _test.Log(Status.Info, "Fill title");
     CertificationPage.SelectDropDown.CompletionCriteriaAs("Total credit hours are achieved");
     _test.Log(Status.Info, "Select Value Total credit hours are achieved from completion criteria dropdown");
     CertificationPage.SelectDropDown.TotalHrsscrollAs("2.5");
     _test.Log(Status.Info, "Select Value 2.5 from scroll");
     CertificationPage.SelectDropDown.CreditTypeAs("Default Credit Type");
     _test.Log(Status.Info, "Select Value Default credit type");
     CertificationPage.Radiobutton.SelectCertificationexpireAs("No");
     _test.Log(Status.Info, "Select Value as no for Does this certification expire?");
     CertificationPage.Radiobutton.IncludePastContentCompletionAs("No");
     _test.Log(Status.Info, "Select Value as no for Include Past Content Completion");
     //CertificationPage.Radiobutton.CertificationCostTypeAs("Certification Price");
     CertificationPage.ClickCreate();
     _test.Log(Status.Info, "Select Value as Certification price for Certification Cost Type and click create");
     //StringAssert.AreEqualIgnoringCase("The item was created.", CertificationPage.VerifySuccessMessageText("The item was created."));
     _test.Log(Status.Pass, "The item was created.");
     StringAssert.AreEqualIgnoringCase("Total credit hours are achieved (2.5 Default Credit Type)", CertificationPage.VerifyCompletionCriteriaText("Total credit hours are achieved (2.5 Default Credit Type)"));
     _test.Log(Status.Pass, "Verify Completion Criteria: Total credit hours are achieved (2.5 Default Credit Type)");
     //  StringAssert.ArenotEqualIgnoringCase("Certification Content", Reg_Cert_CV_1107Page.VerifyText(""));
     // _test.Log(Status.Info, "Verify  Certification Content panel is not visible");
 }
Пример #2
0
 public void A08_Certifications_Containing_a_Curriculum_27206()
 {
     #region Crate a Certification
     CommonSection.CreateLink.Certifications();
     _test.Log(Status.Info, "Click create>certification");
     CertificationPage.FillTitle(CertificatrTitle + "TC27206");
     _test.Log(Status.Info, "Fill title");
     //CertificationPage.SelectDropDown.CompletionCriteriaAs("Total credit hours are achieved");
     //_test.Log(Status.Info, "Select Value Total credit hours are achieved from completion criteria dropdown");
     //CertificationPage.SelectDropDown.TotalHrsscrollAs("2.5");
     //_test.Log(Status.Info, "Select Value 2.5 from scroll");
     //CertificationPage.SelectDropDown.CreditTypeAs("Default Credit Type");
     //_test.Log(Status.Info, "Select Value Default credit type");
     CertificationPage.Radiobutton.SelectCertificationexpireAs("No");
     _test.Log(Status.Info, "Select Value as no for Does this certification expire?");
     CertificationPage.Radiobutton.IncludePastContentCompletionAs("No");
     _test.Log(Status.Info, "Select Value as no for Include Past Content Completion");
     CertificationPage.ClickCreate();
     _test.Log(Status.Info, "Select Value as Certification price for Certification Cost Type and click create");
     #endregion
     DocumentPage.ClickButton_CheckOut();
     CertificatePage.addContentIntoCertificate(curriculamtitle + "_TC26349");
     DocumentPage.ClickButton_CheckIn();
     CommonSection.SearchCatalog(curriculamtitle + "_TC26349");
     _test.Log(Status.Info, "Enter curriculum title in global search box");
     SearchResultsPage.ClickCourseTitle(curriculamtitle + "_TC26349");
     _test.Log(Status.Info, "Click on search result from catalog");
     //  Block Detail is Missing
 }
Пример #3
0
        //Editing existing certification
        public void tc_10879_ManageA_Certification()
        {
            CommonSection.CreateLink.Certifications();
            CertificationPage.FillTitle(CertificatrTitle + "TC10879");
            _test.Log(Status.Info, "Fill title");
            CertificationPage.ClickCreate();
            CommonSection.Manage.Training();
            TrainingPage.SearchRecord(CertificatrTitle + "TC10879");
            SearchResultsPage.ClickCourseTitle(CertificatrTitle + "TC10879");

            ContentDetailsPage.Summary.ClickEdit();
            Assert.IsTrue(CertificationPage.AvailableinCatalog.isChecked());
            _test.Log(Status.Pass, "Verifed Available in Catalog Option is Display");
            //  Assert.IsTrue(Driver.checkTagsonContentCreationPage(true));
            GeneralCoursePage.SearchTagForNewContent(tagname + "TC10879");
            _test.Log(Status.Info, "Searching Tag.");
            CertificationPage.AvailableinCatalog.ClicktoUncheck();
            SummaryPage.ClickSavebutton();
            //  Assert.IsTrue(Driver.checkContentTagsOnDetailsPage());
            string s = Driver.GetElement(By.XPath("//strong[contains(.,'" + tagname + "TC10879')]")).Text;

            StringAssert.AreEqualIgnoringCase(tagname + "TC10879", s);
            _test.Log(Status.Info, "Assertion Pass as Searching for Tag Successfully Done");
            Assert.IsTrue(ContentDetailsPage.Summary.isAvailableinCatalog_certification("No"));
            CommonSection.SearchCatalog(CertificatrTitle + "TC10879");
            Assert.IsFalse(SearchResultsPage.isSearchResultDisplayed(CertificatrTitle + "TC10879"));
            _test.Log(Status.Pass, "Verify Created content is not Searched");

            CommonSection.Manage.Training();
            _test.Log(Status.Info, "Navigate to Manage>>Training Page");
            TrainingPage.SearchRecord(CertificatrTitle + "TC10879");
            _test.Log(Status.Info, "Searchched created Classroom course using manage Content portlet");
            Assert.IsTrue(ManageContentPage.ResultGrid.isSeaarchedContentDisplay(CertificatrTitle + "TC10879"));
            _test.Log(Status.Pass, "Verify Created content is Searched through Manage content");
        }
Пример #4
0
        //Creating new certification
        public void tc_10878_CreateANew_Certification()
        {
            CommonSection.CreateLink.Certifications();
            Assert.IsTrue(CertificationPage.AvailableinCatalog.isAvailableinCatalogOptionisDisplay());
            _test.Log(Status.Pass, "Verifed Available in Catalog Option is Display");
            Assert.IsTrue(CertificationPage.AvailableinCatalog.isChecked());
            _test.Log(Status.Pass, "Verifed Available in Catalog Option is Display");
            GeneralCoursePage.SearchTagForNewContent(tagname + "TC10878");
            _test.Log(Status.Info, "Searching Tag.");
            CertificationPage.FillTitle(CertificatrTitle + "TC10878");
            _test.Log(Status.Info, "Fill title");
            CertificationPage.ClickCreate();
            string s = Driver.GetElement(By.XPath("//strong[contains(.,'" + tagname + "TC10878')]")).Text;

            StringAssert.AreEqualIgnoringCase(tagname + "TC10878", s);
            _test.Log(Status.Info, "Assertion Pass as Searching for Tag Successfully Done");
            Assert.IsTrue(ContentDetailsPage.Summary.isAvailableinCatalog("Yes"));
            _test.Log(Status.Pass, "Verify Available in Catalog values is Yes in summary portlet");
            CommonSection.SearchCatalog(CertificatrTitle + "TC10878");
            Assert.IsTrue(SearchResultsPage.isSearchResultDisplayed(CertificatrTitle + "TC10878"));
            _test.Log(Status.Pass, "Verify Created content is Searched");
        }
Пример #5
0
 public void Create_Certification_when_Completion_Criteria_Set_as_Credit_type_33822()
 {
     //login with a admin
     // Create a Certification from create>Certification
     CommonSection.CreateLink.Certifications();
     _test.Log(Status.Info, "Click create>certification");
     CertificationPage.FillTitle(CertificatrTitle + "TC33822");
     _test.Log(Status.Info, "Fill title");
     CertificationPage.SelectDropDown.CompletionCriteriaAs("Total credit hours are achieved");
     _test.Log(Status.Info, "Select Value Total credit hours are achieved from completion criteria dropdown");
     CertificationPage.SelectDropDown.TotalHrsscrollAs("2.5");
     _test.Log(Status.Info, "Select Value 2.5 from scroll");
     CertificationPage.SelectDropDown.CreditTypeAs("Default Credit Type");
     _test.Log(Status.Info, "Select Value Default credit type");
     CertificationPage.Radiobutton.SelectCertificationexpireAs("No");
     _test.Log(Status.Info, "Select Value as no for Does this certification expire?");
     CertificationPage.Radiobutton.IncludePastContentCompletionAs("No");
     _test.Log(Status.Info, "Select Value as no for Include Past Content Completion");
     //CertificationPage.Radiobutton.CertificationCostTypeAs("Certification price");
     CertificationPage.ClickCreate();
     _test.Log(Status.Info, "Select Value as Certification price for Certification Cost Type and click create");
     // StringAssert.AreEqualIgnoringCase("The item was created.", CertificationPage.VerifySuccessMessageText("The item was created."));
     _test.Log(Status.Pass, "The item was created.");
     StringAssert.AreEqualIgnoringCase("Total credit hours are achieved (2.5 Default Credit Type)", CertificationPage.VerifyCompletionCriteriaText("Total credit hours are achieved (2.5 Default Credit Type)"));
     _test.Log(Status.Pass, "Verify Completion Criteria: Total credit hours are achieved (2.5 Default Credit Type)");
     //StringAssert.ArenotEqualIgnoringCase("Certification Content", Reg_Cert_CV_1107Page.VerifyText(""));
     // _test.Log(Status.Info, "Verify  Certification Content panel is not visible");
     CertificationPage.Summary.ClickEdit();
     _test.Log(Status.Info, "Click Edit Button");
     Assert.IsFalse(SummaryPage.VerifyCompletionCriterianoteditable("Completion Criteria"));
     _test.Log(Status.Pass, "Verify  Completion Criteria cannot be modified");
     Assert.IsFalse(SummaryPage.VerifyTotalHoursnoteditable("Total Hours "));
     _test.Log(Status.Pass, "Verify  Total Hours  cannot be modified");
     Assert.IsFalse(SummaryPage.VerifyfCreditTypenoteditable("Credit Type"));
     _test.Log(Status.Pass, "Verify  Credit Type cannot be modified");
 }
Пример #6
0
        public void tc_33850_Create_Certification_when_user_defines_re_certification_completion_criteria_as_specific_credit_type()
        {
            CommonSection.CreateLink.Certifications();
            _test.Log(Status.Info, "Click create>certification");
            CertificationPage.FillTitle(CertificatrTitle + "TC33850");
            _test.Log(Status.Info, "Fill title");
            CertificationPage.SelectDropDown.CompletionCriteriaAs("Total credit hours are achieved");
            _test.Log(Status.Info, "Select Value Total credit hours are achieved from completion criteria dropdown");
            CertificationPage.SelectDropDown.TotalHrsscrollAs("2.5");
            _test.Log(Status.Info, "Select Value 2.5 from scroll");
            CertificationPage.SelectDropDown.CreditTypeAs("Default Credit Type");
            _test.Log(Status.Info, "Select Value Default credit type");
            CertificationPage.Radiobutton.SelectCertificationexpireAs("Yes");
            //CertificationPage.selectduration("1").Selectinterval("Day(s)");
            _test.Log(Status.Info, "Select Value as yes for Does this certification expire? and select interval period");
            CertificationPage.Radiobutton.SelectAllowReCertificationAs("Yes");
            _test.Log(Status.Info, "Select Allow Re Certification As Yes");
            CertificationPage.SelectDropDown.ReCertificationCriteriaAs("Total credit hours are achieved");
            _test.Log(Status.Info, "Select Value Total credit hours are achieved from completion criteria dropdown");
            CertificationPage.SelectDropDown.ReCertificationTotalHrsscrollAs("3.5");
            _test.Log(Status.Info, "Select Value 3.5 from scroll");
            CertificationPage.SelectDropDown.ReCertificationCreditTypeAs("dv_credit_type");
            _test.Log(Status.Info, "Select Value DV_Credit_Type");
            CertificationPage.Radiobutton.IncludePastContentCompletionAs("Yes");
            _test.Log(Status.Info, "Select Value as yes for Allow re-certification ?");


            CertificationPage.ClickCreate();
            _test.Log(Status.Info, "Certification created");

            StringAssert.AreEqualIgnoringCase("Total credit hours are achieved (2.5 Default Credit Type)", CertificationPage.VerifyCompletionCriteriaText("Total credit hours are achieved (2.5 Default Credit Type)"));
            _test.Log(Status.Pass, "Verify Completion Criteria: Total credit hours are achieved (2.5 Default Credit Type)");

            StringAssert.AreEqualIgnoringCase("Total credit hours are achieved (3.5 dv_credit_type)", CertificationPage.VerifyReCertificationCompletionCriteriaText("Total credit hours are achieved (3.5 dv_credit_type)"));
            _test.Log(Status.Pass, "Verify Completion Criteria: Total credit hours are achieved (3.5 Default Credit Type)");
        }
Пример #7
0
 public void Edit_Certification_user_edits_recertification_completion_as_Credit_type_33851()
 {
     //login with a admin
     // Create a Certification from create>Certification
     CommonSection.CreateLink.Certifications();
     _test.Log(Status.Info, "Click create >> certification");
     CertificationPage.FillTitle(CertificatrTitle + "TC33851");
     _test.Log(Status.Info, "Fill title as" + CertificatrTitle + "TC33851");
     CertificationPage.SelectDropDown.CompletionCriteriaAs("Total credit hours are achieved");
     _test.Log(Status.Info, "Select Value Total credit hours are achieved from completion criteria dropdown");
     CertificationPage.SelectDropDown.TotalHrsscrollAs("2.5");
     _test.Log(Status.Info, "Select Value 2.5 from scroll");
     CertificationPage.SelectDropDown.CreditTypeAs("Default Credit Type");
     _test.Log(Status.Info, "Select Value Default credit type");
     CertificationPage.Radiobutton.SelectCertificationexpireAs("Yes");
     _test.Log(Status.Info, "Select Value as yes for Does this certification expire? and select interval period");
     CertificationPage.Radiobutton.SelectAllowReCertificationAs("Yes");
     _test.Log(Status.Info, "Select Value as yes for Allow re-certification ?");
     CertificationPage.SelectDropDown.ReCertificationCriteriaAs("Total credit hours are achieved");
     _test.Log(Status.Info, "Select Value Total credit hours are achieved from completion criteria dropdown");
     CertificationPage.SelectDropDown.ReCertificationTotalHrsscrollAs("3.5");
     _test.Log(Status.Info, "Select Value 3.5 from scroll");
     CertificationPage.SelectDropDown.ReCertificationCreditTypeAs("dv_credit_type");
     _test.Log(Status.Info, "Select Value DV_Credit_Type");
     CertificationPage.Radiobutton.IncludePastContentCompletionAs("No");
     _test.Log(Status.Info, "Select Value as no for Include Past Content Completion");
     //CertificationPage.Radiobutton.CertificationCostTypeAs("Certification price");
     CertificationPage.ClickCreate();
     _test.Log(Status.Info, "Select Value as Certification price for Certification Cost Type and click create");
     // StringAssert.AreEqualIgnoringCase("The item was created.", CertificationPage.VerifySuccessMessageText("The item was created."));
     _test.Log(Status.Info, "The item was created.");
     StringAssert.AreEqualIgnoringCase("Total credit hours are achieved (2.5 Default Credit Type)", CertificationPage.VerifyCompletionCriteriaText("Total credit hours are achieved (2.5 Default Credit Type)"));
     _test.Log(Status.Pass, "Verify Completion Criteria: Total credit hours are achieved (2.5 Default Credit Type)");
     //StringAssert.ArenotEqualIgnoringCase("Certification Content", Reg_Cert_CV_1107Page.VerifyText(""));
     //_test.Log(Status.Info, "Verify  Certification Content panel is not visible");
     StringAssert.AreEqualIgnoringCase("Total credit hours are achieved (3.5 dv_credit_type)", CertificationPage.VerifyReCertificationCompletionCriteriaText("Total credit hours are achieved (3.5 dv_credit_type)"));
     _test.Log(Status.Pass, "Verify Completion Criteria: Total credit hours are achieved (3.5 DV_Credit_Type)");
     // StringAssert.ArenotEqualIgnoringCase("Re-Certification Content", Reg_Cert_CV_1107Page.VerifyText(""));
     // _test.Log(Status.Info, "Verify  Re-Certification Content panel is not visible");
     CertificationPage.Summary.ClickEdit();
     _test.Log(Status.Info, "Click Edit Button");
     Assert.IsFalse(SummaryPage.VerifyCompletionCriterianoteditable("Completion Criteria"));
     _test.Log(Status.Pass, "Verify  Completion Criteria cannot be modified");
     Assert.IsFalse(SummaryPage.VerifyTotalHoursnoteditable("Total Hours "));
     _test.Log(Status.Pass, "Verify  Total Hours  cannot be modified");
     Assert.IsFalse(SummaryPage.VerifyfCreditTypenoteditable("Credit Type"));
     _test.Log(Status.Info, "Verify  Credit Type cannot be modified");
     // SummaryPage.SelectDropDown.ReCertificationCriteriaAs("Total credit hours are achieved");
     SummaryPage.SelectDropDownonSummary.ReCertificationCriteriaAs("Total credit hours are achieved");
     _test.Log(Status.Info, "Select Value Total credit hours are achieved from completion criteria dropdown");
     // SummaryPage.SelectDropDown.TotalHrsscrollAs("3.0");
     SummaryPage.SelectDropDownonSummary.TotalHrsscrollAs("3.0");
     _test.Log(Status.Info, "Select Value 3 from scroll for recertification");
     // SummaryPage.SelectDropDown.CreditTypeAs("Default Credit Type");
     SummaryPage.SelectDropDownonSummary.CreditTypeAs("Default Credit Type");
     SummaryPage.clicksave();
     _test.Log(Status.Info, "Select Value Default Credit Type and click save");
     // SummaryPage.ClickonCertificationsBreadcromb();
     //StringAssert.AreEqualIgnoringCase("Total credit hours are achieved (3 Default Credit Type)", CertificationPage.VerifyReCertificationCompletionCriteriaText("Total credit hours are achieved (3.0 Default Credit Type)"));
     //_test.Log(Status.Pass, "Verify Completion Criteria: Total credit hours are achieved (3 Default Credit Type)");
     CommonSection.Logout();
 }