/// <summary> /// Clicks submit, verifys success dialog, accepts success dialog. /// </summary> public void SubmitIdea() { SubmitSubmitButton.Click(); //HpgAssert.True(browser.HasContent("Your Idea was submitted successfully.", new Options() { Timeout = TimeSpan.FromMinutes(2) }), "Verify success message is present"); HpgAssert.AreEqual("submitted", browser.FindId("status").Text.Trim().ToLower(), "Verify idea was submitted successfully"); //browser.AcceptModalDialog(); }
public void GoToPackageIdea(int ideaNumber) { browser.Visit("/QualifiedIdea/Create/" + ideaNumber.ToString()); System.Threading.Thread.Sleep(10000); HpgAssert.AreEqual(ideaNumber.ToString(), browser.FindId("Idea_IdeaId").Text.Trim(), "Verify Package Idea Page is displayed"); AutomationCore.base_tests.BaseTest.WriteReport("Navigated to Idea " + ideaNumber); }
public void GoToIdeaNumber(string ideaNumber) { browser.Visit("/Idea/Details/" + ideaNumber); System.Threading.Thread.Sleep(10000); HpgAssert.AreEqual(ideaNumber, browser.FindXPath("//div[@id='StandardDetails']/h3[.='Idea Number']/following-sibling::p[1]").Text.Trim(), "Verify Idea Detail Page is displayed"); AutomationCore.base_tests.BaseTest.WriteReport("Navigated to Idea " + ideaNumber); }
public void AssertBaseElements() { HpgAssert.Exists(HealthtrustLogo, "The Healthtrust logo could not be found."); HpgAssert.Exists(HomeButton, "The home button could not be found."); HpgAssert.AreEqual(TabPublishedIdeas.Text, "PUBLISHED IDEAS", "The 'Published Ideas' tab is missing or not displayed correctly."); HpgAssert.AreEqual(TabAllIdeas.Text, "ALL IDEAS", "The 'All Ideas' tab is missing or not displayed correctly."); HpgAssert.AreEqual(TabMyIdeas.Text, "MY IDEAS", "The 'My Ideas' tab is missing or not displayed correctly."); HpgAssert.AreEqual(TabSubmitAnIdea.Text, "SUBMIT AN IDEA", "The 'Submit an Idea' tab is missing or not displayed correrctly."); HpgAssert.Exists(pageFooter, "The footer is missing or not displayed properly."); }
public void SubmitIdea(int ideaNumber) { //int rAff = ExecuteStatement( // string.Format( // "INSERT INTO HPG_IdeaManagementSBX.dbo.QualifiedIdeas ([IdeaId] ,[Title] ,[Description] ,[StatusId] ,[MembershipTypeId] ,[CategoryId] ,[DepartmentId] ,[ImpactLevel] ,[EffortLevel] ,[PublishedDate] ,[CreatedDate] ,[UpdatedDate]) VALUES ({0}), (SELECT [Title] FROM Ideas WHERE IdeaID = {0}), (SELECT [Description] FROM Ideas WHERE IdeaID = {0}), 2, 3, 1, 1, 1, 1, GETDATE(), GETDATE(), GETDATE());", // ideaNumber)); int rAff = ExecuteStatement("UPDATE Ideas SET StatusID = 2 WHERE IdeaId = " + ideaNumber.ToString() + ";"); HpgAssert.AreEqual("1", rAff.ToString(), "Verify 1 record (idea) updated to Accepted"); }
public void AssertPageElements(ExecuteAutomationLogin executeAutomationLogin) { HpgAssert.AreEqual(executeAutomationLogin.LoginLink.Text, "LOGIN"); HpgAssert.AreEqual(executeAutomationLogin.PageTitle.Text, "Execute Automation Selenium Test Site"); HpgAssert.AreEqual(executeAutomationLogin.LoginTitle.Text, "Login"); HpgAssert.AreEqual(executeAutomationLogin.UserNameLbl.Text, "UserName "); HpgAssert.AreEqual(executeAutomationLogin.PasswordLbl.Text, "Password "); HpgAssert.Exists(executeAutomationLogin.UserNameTxtFld); HpgAssert.Exists(executeAutomationLogin.PasswordTxtFld); HpgAssert.Exists(executeAutomationLogin.LoginBtn); }
public void SoftDeleteIdeas(int[] IdeaIDs, bool validate = true) { if (IdeaIDs.Any()) { int raff = ExecuteStatement("UPDATE Ideas SET Deleted = 'TRUE' WHERE IdeaId IN (" + string.Join(",", IdeaIDs) + ");"); if (validate) { HpgAssert.AreEqual(IdeaIDs.Count().ToString(), raff.ToString(), "Verify all records were marked as deleted."); } } }
public void AssertPageElements() { HpgAssert.Exists(login.HealthtrustLogo, "The Healthtrust logo is missing or not displayed properly."); HpgAssert.Exists(login.CoretrustLogo, "The Coretrust logo is missing or not displayed properly."); HpgAssert.AreEqual(login.LoginTxt.Text, "Login", "The 'Login' text is missing or not displayed properly."); HpgAssert.AreEqual(login.EmailOrUserIDTxt.Text, "Email or User ID", "The 'Email or User ID' text is missing or not displayed properly."); HpgAssert.Exists(login.UserNameTxtField, "The username text field is missing or not displayed properly."); HpgAssert.AreEqual(login.PasswordTxt.Text, "Password Forgot password?", "The 'Password' text is missing or not displayed properly."); HpgAssert.AreEqual(login.ForgotPasswordLnk.Text, "Forgot password?", "The 'Forgot Password' text is missing or not displayed properly."); HpgAssert.Exists(login.PasswordTxtField, "The Password text field is missing or not displayed properly."); HpgAssert.Exists(login.RememberEmailOrUserIDCheckBox, "The 'Remember Email or User ID' check box is missing or not displayed properly."); HpgAssert.AreEqual(login.RememberEmailOrUserIDTxt.Text, "Remember Email or User ID", "The 'Remember Email or User ID' check box is missng or not displayed properly."); HpgAssert.Exists(login.loginButton, "The Login button is missing or not displayed properly."); HpgAssert.Exists(login.Footer, "The Footer is missing or does not exist."); }
public void AssertPageElements() { AssertBaseElements(); HpgAssert.AreEqual(dashboard.pageHeader.Text, "My Dashboard", "The page header is missing or not displayed properly."); HpgAssert.Exists(dashboard.NewsFeedWidget, "The News Feed widget is missing or not displayed properly."); HpgAssert.AreEqual(dashboard.NewsFeedTxt.Text, "NEWS FEED", "The News Feed text is missing or not displayed properly."); HpgAssert.Exists(dashboard.NewsFeedBadge, "The News Feed badge is missing or not displayed properly."); HpgAssert.Exists(dashboard.RMIWidget, "The Required Information Needed widget is missing or not displayed properly."); HpgAssert.Exists(dashboard.RequiredInformationNeededFlag, "The Required Information Needed flag is missing or not displayed properly."); HpgAssert.AreEqual(dashboard.RequiredInformationNeededTxt.Text, "REQUIRED INFORMATION NEEDED", "The Required Information Needed text is missing or not displayed properly."); HpgAssert.Exists(dashboard.RequiredInformationNeededBadge, "The Required Information Needed badge is missing or not displayed properly."); HpgAssert.Exists(dashboard.QueueWidget, "The Ideas Ready for Review widget is missing or not displayed properly."); HpgAssert.AreEqual(dashboard.IdeasReadyForReviewTxt.Text, "IDEAS READY FOR REVIEW", "The Ideas Ready for Review text is missing or not displayed properly."); HpgAssert.Exists(dashboard.IdeasReadyForReviewBadge, "The Ideas Ready for Review badge is missing or not displayed properly."); HpgAssert.Exists(dashboard.MyBookmarkedIdeasWidget, "The My Bookmarked Ideas widget is missing or not displayed properly"); HpgAssert.AreEqual(dashboard.MyBookmarkedIdeasTxt.Text, "MY BOOKMARKED IDEAS", "The My Bookmarked Ideas text is missing or not displayed properly."); HpgAssert.Exists(dashboard.MyBookmarkedIdeasBadge, "The My Bookmarked Ideas badge is missing or not displayed correctly."); HpgAssert.Exists(dashboard.SavedIdeasWidget, "The My Saved Ideas widget is missing or not displayed properly."); HpgAssert.AreEqual(dashboard.MySavedIdeasTxt.Text, "MY SAVED IDEAS", "The My Saved Ideas text is missing or not displayed properly."); HpgAssert.Exists(dashboard.MySavedIdeasBadge, "The My Saved Ideas badge is missing or not displayed properly."); }
public void AcceptIdea(int ideaNumber) { int rAff = ExecuteStatement("UPDATE Ideas SET StatusID = 7 WHERE IdeaId = " + ideaNumber.ToString() + ";"); HpgAssert.AreEqual("1", rAff.ToString(), "Verify 1 record (idea) updated to Accepted"); }
public void AssertPageElements() { AssertBaseElements(); HpgAssert.AreEqual(publishedIdeas.pageHeader.Text, "Published Ideas"); HpgAssert.AreEqual(publishedIdeas.ClearRefinementsTxt.Text, "Clear Refinements"); HpgAssert.Exists(publishedIdeas.SearchField); HpgAssert.Exists(publishedIdeas.SearchButton); HpgAssert.AreEqual(publishedIdeas.SortByTxt.Text, "Sort By"); HpgAssert.Exists(publishedIdeas.SortByDropdown); HpgAssert.Exists(publishedIdeas.LinkPDF); HpgAssert.Exists(publishedIdeas.LinkExcel); HpgAssert.Exists(publishedIdeas.RecordCountTxt); HpgAssert.AreEqual(publishedIdeas.RefinementsTxt.Text, "Refinements"); HpgAssert.AreEqual(publishedIdeas.RefineResultsTxt.Text, "Refine Results"); HpgAssert.Exists(publishedIdeas.MyBookmarksChkBox); HpgAssert.AreEqual(publishedIdeas.MyBookmarksTxt.Text, "My Bookmarks"); HpgAssert.AreEqual(publishedIdeas.PublishedDateRangeTxt.Text, "Published Date Range"); HpgAssert.Exists(publishedIdeas.IdeaDateRangeStart); HpgAssert.Exists(publishedIdeas.IdeaDataRangeEnd); HpgAssert.Exists(publishedIdeas.ReloadIdeasBasedOnRangeButton); HpgAssert.AreEqual(publishedIdeas.UpdatedDateTxt.Text, "Updated Date"); HpgAssert.Exists(publishedIdeas.UpdateDateDropdown); HpgAssert.AreEqual(publishedIdeas.DepartmentTxt.Text, "Department"); HpgAssert.Exists(publishedIdeas.AnyDepartmentCheckBox); HpgAssert.AreEqual(publishedIdeas.AnyDepartmentTxt.Text, "Any Department"); HpgAssert.Exists(publishedIdeas.BusinessCheckBox); HpgAssert.AreEqual(publishedIdeas.BusinessTxt.Text, "Business Products/Services/DMS"); HpgAssert.Exists(publishedIdeas.CardiovascularServicesCheckBox); HpgAssert.AreEqual(publishedIdeas.CardiovascularServicesTxt.Text, "Cardiovascular Services"); HpgAssert.Exists(publishedIdeas.CentralSterileProcessingCheckBox); HpgAssert.AreEqual(publishedIdeas.CentralSterileProcessingTxt.Text, "Central Sterile Processing"); HpgAssert.Exists(publishedIdeas.ContractConversionCheckBox); HpgAssert.AreEqual(publishedIdeas.ContractConversionTxt.Text, "Contract Conversion"); HpgAssert.Exists(publishedIdeas.EmergencyServicesCheckBox); HpgAssert.AreEqual(publishedIdeas.EmergencyServicesTxt.Text, "Emergency Services"); HpgAssert.Exists(publishedIdeas.EndoscopyCheckBox); HpgAssert.AreEqual(publishedIdeas.EndoscopyTxt.Text, "Endoscopy"); HpgAssert.Exists(publishedIdeas.EnvironmentalServicesCheckBox); HpgAssert.AreEqual(publishedIdeas.EnvironmentalServicesTxt.Text, "Environmental Services"); HpgAssert.Exists(publishedIdeas.FacilitySafetyCheckBox); HpgAssert.AreEqual(publishedIdeas.FacilitySafetyTxt.Text, "Facility Safety"); HpgAssert.Exists(publishedIdeas.FoodNutritionServicesCheckBox); HpgAssert.AreEqual(publishedIdeas.FoodNutritionServicesTxt.Text, "Food/Nutrition Services"); HpgAssert.Exists(publishedIdeas.ImagingCheckBox); HpgAssert.AreEqual(publishedIdeas.ImagingTxt.Text, "Imaging"); HpgAssert.Exists(publishedIdeas.LaboratoryCheckBox); HpgAssert.AreEqual(publishedIdeas.LaboratoryTxt.Text, "Laboratory"); HpgAssert.Exists(publishedIdeas.MaterialManagementCheckBox); HpgAssert.AreEqual(publishedIdeas.MaterialManagementTxt.Text, "Material Management"); HpgAssert.Exists(publishedIdeas.NICUPediatricsCheckBox); HpgAssert.AreEqual(publishedIdeas.NICUPediatricsTxt.Text, "NICU/Pediatrics"); HpgAssert.Exists(publishedIdeas.NursingServicesCheckBox); HpgAssert.AreEqual(publishedIdeas.NursingServicesTxt.Text, "Nursing Services"); HpgAssert.Exists(publishedIdeas.ObstetricsPerinatalCheckBox); HpgAssert.AreEqual(publishedIdeas.ObstetricsPerinatalTxt.Text, "Obstetrics/Perinatal"); HpgAssert.Exists(publishedIdeas.OtherClinicalServiceCheckBox); HpgAssert.AreEqual(publishedIdeas.OtherClinicalServiceTxt.Text, "Other Clinical Service"); HpgAssert.Exists(publishedIdeas.OtherSupportServiceCheckBox); HpgAssert.AreEqual(publishedIdeas.OtherSupportServiceTxt.Text, "Other Support Service"); HpgAssert.Exists(publishedIdeas.PharmacyCheckBox); HpgAssert.AreEqual(publishedIdeas.PharmacyTxt.Text, "Pharmacy"); HpgAssert.Exists(publishedIdeas.PhysicianReferenceContractsCheckBox); HpgAssert.AreEqual(publishedIdeas.PhysicianReferenceContractsTxt.Text, "Physician Preference Contracts"); HpgAssert.Exists(publishedIdeas.DepartmentProductFormularyCheckBox); HpgAssert.AreEqual(publishedIdeas.DepartmentProductFormularyTxt.Text, "Product Formulary"); HpgAssert.Exists(publishedIdeas.RadiologyCheckBox); HpgAssert.AreEqual(publishedIdeas.RadiologyTxt.Text, "Radiology"); HpgAssert.Exists(publishedIdeas.RespiratoryTherapyCheckBox); HpgAssert.AreEqual(publishedIdeas.RespiratoryTherapyTxt.Text, "Respiratory Therapy"); HpgAssert.Exists(publishedIdeas.SurgicalServicesCheckBox); HpgAssert.AreEqual(publishedIdeas.SurgicalServicesTxt.Text, "Surgical Services"); HpgAssert.AreEqual(publishedIdeas.ShowLessDepartmentsButton.Text, "Show Less"); HpgAssert.AreEqual(publishedIdeas.ShowMoreDepartmentsButton.Text, "Show More"); HpgAssert.AreEqual(publishedIdeas.CategoryTxt.Text, "Category"); HpgAssert.Exists(publishedIdeas.APInfrastructureCheckBox); HpgAssert.AreEqual(publishedIdeas.APInfrastructureTxt.Text, "A/P Infrastructure"); HpgAssert.Exists(publishedIdeas.BloodCheckBox); HpgAssert.AreEqual(publishedIdeas.BloodTxt.Text, "Blood/Blood Products"); HpgAssert.Exists(publishedIdeas.CapitalAcquisitionCheckBox); HpgAssert.AreEqual(publishedIdeas.CapitalAcquisitionTxt.Text, "Capital Acquisition"); HpgAssert.Exists(publishedIdeas.CommoditiesCheckBox); HpgAssert.AreEqual(publishedIdeas.CommoditiesTxt.Text, "Commodities"); HpgAssert.Exists(publishedIdeas.CommodityPharmacyCheckBox); HpgAssert.AreEqual(publishedIdeas.CommodityPharmacyTxt.Text, "Commodity - Pharmacy"); HpgAssert.Exists(publishedIdeas.CVATCostAvoidanceCheckBox); HpgAssert.AreEqual(publishedIdeas.CVATCostAvoidanceTxt.Text, "CVAT - Cost Avoidance"); HpgAssert.Exists(publishedIdeas.CVATCostSavingsCheckBox); HpgAssert.AreEqual(publishedIdeas.CVATCostSavingsTxt.Text, "CVAT - Cost Savings"); HpgAssert.Exists(publishedIdeas.DivManagedDisintermediationCheckBox); HpgAssert.AreEqual(publishedIdeas.DivManagedDisintermediationTxt.Text, "Div Managed Disintermediation"); HpgAssert.Exists(publishedIdeas.DivisionBasedContractingCheckBox); HpgAssert.AreEqual(publishedIdeas.DivisionBasedContractingTxt.Text, "Division Based Contracting"); HpgAssert.Exists(publishedIdeas.HCAPharmacyOperationsProjectCheckBox); HpgAssert.AreEqual(publishedIdeas.HCAPharmacyOperationsProjectTxt.Text, "HCA Pharmacy Operations Project"); HpgAssert.Exists(publishedIdeas.HPGSIPCheckBox); HpgAssert.AreEqual(publishedIdeas.HPGSIPTxt.Text, "HPG SIP"); HpgAssert.Exists(publishedIdeas.HTRoadmapCheckBox); HpgAssert.AreEqual(publishedIdeas.HTRoadmapTxt.Text, "HT Roadmap"); HpgAssert.Exists(publishedIdeas.NonSupplyExpenseSavingsCheckBox); HpgAssert.AreEqual(publishedIdeas.NonSupplyExpenseSavingsTxt.Text, "Non-Supply Expense Savings"); HpgAssert.Exists(publishedIdeas.ORCostPerCaseCheckBox); HpgAssert.AreEqual(publishedIdeas.ORCostPerCaseTxt.Text, "OR Cost Per Case"); HpgAssert.Exists(publishedIdeas.CategoryProductFormularyCheckBox); HpgAssert.AreEqual(publishedIdeas.CategoryProductFormularyTxt.Text, "Product Formulary"); HpgAssert.Exists(publishedIdeas.RoadMapPharmacy2017CheckBox); HpgAssert.AreEqual(publishedIdeas.RoadMapPharmacy2017Txt.Text, "RoadMap - Pharmacy - 2017"); HpgAssert.Exists(publishedIdeas.RoadMapReprocessing2017CheckBox); HpgAssert.AreEqual(publishedIdeas.RoadMapReprocessing2017Txt.Text, "RoadMap - Reprocessing - 2017"); HpgAssert.Exists(publishedIdeas.RoadMap2015CheckBox); HpgAssert.AreEqual(publishedIdeas.RoadMap2015Txt.Text, "RoadMap-2015"); HpgAssert.Exists(publishedIdeas.SMATCostAvoidanceCheckBox); HpgAssert.AreEqual(publishedIdeas.SMATCostAvoidanceTxt.Text, "SMAT - Cost Avoidance"); HpgAssert.Exists(publishedIdeas.SupportServicesEVSCheckBox); HpgAssert.AreEqual(publishedIdeas.SupportServicesEVSTxt.Text, "Support Services - EVS"); HpgAssert.Exists(publishedIdeas.SupportServicesFoodCheckBox); HpgAssert.AreEqual(publishedIdeas.SupportServicesFoodTxt.Text, "Support Services - Food"); HpgAssert.Exists(publishedIdeas.TechnologyCheckBox); HpgAssert.AreEqual(publishedIdeas.TechnologyTxt.Text, "Technology"); HpgAssert.Exists(publishedIdeas.ThirdPartyFreightManagementCheckBox); HpgAssert.AreEqual(publishedIdeas.ThirdPartyFreightManagementTxt.Text, "Third Party Freight Management"); HpgAssert.Exists(publishedIdeas.ShowLessCategoriesButton); HpgAssert.Exists(publishedIdeas.ShowMoreCategoriesButton); HpgAssert.AreEqual(publishedIdeas.ImpactTxt.Text, "Impact"); HpgAssert.Exists(publishedIdeas.ImpactCheckBox1); HpgAssert.Exists(publishedIdeas.ImpactCheckBox2); HpgAssert.Exists(publishedIdeas.ImpactCheckBox3); HpgAssert.AreEqual(publishedIdeas.EffortTxt.Text, "Effort"); HpgAssert.Exists(publishedIdeas.EffortCheckBox1); HpgAssert.Exists(publishedIdeas.EffortCheckBox2); HpgAssert.Exists(publishedIdeas.EffortCheckBox3); }