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"); }
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(); }