public void tc_58378_As_an_Admin_Include_evaluation_in_certification_content() { CommonSection.CreateLink.Certifications(); _test.Log(Status.Info, "Click create>certification"); CertificationPage.FillTitle(CertificatrTitle + "TC58378"); _test.Log(Status.Info, "Fill title"); CertificationPage.ClickCreateCertification(); _test.Log(Status.Info, "Click create"); ContentDetailsPage.ClickEditCertificationContent(); EditCertificateContentsPage.ClickAddContent(); AddContentToCertificationPage.ClickSeemoresearchcriteriaLink(); AddContentToCertificationPage.SearchType.ClickType(); Assert.IsTrue(AddContentToCertificationPage.SearchType.Type.isEvaluationdisplay()); _test.Log(Status.Pass, "Verify is Evaluation display in Type list"); AddContentToCertificationPage.SearchType.Type.SelectType("Evaluation"); AddContentToCertificationPage.ClickSearchbutton(); Assert.IsTrue(AddContentToCertificationPage.ResultGrid.isContentTypeDisplay("Evaluation")); _test.Log(Status.Pass, "Verify Evaluation recoreds are searched"); AddContentToCertificationPage.ResultGrid.Selectfirstrecord(); AddContentToCertificationPage.clickAddButton(); Assert.IsTrue(AddContentToCertificationPage.getFeedbackMessage()); _test.Log(Status.Pass, "Verify Content added feedback message on page"); AddContentToCertificationPage.clickBackButton(); Assert.IsTrue(EditCertificateContentsPage.addedContent.isEvaluationAdded()); _test.Log(Status.Pass, "Verify Evaluation added to certification content"); }
// ############# Create a Constructor ############# public CertificationPageSteps() { // Inject the driver driver = new ChromeDriver(); loginPage = new LoginPage(driver); certificationPage = new CertificationPage(driver); }
public void tc_26327_Add_Certification_To_Cart() { CommonSection.CreateLink.Certifications(); _test.Log(Status.Info, "Click create>certification"); CertificationPage.FillTitle(CertificatrTitle + "TC26327"); _test.Log(Status.Info, "Fill title"); CertificationPage.ClickCreateCertification(); _test.Log(Status.Info, "Click create"); AdminContentDetailsPage.AddCost(); ContentDetailsPage.Click_Check_in(); //CommonSection.SearchCatalog('"' + CertificatrTitle + "TC26327" + '"'); // Search for Bundle that has Promotional Video //_test.Log(Status.Info, "Searched" + CertificatrTitle + "TC26327" + "from Catalog"); //SearchResultsPage.ClickCourseTitle(CertificatrTitle + "TC26327"); // Click on Bundle Title //_test.Log(Status.Info, "Clicked searched course title"); //ContentDetailsPage.Click_CheckOut(); //ContentDetailsPage.ClickEditContent_New19_2(); //AdminContentDetailsPage.AddCost(); //ContentDetailsPage.Click_Check_in(); CommonSection.SearchCatalog('"' + CertificatrTitle + "TC26327" + '"'); // Search for Bundle that has Promotional Video _test.Log(Status.Info, "Searched" + CertificatrTitle + "TC26327" + "from Catalog"); SearchResultsPage.ClickCourseTitle(CertificatrTitle + "TC26327"); // Click on Bundle Title _test.Log(Status.Info, "Clicked searched course title"); Assert.IsTrue(ContentDetailsPage.isAddToCartButtonDisplayed()); ContentDetailsPage.ClickAddtoCart_GeneralCourse(); StringAssert.AreEqualIgnoringCase("Success\r\nThe item was added to the cart.\r\n×", Driver.getSuccessMessage(), "Error message is different"); Assert.IsTrue(ContentDetailsPage.ClickAddtoCartPortlet.isAddedtocardinfodisplay()); Assert.IsTrue(CommonSection.isCountincrease_ShopingCart()); }
//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"); }
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"); }
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 }
public void tc_57596_As_an_admin_I_want_to_attach_an_Evaluation_for_Certification() { CommonSection.CreateLink.Certifications(); _test.Log(Status.Info, "Click create>certification"); CertificationPage.FillTitle(CertificatrTitle + "TC57596"); _test.Log(Status.Info, "Fill title"); CertificationPage.ClickCreateCertification(); _test.Log(Status.Info, "Click create"); Assert.IsTrue(ContentDetailsPage.isSurveyAccordiandisplayed()); _test.Log(Status.Info, "Verify Survey and Evaluations accordian display on RHS side"); ContentDetailsPage.Accordians.ClickManage_Survey(); _test.Log(Status.Info, "Click Survey Manage button"); Assert.IsTrue(SurveysPage.IsSurveyPageCompenetsarepresent("Add btn", "resultgrid")); _test.Log(Status.Info, "Verify Survey page has Add Surveys button and result grid has no record"); SurveysPage.ClickAssignSurveysnew(); _test.Log(Status.Info, "Click on Assign Surveys Button"); Assert.IsTrue(SurveysPage.isAddSurveyandEvaluationsModalDisplay()); Assert.IsTrue(SurveysPage.AddSurveyModal.IsSearchfieldsDisplayed()); _test.Log(Status.Pass, "Verify Search, Result grid, Add button on Add survey Modal"); SurveysPage.AddSurveyModal.ClickAllTypedropdown(); Assert.IsTrue(SurveysPage.AddSurveyModal.AllTypedropdown.isEvaluationdisplay()); _test.Log(Status.Pass, "Verify Evaluation display in alltype dropdown"); SurveysPage.AddSurveyModal.AllTypedropdown.ClickEvaluations(); SurveysPage.AddSurveyModal.clickSearchicon(); Assert.IsTrue(SurveysPage.AddSurveyModal.ResultGrid.isEvaluationsDisplay()); _test.Log(Status.Pass, "Verify Evaluations are display in Result grid"); Assert.IsTrue(SurveysPage.AddSurveyModal.ResultGrid.isRequiredChangeble()); _test.Log(Status.Pass, "Verifyis Require is changeable"); Assert.IsTrue(SurveysPage.AddSurveyModal.ResultGrid.isAvailableChangeble()); _test.Log(Status.Pass, "Verify Available is changeable"); ContentDetailsPage.DeleteContent(); }
public void AddCertificate() { //Populate the excel data GlobalDefinitions.ExcelLib.PopulateInCollection(Base.ExcelPath, "Profile"); test = extent.CreateTest("Add Certificate to Profile"); test.Log(Status.Info, "Starting the Add Certificate to profile Test"); CertificationPage certificationPage = new CertificationPage(); certificationPage.AddCertificate( GlobalDefinitions.ExcelLib.ReadData(2, "Certificate"), GlobalDefinitions.ExcelLib.ReadData(2, "CertifiedFrom")); bool actual = certificationPage.VerifyCertificationPage( GlobalDefinitions.ExcelLib.ReadData(2, "Certificate")); if (actual) { test.Log(Status.Pass, "Add Certificate Successfull"); Assert.IsTrue(actual); } else { test.Log(Status.Fail, "Add Certificate Failed"); Assert.IsTrue(actual); } }
public void tc_26335_Access_Re_certification() { CommonSection.CreateLink.GeneralCourse(); _test.Log(Status.Info, "Creating a Paid General Course"); GeneralCoursePage.CreateGeneralCourse(generalcoursetitle + "TC26335", "Test General Course"); DocumentPage.ClickButton_CheckIn(); CommonSection.CreateLink.GeneralCourse(); _test.Log(Status.Info, "Creating a Paid General Course"); GeneralCoursePage.CreateGeneralCourse(generalcoursetitle + "TC26335_Recitify", "Test General Course"); DocumentPage.ClickButton_CheckIn(); CommonSection.CreateLink.Certifications(); _test.Log(Status.Info, "Click create>certification"); CertificationPage.FillTitle(CertificatrTitle + "TC26335"); _test.Log(Status.Info, "Fill title"); CertificatePage.Doesthiscertificationexpire("Yes"); CertificationPage.isthisarecurringcertification("Yes"); CertificationPage.Whenistsertificationperiod("Immediately").until("1").Days(); CertificationPage.ClickCreateCertification(); _test.Log(Status.Info, "Click create"); CertificatePage.addContentIntoCertificate(generalcoursetitle + "TC26335"); CertificatePage.Click_backbutton(); CertificatePage.addContenttoRecertification(generalcoursetitle + "TC26335_Recitify"); CertificatePage.Click_backbutton(); ContentDetailsPage.ClickCheckInbutton(); CommonSection.Logout(); LoginPage.LoginAs("srlearner103").WithPassword("").Login(); //Login as regular user (Learner) CommonSection.SearchCatalog('"' + CertificatrTitle + "TC26335" + '"'); _test.Log(Status.Info, "Searched" + CertificatrTitle + "TC26335" + "from Catalog"); SearchResultsPage.ClickCourseTitle(CertificatrTitle + "TC26335"); _test.Log(Status.Info, "Clicked searched course title"); ContentDetailsPage.ClickAccessItemButton_Certi(); ContentDetailsPage.ContentItemsPortlet.ClickItemTitle(generalcoursetitle + "TC26335"); ContentDetailsPage.ClickEnroll_CerficationGeneralCourse(); AdminContentDetailsPage.ClickOpenNewAttemptbutton.CompleteContent_Certification(); CertificationDetailsPage.ClickBreadCrumb(); Assert.IsTrue(ContentDetailsPage.certificationProgress() == "100% Completed"); //AC4 _test.Log(Status.Pass, "Verify progress display after content completed"); Assert.IsTrue(ContentDetailsPage.IsViewCertificateButtondisplay()); Assert.IsTrue(ContentDetailsPage.isRe_certifybuttondisplay()); _test.Log(Status.Pass, "Verify recertify button display"); ContentDetailsPage.Click_Recertfybutton(); Assert.IsTrue(ContentDetailsPage.isReCertificationContentportletdisplay()); Assert.IsTrue(ContentDetailsPage.RecertificationCriteriaPortlet.content(generalcoursetitle + "TC26335_Recitify")); _test.Log(Status.Pass, "Verify recertify content is display"); ContentDetailsPage.RecertificationCriteriaPortlet.clickContentTitle(generalcoursetitle + "TC26335_Recitify"); ContentDetailsPage.ClickEnroll_CerficationGeneralCourse(); AdminContentDetailsPage.ClickOpenNewAttemptbutton.CompleteContent_Certification(); CertificationDetailsPage.ClickBreadCrumb(); Assert.IsTrue(ContentDetailsPage.certificationProgress() == "100% Completed"); _test.Log(Status.Pass, "Verify progress display after content completed"); Assert.IsTrue(ContentDetailsPage.IsViewCertificateButtondisplay()); //Assert.IsTrue(ContentDetailsPage.IsViewCoreCertificateButtondisplay()); }
public void deleteCertificationTest(IWebDriver driver) { // Profile Objects ProfilePage profileObj = new ProfilePage(driver); profileObj.navigateToCertification(driver); // certification Page Object CertificationPage certificationObj = new CertificationPage(driver); certificationObj.deleteCertification(driver); }
public void a04_Recertification_Admin_chooses_when_recertification_starts_58098() { CommonSection.CreateLink.Certifications(); _test.Log(Status.Info, "Click create>certification"); CertificationPage.FillTitle(CertificatrTitle + "TC57970"); _test.Log(Status.Info, "Fill title"); CertificationPage.DoesthisCertificationexpire("Yes"); Assert.IsTrue(CertificationPage.isthisarecurringcertificationLeveldisplay()); CertificationPage.isthisarecurringcertification("Yes"); Assert.IsTrue(CertificationPage.isWhendoestheCertificationgointoeffectLevelDisplay()); //AC1 Assert.IsTrue(CertificatePage.isUponrecertificationcontentcompletionDisplay()); //AC2 Assert.IsTrue(CertificatePage.isWhenpreviousCertificationexpiresDisplay()); //AC3 //Assert.IsTrue(CertificatePage.isUponrecertificationcontentcompletionSelected()); //AC4 _test.Log(Status.Pass, "Is Upon recertification content completion Selected"); TC10877_1 = true; }
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 tc_60488_Public_catalog_banner_actions_for_Certification() { ContentDetailsPage.clickReturningUserLogin(); LoginPage.LoginAs("").WithPassword("").Login(); CommonSection.CreateGeneralCourse(GeneralCourseTitle + "_TC60488"); DocumentPage.ClickButton_CheckIn(); CommonSection.CreateLink.Certifications(); CertificationPage.FillTitle(CertificatrTitle + "_TC60488"); _test.Log(Status.Info, "Fill title"); CertificationPage.ClickCreateCertification(); _test.Log(Status.Info, "Click create"); Assert.IsTrue(ContentDetailsPage.IsContentCreated()); _test.Log(Status.Pass, "Verify New Document is Created"); ContentDetailsPage.Edit_Prerequisites(generalcoursetitle + "TC60459"); _test.Log(Status.Pass, "Click edit Prerequisite and add Prerequisite"); PrerequisitesPage.Click_BreadCrumb(); _test.Log(Status.Pass, "Click breadcrumbs"); AdminContentDetailsPage.EditAndAddCertificationContent('"' + GeneralCourseTitle + "_TC60488" + '"'); CertificatePage.Click_backbutton(); ContentDetailsPage.Accordians.ClickEdit_Image(); ImagePage.UploadnewImageFile(); _test.Log(Status.Info, "Upload any Image file to content"); ContentDetailsPage.Click_editContentSharing(); ContentSharingPage.PublishtoPublishcatalog(); ContentDetailsPage.Click_Check_in(); _test.Log(Status.Info, "Click on Check In"); CommonSection.Logout(); LoginPage.ClickBrowsePublicCatalogLink(); CommonSection.SearchCatalog(CertificatrTitle + "_TC60488"); SearchResultsPage.ClickCourseTitle(CertificatrTitle + "_TC60488"); Assert.IsTrue(ContentDetailsPage.isBradCrumbdisplay()); Assert.IsTrue(ContentDetailsPage.ContentBanner.isContentTitledisplay(CertificatrTitle + "_TC60488")); _test.Log(Status.Pass, "Verify Content title is display on Banner"); Assert.IsTrue(ContentDetailsPage.ContentBanner.isContentTypedisplay()); _test.Log(Status.Pass, "Verify Content type is display on Banner"); Assert.IsTrue(ContentDetailsPage.ContentBanner.isContentImagedisplay()); _test.Log(Status.Pass, "Verify Image is display on Banner"); Assert.IsTrue(ContentDetailsPage.OverviewTab.isPrerequisitePortletDisplay()); Assert.IsTrue(ContentDetailsPage.isContentTabdisplay()); tc_60477 = true; }
public void P20_1_a03_As_an_Admin_I_want_to_set_when_a_learner_can_begin_recertification_and_whether_they_can_complete_after_expiration_58197() { CommonSection.Logout(); LoginPage.LoginAs("").WithPassword("").Login(); CommonSection.CreateLink.Certifications(); _test.Log(Status.Info, "Click create>certification"); CertificationPage.FillTitle(CertificatrTitle + "TC57970"); _test.Log(Status.Info, "Fill title"); CertificationPage.DoesthisCertificationexpire("Yes"); Assert.IsTrue(CertificationPage.isthisarecurringcertificationLeveldisplay()); CertificationPage.isthisarecurringcertification("Yes"); Assert.IsTrue(CertificationPage.isWhenistherecertificationperiodLevelDisplay()); //AC1 CertificationPage.Whenistherecertificationperiod.Setbeforeexpiration(); Assert.IsTrue(CertificationPage.isCertificationperiodfieldsDisplay()); //AC2 CertificationPage.Whenistherecertificationperiod.Brfore("15"); CertificationPage.Whenistherecertificationperiod.SetEndsAs("Set period"); CertificationPage.Whenistherecertificationperiod.After("15"); CertificationPage.ClickCreateCertification(); _test.Log(Status.Info, "Click create"); Assert.IsTrue(ContentDetailsPage.Summary.VerifyRecertificationIntervaldays("15 Days")); //AC3 TC10877 = true; }
//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"); }
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)"); }
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 WhenIAmAbleToDeleteTheExsistingCertificate() { var certificatedeleted = new CertificationPage(); certificatedeleted.Certificatedeleted(); }
public void WhenITryToDeleteExistingCertificate() { var deletecertificate = new CertificationPage(); deletecertificate.DeleteCertificate(); }
public void ThenIAmAbleToVerifyTheUpdatedCertificates() { var certificateedited = new CertificationPage(); certificateedited.CertificateEdited(); }
public void WhenIEditTheExistingCertificates() { var editcertificate = new CertificationPage(); editcertificate.EditCertificate(); }
public void ThenSellerIsAbleToVerifyTheCertificateInTheProfileDetails() { var certificateadded = new CertificationPage(); certificateadded.CertificateAddded(); }
public void WhenIAddCertificate() { var addcertificate = new CertificationPage(); addcertificate.AddCertificate(); }
public void ThenIShouldAbleToValidateAddedNEWCERTIFICATIONRecordSuccessfully() { CertificationPage Create = new CertificationPage(); Create.ValidateAddCertification(); }
public void WhenIPressUpdatePenAndUpdateTheCertificateCertificateFromYearAndPressTheUPDATEButton() { CertificationPage Create = new CertificationPage(); Create.UpdateCertification(); }
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(); }
public void ThenIShouldAbleToValidateUPDATEDCERTIFICATIONSuccessfully() { CertificationPage Create = new CertificationPage(); Create.ValidateUpdatedCertification(); }
public void P20_1_b16_Certifications_Containing_a_Document_27200() { CommonSection.CreteNewDocuemnt(DocumentTitle + "TC27200"); _test.Log(Status.Info, "Create a Document"); AdminContentDetailsPage.ClickCheckInbutton(); _test.Log(Status.Info, "Click Check In Button"); CommonSection.CreateLink.Certifications(); _test.Log(Status.Info, "Click on Certification"); CertificationPage.FillTitle(CertificatrTitle + "TC27200"); _test.Log(Status.Info, "Create a Certification course"); CertificationPage.SelectDropDown.CompletionCriteriaAs("Content is completed in ANY order (Non-Linear) (Non-Linear)"); _test.Log(Status.Info, "Select Completion Criteria "); CertificationPage.Radiobutton.SelectCertificationexpireAs("No"); _test.Log(Status.Info, "Select Certification expiry"); CertificationPage.Radiobutton.IncludePastContentCompletionAs("No"); _test.Log(Status.Info, "Select option Includes Past Content Completion"); CertificationPage.Radiobutton.SelectAllowReCertificationAs("Yes"); _test.Log(Status.Info, "Select Allow Re-Certification"); CertificationPage.Radiobutton.CertificationCostTypeAs(""); _test.Log(Status.Info, "Select Certification Cost Type"); CertificationPage.CreateCertification(); _test.Log(Status.Info, "Click on Create Button"); //CertificationPage.VerifySuccessMessageText("The item was created."); CertificationPage.AddContentInCertification("AddingWaitlistMembers_Bug"); _test.Log(Status.Info, "Add Content in Certification"); CertificationPage.CheckIn(); _test.Log(Status.Info, "Click on CheckIn"); CommonSection.SearchCatalog(CertificatrTitle + "TC27200"); _test.Log(Status.Info, "Search for the Certification Course Title"); SearchResultsPage.ClickCourseTitle(bundleTitle + "TC27200"); _test.Log(Status.Info, "Click on Course Title"); Assert.IsTrue((Driver.comparePartialString("You do not have a certification status for this certification.", ContentDetailsPage.getInformativeMessage()))); _test.Log(Status.Pass, "Verify information is Displayed"); Assert.IsTrue(ContentDetailsPage.isCertificationTypeDisplayed()); _test.Log(Status.Pass, "Verify Certification Type is Displayed"); Assert.IsTrue(ContentDetailsPage.isCertificationCostTypeDisplayed()); _test.Log(Status.Pass, "Verify Certification Cost Type is Displayed"); Assert.IsTrue(ContentDetailsPage.isCertificationPeriodDisplayed()); _test.Log(Status.Pass, "Verify Certification Period is Displayed"); Assert.IsTrue(ContentDetailsPage.isAccessItemButtonDisplayed()); _test.Log(Status.Pass, "Verify Access Button is Displayed"); Assert.IsTrue(ContentDetailsPage.isObjectivesBlockDisplayed()); _test.Log(Status.Pass, "Verify Objective Block is Displayed"); Assert.IsTrue(ContentDetailsPage.isAlternateOptionsBlockDisplayed()); _test.Log(Status.Pass, "Verify Alternate Option Block is Displayed"); Assert.IsTrue(ContentDetailsPage.isCertificationContentBlockDisplayed()); _test.Log(Status.Pass, "Verify Certification Content Block is Displayed"); ContentDetailsPage.ClickAccessItem(); _test.Log(Status.Info, "Click on Access Item"); Assert.IsTrue((Driver.comparePartialString(" You first accessed this item on 1/25/2019. ", ContentDetailsPage.getAccessDateMessage()))); _test.Log(Status.Pass, "Verify Certification Content Block is Displayed"); ContentDetailsPage.ClickCertificationClassroom(); _test.Log(Status.Pass, "click on Certification Classroom"); Assert.IsTrue((Driver.comparePartialString("You are enrolled in a current section for this classroom course.", ContentDetailsPage.getCertificationEnrolledMessage()))); _test.Log(Status.Pass, "Verify Information is Displayed"); Assert.IsTrue(Driver.isSuggestedCertificationDisplayed()); _test.Log(Status.Pass, "Verify Suggested Certification is displayed"); Assert.IsTrue(Driver.SuggestedCertifications.isCertificationTitleDisplayed()); _test.Log(Status.Pass, "Verify Certification Title is Displayed"); Assert.IsTrue(Driver.SuggestedCertifications.isCertificationCostDisplayed()); _test.Log(Status.Pass, "Verify Certification Cost is Displayed"); }
public void WhenIPressCROSSDeleteSignForCertification() { CertificationPage Create = new CertificationPage(); Create.DeleteCertification(); }
public void ThenIShouldNotBeAbleToSeeTheDELETEDCERTIFICATIONAndShouldReceiveAPopUpMessage() { CertificationPage Create = new CertificationPage(); Create.ValidateDelCertification(); }