public void SocialStream_Recognition_WS_1391() { if (!DataParser.ReturnExecution("WS_1391")) { Assert.Ignore(); } else { _file = "Resources\\" + client + "\\TestsData\\WS_1391.xml"; string user = AwardData.GetAwardUserName(_file), award = AwardData.GetAwardName(_file), value = AwardData.GetAwardValue(_file), printype = AwardData.GetAwardDeliverType(_file), msg = AwardData.GetAwardMessage(_file); NominationHomePage recognitionPage = InitialPage.Go().EnterId(client).Logon().ClickLogin().NavigateToNominationSpan(); recognitionPage .SearchEmployeeFoundAngular(user) .SelectAward(award) .SelectValues(value) .FillMsg(msg) .ClickNextSprint(); Assert.AreEqual("I want to Email this award.", recognitionPage.GetDeliverLabel("email"), "Label is not correct"); Assert.AreEqual("I want to Print this award", recognitionPage.GetDeliverLabel("print"), "Label is not correct"); recognitionPage.DeliverTypeAngular(printype).ClickNextGeneric(); Assert.AreEqual("Ready to send?", recognitionPage.GetReadyToSendMsg(), "The message is not ready to send"); recognitionPage.ClickSendRecognition(); Assert.AreEqual("Success!", recognitionPage.GetSuccesMsg(), "Message its not success"); MainHomePage home = recognitionPage.ClickFinish(); Assert.IsTrue(home.WasUserRewarded(user), user + "was not rewarded"); } }
public void EventCalendar_Anniversaries_WS_1084() { if (!DataParser.ReturnExecution("WS_1084")) { Assert.Ignore(); } else { _file = "Resources\\" + client + "\\TestsData\\WS_1084.xml"; username = ProxyData.GetProxyUserName(_file); string username2 = ProxyData.GetProxySecondUserName(_file), award = AwardData.GetAwardName(_file), msg = AwardData.GetAwardMessage(_file); MainHomePage home = InitialPage.Go().Logon().ClickLogin(); ProxyHomePage proxyPage = home.NavigateToAdminHomePage().LoginProxyAsuser(); proxyPage.EnterUserName(username); home = proxyPage.ProxyToMainHomePage(); Assert.AreEqual("You are proxied in under: " + username, home.GetProxyLoginMsg(), "The message of proxy login is not correct"); Assert.AreEqual("Exit Proxy", home.GetExitMsg(), "The exit proxy link is not present"); EventCalendar eventPage = home.NavigateToEventCalendar(); eventPage.ClickRecent(); Assert.AreEqual(username2 + "\r\n12 year Anniversary", eventPage.GetNameList(6), username2 + " is not present"); NominationHomePage nomination = eventPage.clickSendAniversaryCard().SelectAward(award).FillMsg(msg).SelectImgs(); nomination.EmailReward().ClickSendRecognition(); Assert.AreEqual("Success!", nomination.GetSuccesMsg(), "Message its not success"); Assert.AreEqual("FINISH", nomination.GetBtnFinishLabel(), "Button finish its not correct write"); Assert.AreEqual("RECOGNIZE", nomination.GetBtnRecognizOtherLabel(), "Button finish its not correct write"); } }
public void Recognition_ApprovalMon_WS_924() { if (!DataParser.ReturnExecution("WS_924")) { Assert.Ignore(); } else { _file = "Resources\\" + client + "\\TestsData\\WS_924.xml"; string user = AwardData.GetAwardUserName(_file), award = AwardData.GetAwardName(_file), secondAward = AwardData.GetSecondAwardName(_file), populationImpact = AwardData.GetAwardPopulationImpact(_file), financialImpact = AwardData.GetAwardFinancialImpact(_file), bussinesImpact = AwardData.GetAwardBussinesImpact(_file); int amount = AwardData.GetAwardAmountValueNumbers(_file); string printype = AwardData.GetAwardDeliverType(_file), msg = AwardData.GetAwardMessage(_file), reason = AwardData.GetAwardReason(_file), companyValue = AwardData.GetAwardCompanyValue(_file), proxy_name = ProxyData.GetProxyUserName(_file), approval_name = AwardData.GetApprovalUserName(_file); ProxyHomePage proxyPage = InitialPage.Go().Logon().ClickLogin().NavigateToAdminHomePage() .LoginProxyAsuser().EnterUserName(proxy_name); MainHomePage home = proxyPage.ProxyToMainHomePage(); Assert.AreEqual("You are proxied in under: " + proxy_name, home.GetProxyLoginMsg(), "The message of proxy login is not correct"); NominationHomePage recognitionPage = home.NavigateToNomination() .SearchEmployeeFound(user) .SelectAward(award) .EnterValueAmount(amount) .FillReason(reason) .ChkCompanyValues(companyValue) .SelectValues(populationImpact) .SelectValues(bussinesImpact) .SelectValues(financialImpact) .FillMsg(msg) .ClickNext(); recognitionPage.DeliverType(printype); Assert.AreEqual(2, recognitionPage.GetCountEditLnk(), "Edit links are not two"); recognitionPage.ClickSendRecognition(); Assert.AreEqual("Success!", recognitionPage.GetSuccesMsg(), "Message its not success"); AdminHomePage proxy = recognitionPage.ExitProxy(); home = proxy.LoginProxyAsuser().EnterUserName(approval_name).ProxyToMainHomePage(); Assert.AreEqual("You are proxied in under: " + approval_name, home.GetProxyLoginMsg(), "The message of proxy login is not correct"); Assert.IsTrue(home.IsPopUpRecognitionShow(), "Pop up recognition is not showing up"); PendingApprovals pending = home.ClickHereAwardPopUp(); Assert.AreEqual("Pending Approvals", pending.GetTitleMenu(), "Title is not pending approval"); pending.ApproveAward().ClickApprove(); proxy = pending.ExitProxy(); home = proxy.LoginProxyAsuser().EnterUserName(user).ProxyToMainHomePage(); Assert.AreEqual("You are proxied in under: " + user, home.GetProxyLoginMsg(), "The message of proxy login is not correct"); MyAwards awards = home.ClosePopUp().NavigateToMyAwards(); Assert.AreEqual(secondAward, awards.GetAwardName(1, 4), "The last award that someone gave you is not present"); awards.OpenDetailsAward(1, 7); } }
public void Proxy_TestSearch_WS_1210() { if (!DataParser.ReturnExecution("WS_1210")) { Assert.Ignore(); } else { _file = "Resources\\" + client + "\\TestsData\\WS_1210.xml"; string username1 = ProxyData.GetProxySecondUserName(_file), username = ProxyData.GetProxyUserName(_file), username2 = ProxyData.GetProxyThirdUserName(_file); MainHomePage home = InitialPage.Go().Logon().ClickLogin(); ProxyHomePage proxyPage = home.NavigateToAdminHomePage().LoginProxyAsuser(); proxyPage.EnterUserName(username); home = proxyPage.ProxyToMainHomePage(); Assert.AreEqual("You are proxied in under: " + username + " Ahsing", home.GetProxyLoginMsg(), "The message of proxy login is not correct"); Assert.AreEqual("Exit Proxy", home.GetExitMsg(), "The exit proxy link is not present"); home = home.ExitProxy().EnterUserName(username1).ProxyToMainHomePage(); Assert.AreEqual("You are proxied in under: " + "Aaron " + username1, home.GetProxyLoginMsg(), "The message of proxy login is not correct"); Assert.AreEqual("Exit Proxy", home.GetExitMsg(), "The exit proxy link is not present"); home = home.ClosePopUp().ExitProxy().EnterUserName(username2).ProxyToMainHomePage(); Assert.AreEqual("You are proxied in under: " + username2, home.GetProxyLoginMsg(), "The message of proxy login is not correct"); Assert.AreEqual("Exit Proxy", home.GetExitMsg(), "The exit proxy link is not present"); } }
public void Approval_StandardMonAppvTextron_WS_927() { if (!DataParser.ReturnExecution("WS_927")) { Assert.Ignore(); } else { _file = "Resources\\" + client + "\\TestsData\\WS_927.xml"; string user = AwardData.GetAwardUserName(_file), award = AwardData.GetAwardName(_file), secondAward = AwardData.GetSecondAwardName(_file), populationImpact = AwardData.GetAwardPopulationImpact(_file), financialImpact = AwardData.GetAwardFinancialImpact(_file), bussinesImpact = AwardData.GetAwardBussinesImpact(_file), amount = AwardData.GetAwardAmountValue(_file), objetives = AwardData.GetAwardObjetives(_file), printype = AwardData.GetAwardDeliverType(_file), msg = AwardData.GetAwardMessage(_file), projectTask = AwardData.GetAwardProjectTask(_file), reason = AwardData.GetAwardReason(_file), proxy_name = ProxyData.GetProxyUserName(_file), approval_name = AwardData.GetApprovalUserName(_file); ProxyHomePage proxyPage = InitialPage.Go().Logon().ClickLogin().NavigateToAdminHomePage() .LoginProxyAsuser().EnterUserName(user); MainHomePage home = proxyPage.ProxyToMainHomePage(); Assert.AreEqual("You are proxied in under: " + user, home.GetProxyLoginMsg(), "The message of proxy login is not correct"); Step2 step2 = home.NavigateToNomination() .SearchEmployeeFound(proxy_name) .SelectAward(award) .SelectValues(populationImpact) .SelectValues(financialImpact) .SelectValues(bussinesImpact) .ClickNextSameStep(); Assert.AreEqual("Appreciation Award", step2.GetAwardName("Appreciation Award"), "Award is not the same as expected"); Assert.AreEqual("Honors Award", step2.GetAwardName("Honors Award"), "Award is not the same as expected"); Assert.AreEqual("Excellence Award", step2.GetAwardName("Excellence Award"), "Award is not the same as expected"); Assert.AreEqual("Distinction Award", step2.GetAwardName("Distinction Award"), "Award is not the same as expected"); NominationHomePage recognitionPage = step2.SelectSecondAward(secondAward).SelectValueOfAward(amount) .SelectProjectTask(projectTask) .CheckProjectApproval() .SelectValues(objetives) .FillMsg(msg) .FillReason(reason) .ClickNext(); recognitionPage.DeliverType(printype); Assert.AreEqual(2, recognitionPage.GetCountEditLnk(), "Edit links are not two"); recognitionPage.ClickSendRecognition(); Assert.AreEqual("Success!", recognitionPage.GetSuccesMsg(), "Message its not success"); AdminHomePage proxy = recognitionPage.ExitProxy(); home = proxy.LoginProxyAsuser().EnterUserName(approval_name).ProxyToMainHomePage(); Assert.IsTrue(home.IsPopUpRecognitionShow(), "Pop up recognition is not showing up"); PendingApprovals pending = home.ClickHereAwardPopUp(); Assert.AreEqual("Pending Approvals", pending.GetTitleMenu(), "Title is not pending approval"); pending.ApproveAward().ClickApprove(); proxy = pending.ExitProxy(); home = proxy.LoginProxyAsuser().EnterUserName(proxy_name).ProxyToMainHomePage(); MyAwards awards = home.ClosePopUp().NavigateToMyAwards(); Assert.AreEqual(secondAward, awards.GetAwardName(1, 6), "The last award that someone gave you is not present"); awards.OpenDetailsAward(1, 7); } }
public void WS_1064() { if (!DataParser.ReturnExecution("WS_1064")) { Assert.Ignore(); } else { _file = "Resources\\" + client + "\\TestsData\\WS_1064.xml"; username = ProxyData.GetProxyUserName(_file); string username2 = ProxyData.GetProxySecondUserName(_file), preferedName = RegisterData.GetRegisterPreferedName(_file); MainHomePage home = InitialPage.Go().Logon().ClickLogin(); ProxyHomePage proxyPage = home.NavigateToAdminHomePage().LoginProxyAsuser(); proxyPage.EnterUserName(username); home = proxyPage.ProxyToMainHomePage(); Assert.AreEqual("You are proxied in under: " + username, home.GetProxyLoginMsg(), "The message of proxy login is not correct"); Assert.AreEqual("Exit Proxy", home.GetExitMsg(), "The exit proxy link is not present"); Assert.IsTrue(home.IsAdmLnkPresent(), "Admin link is present"); ProxyHomePage adminPage = home.NavigateToAdminHomePage().LoginProxyAsuser(); proxyPage.EnterUserName(username2); home = proxyPage.ProxyToMainHomePage(); Assert.AreEqual("You are proxied in under: " + username2, home.GetProxyLoginMsg(), "The message of proxy login is not correct"); Assert.AreEqual("Exit Proxy", home.GetExitMsg(), "The exit proxy link is not present"); Assert.IsFalse(home.IsAdmLnkPresent(), "Admin link is present"); adminPage = home.ExitProxy(); Assert.IsTrue(adminPage.IsAdminLoginUsernameLevel(preferedName), "You are not in the login leveled like support,admin or proxy"); } }
public void Bugdet_FundFromReciepts_WS_1196() { if (!DataParser.ReturnExecution("WS_1196")) { Assert.Ignore(); } else { _file = "Resources\\" + client + "\\TestsData\\WS_1196.xml"; string user = AwardData.GetAwardUserName(_file), msg = AwardData.GetAwardMessage(_file), award = AwardData.GetAwardName(_file), value = AwardData.GetAwardValue(_file), amountvalue = AwardData.GetAwardAmountValue(_file), proxy_name = ProxyData.GetProxyUserName(_file), proxy_name2 = ProxyData.GetProxySecondUserName(_file); MainHomePage proxyPage = InitialPage.Go().Logon().ClickLogin().NavigateToAdminHomePage().LoginProxyAsuser().EnterUserNameHealthAlliance(proxy_name).ProxyToMainHomePage(); NominationHomePage recognitionPage = proxyPage.NavigateToHomePage().NavigateToNomination(); Thread.Sleep(1500); recognitionPage .SearchEmployeeFound(user) .SelectAward(award) .SelectValueOfAward(amountvalue) .SelectValues(value) .FillMsg(msg) .ClickNext() .EmailReward(); recognitionPage.ClickSendRecognition(); var proxypage = recognitionPage.ExitProxy().NavigateToAdminHomePage().LoginProxyAsuser().EnterUserNameHealthAlliance(proxy_name2) .ProxyToMainHomePage().ClosePopUp(); Thread.Sleep(300); var amount = proxypage.GetBudget(); //Fail cannot appear link to switch to see the budget PendingApprovals pending = proxypage.NavigateToPendingApprovals(); Thread.Sleep(300); } }
public void Recognition_EmployeeLookUp_WS_69() { if (false) { Assert.Ignore(); } else { _file = "Resources\\" + client + "\\TestsData\\WS_69.xml"; username = AwardData.GetAwardUserName(_file); MainHomePage home = InitialPage.Go().Logon().ClickLogin(); NominationHomePage recognitionPage = home.NavigateToNomination(); //SCENARIO 1 recognitionPage.SearchEmployeeFound(username); recognitionPage.ClickEdit(); Assert.IsTrue(recognitionPage.BringToStep1(), "You didnt go back to step 1"); //SCENARIO 2 recognitionPage = home.NavigateToNomination(); recognitionPage.ClickMultipleRecipients() .SearchEmployeeFoundMultiple(username) .SearchEmployeeFoundMultiple("John"); recognitionPage.ClickNextGeneric().ClickEdit().ClickRemove(0); Assert.IsFalse(recognitionPage.IsFirstUserAddedPresent(username), "First User still in the list selected"); } }
//WS-65 public void Mall_LeftPanelFilters_WS_65() { if (false) { Assert.Ignore(); } else { MainHomePage menuPage = InitialPage.Go().Logon().ClickLogin(); GoToMallHomePage mallPage = menuPage.NavigateToMall(); Assert.AreEqual(" By Price:", mallPage.GetFilterTitleText(0), "The subtitle is not the right one"); Assert.AreEqual(" Under $25", mallPage.GetFilterChkTypeByPrice(0), "The category to filter it's wrong labeled"); Assert.AreEqual(" $25 - $50", mallPage.GetFilterChkTypeByPrice(1), "The category to filter it's wrong labeled"); mallPage.CheckOptionByPrice("Under $25"); Assert.IsTrue(mallPage.FilterByPriceUnderWorks("$25"), "The Filter Under $25 is not working"); mallPage.CheckOptionByPrice("Under $25"); mallPage.CheckOptionByPrice("$25 - $50"); Assert.IsTrue(mallPage.FilterByPriceUnderWorks("$25"), "The Filter $25 - $50 is not working"); /*Assert.AreEqual(" $50 - $100", mallPage.GetFilterChkTypeByPrice(2), "The category to filter it's wrong labeled"); * Assert.AreEqual(" $100 - $250", mallPage.GetFilterChkTypeByPrice(3), "The category to filter it's wrong labeled"); * Assert.AreEqual(" $250 - $500", mallPage.GetFilterChkTypeByPrice(4), "The category to filter it's wrong labeled"); * Assert.AreEqual(" $500 +", mallPage.GetFilterChkTypeByPrice(5), "The category to filter it's wrong labeled"); * Assert.AreEqual(" Purchase Type:", mallPage.GetFilterTitleText(1), "The subtitle is not the right one"); * Assert.AreEqual(" Email (Instant)", mallPage.GetFilterChkTypeByPurchase(0), "The category to filter it's wrong labeled"); * Assert.AreEqual(" Mail (A Few Days)", mallPage.GetFilterChkTypeByPurchase(1), "The category to filter it's wrong labeled"); * Assert.AreEqual(" Multi-Store !", mallPage.GetFilterChkTypeByPurchase(2), "The category to filter it's wrong labeled"); * Assert.AreEqual(" Categories:", mallPage.GetFilterTitleText(2), "The subtitle is not the right one"); * Assert.AreEqual(" Featured", mallPage.GetFilterChkTypeByCategory(9), "The category to filter it's wrong labeled"); * Assert.AreEqual(" All", mallPage.GetFilterChkTypeByCategory(10), "The category to filter it's wrong labeled"); * Assert.AreEqual(" Accessories", mallPage.GetFilterChkTypeByCategory(11), "The category to filter it's wrong labeled"); * Assert.AreEqual(" Apparel & Shoes", mallPage.GetFilterChkTypeByCategory(12), "The category to filter it's wrong labeled"); * Assert.AreEqual(" Babies and Kids", mallPage.GetFilterChkTypeByCategory(13), "The category to filter it's wrong labeled"); * Assert.AreEqual(" Bed & Bath", mallPage.GetFilterChkTypeByCategory(14), "The category to filter it's wrong labeled"); * Assert.AreEqual(" Books and Music", mallPage.GetFilterChkTypeByCategory(15), "The category to filter it's wrong labeled"); * Assert.AreEqual(" Décor", mallPage.GetFilterChkTypeByCategory(16), "The category to filter it's wrong labeled"); * Assert.AreEqual(" Department Stores", mallPage.GetFilterChkTypeByCategory(17), "The category to filter it's wrong labeled"); * Assert.AreEqual(" DVD's and Movies", mallPage.GetFilterChkTypeByCategory(18), "The category to filter it's wrong labeled"); * Assert.AreEqual(" Electronics", mallPage.GetFilterChkTypeByCategory(19), "The category to filter it's wrong labeled"); * Assert.AreEqual(" Food and Wine", mallPage.GetFilterChkTypeByCategory(20), "The category to filter it's wrong labeled"); * Assert.AreEqual(" Gifts", mallPage.GetFilterChkTypeByCategory(21), "The category to filter it's wrong labeled"); * Assert.AreEqual(" Health & Beauty", mallPage.GetFilterChkTypeByCategory(22), "The category to filter it's wrong labeled"); * Assert.AreEqual(" Home & Garden", mallPage.GetFilterChkTypeByCategory(23), "The category to filter it's wrong labeled"); * Assert.AreEqual(" Jewelry & Watches", mallPage.GetFilterChkTypeByCategory(24), "The category to filter it's wrong labeled"); * Assert.AreEqual(" Kitchen & Cooking", mallPage.GetFilterChkTypeByCategory(25), "The category to filter it's wrong labeled"); * Assert.AreEqual(" Office", mallPage.GetFilterChkTypeByCategory(26), "The category to filter it's wrong labeled"); * Assert.AreEqual(" Pets", mallPage.GetFilterChkTypeByCategory(27), "The category to filter it's wrong labeled"); * Assert.AreEqual(" Restaurants", mallPage.GetFilterChkTypeByCategory(28), "The category to filter it's wrong labeled"); * Assert.AreEqual(" Sports and Fitness", mallPage.GetFilterChkTypeByCategory(29), "The category to filter it's wrong labeled"); * Assert.AreEqual(" Toys and Games", mallPage.GetFilterChkTypeByCategory(30), "The category to filter it's wrong labeled"); * Assert.AreEqual(" Travel & Entertainment", mallPage.GetFilterChkTypeByCategory(31), "The category to filter it's wrong labeled");*/ } }
public void WS_1360() { if (!DataParser.ReturnExecution("WS_1360")) { Assert.Ignore(); } else { MainHomePage home = InitialPage.Go().Logon().ClickLogin(); switch (client) { case "HSS": { var promobox = home.GetPromoBoxHref("Right"); home.ClickPromoBoxBtn("Right"); Assert.AreEqual(promobox, home.GetCurrentUrl(), "The urls are not the same"); break; } case "WellCare": { var promobox = home.GetPromoBoxHref("Right"); home.ClickPromoBoxBtn("Right"); Assert.AreEqual(promobox, home.GetCurrentUrl(), "The urls are not the same"); break; } case "Pinnacol": { var promobox = home.GetPromoBoxHrefAngular("Right"); home.ClickPromoBoxBtnAngular("Right"); Assert.AreEqual(promobox + "#/", home.GetCurrentUrl(), "The urls are not the same"); break; } case "BAE": { var promobox = home.GetPromoBoxHref("Right"); home.ClickPromoBoxBtn("Right"); Assert.AreEqual(promobox, home.GetCurrentUrl(), "The urls are not the same"); break; } case "StElizabeth": { var promobox = home.GetPromoBoxHrefAngular("Right"); home.ClickPromoBoxBtnAngular("Right"); Assert.AreEqual(promobox, home.GetCurrentUrl(), "The urls are not the same"); break; } } } }
public void HomePage_TopNav_Verifylinksload_WS_1327() { if (!DataParser.ReturnExecution("WS_1327")) { Assert.Ignore(); } else { MainHomePage home = InitialPage.Go().Logon().ClickLogin(); Assert.IsTrue(home.AllHeaderLinksWorkFine(url), "there is a link that is not working fine"); } }
public void Homepage_IdentifyDeadLinks_WS_1145() { if (!DataParser.ReturnExecution("WS_1145")) { Assert.Ignore(); } else { MainHomePage mainPage = InitialPage.Go().Logon().ClickLogin(); Assert.IsTrue(mainPage.GetAllHttpLinkResponses(url), "No all Responses Get an successfully validation"); } }
public void HomePage_LeftNavigationBar_WS_1302() { if (false) { Assert.Ignore(); } else { MainHomePage home = InitialPage.Go().Logon().ClickLogin(); Assert.IsTrue(home.IsMenuArrowExpanded(), "Arrow is not expanded to see the links"); } }
public void Recognition_ApprovalNonMon_WS_921() { if (!DataParser.ReturnExecution("WS_921")) { Assert.Ignore(); } else { _file = "Resources\\" + client + "\\TestsData\\WS_921.xml"; string user = AwardData.GetAwardUserName(_file), award = AwardData.GetAwardName(_file), value = AwardData.GetAwardValue(_file), amount = AwardData.GetAwardAmountValue(_file), impact = AwardData.GetAwardImpact(_file), printype = AwardData.GetAwardDeliverType(_file), msg = AwardData.GetAwardMessage(_file), reason = AwardData.GetAwardReason(_file), proxy_name = ProxyData.GetProxyUserName(_file); ProxyHomePage proxyPage = InitialPage.Go().Logon().ClickLogin().NavigateToAdminHomePage() .LoginProxyAsuser().EnterUserName(proxy_name); MainHomePage home = proxyPage.ProxyToMainHomePage(); Assert.AreEqual("You are proxied in under: " + proxy_name, home.GetProxyLoginMsg(), "The message of proxy login is not correct"); NominationHomePage recognitionPage = home.NavigateToNomination(); recognitionPage .SearchEmployeeFound(user) .SelectAward(award) .SelectValues(value) .FillMsg(msg); if (reason != "") { recognitionPage.FillReason(reason); } recognitionPage.ClickNext(); recognitionPage.DeliverType(printype); Assert.AreEqual(2, recognitionPage.GetCountEditLnk(), "Edit links are not two"); Assert.AreEqual("Ready to send?", recognitionPage.GetReadyToSendMsg(), "The message is not ready to send"); recognitionPage.ClickSendRecognition(); Assert.AreEqual("Success!", recognitionPage.GetSuccesMsg(), "Message its not success"); Assert.AreEqual("FINISH", recognitionPage.GetBtnFinishLabel(), "Button finish its not correct write"); Assert.AreEqual("RECOGNIZE", recognitionPage.GetBtnRecognizOtherLabel(), "Button finish its not correct write"); AdminHomePage proxy = recognitionPage.ExitProxy(); home = proxy.LoginProxyAsuser().EnterUserName(user).ProxyToMainHomePage(); Assert.IsTrue(home.IsPopUpRecognitionShow(), "Pop up recognition is not showing up"); MyAwards awards = home.ClosePopUp().NavigateToMyAwards(); Assert.AreEqual(award, awards.GetAwardName(1, 4), "The last award that someone gave you is not present"); awards.OpenDetailsAward(1, 7); } }
public void Recognition_RealTimeValidation_WS_1161() { if (!DataParser.ReturnExecution("WS_1161")) { Assert.Ignore(); } else { _file = "Resources\\" + client + "\\TestsData\\WS_1161.xml"; string user = AwardData.GetAwardUserName(_file), user1 = AwardData.GetAwardUserName1(_file) , user2 = AwardData.GetAwardUserName2(_file), user3 = AwardData.GetAwardUserName3(_file), user4 = AwardData.GetAwardUserName4(_file), user5 = AwardData.GetAwardUserName5(_file), proxy_name = ProxyData.GetProxyUserName(_file); //Scenario 1 NominationHomePage recognitionPage = InitialPage.Go().EnterId(client).EnterId(client).Logon().ClickLogin().NavigateToNominationSpan(); recognitionPage.ClickMultipleRecipients() .SearchEmployeeFoundMultiple(user) .SearchEmployeeFoundMultiple(user1) .SearchEmployeeFoundMultiple(user2).SearchEmployeeFoundMultiple(user3).ClickNextGeneric(); Assert.IsTrue(recognitionPage.IsStep2Block(), "Step2 is not blocked"); //Scenario 2 MainHomePage mainPage = recognitionPage.NavigateToAdminHomePage() .LoginProxyAsuser() .EnterUserName(proxy_name) .ProxyToMainHomePage(); Step2 ste2 = mainPage.NavigateToNominationSpan().SearchEmployeeFound(user4); Assert.AreEqual("Rave", ste2.GetAwardName("Rave"), "Rave Award is not present"); Assert.AreEqual("Pioneer Award", ste2.GetAwardName("Pioneer Award"), "Pioneer Award is not present"); Assert.AreEqual("Pathfinder Award", ste2.GetAwardName("Pathfinder Award"), "Pathfinder Award is not present"); Assert.AreEqual("Trailblazer Award", ste2.GetAwardName("Trailblazer Award"), "Trailblazer Award is not present"); //Scenario 3 ste2.Refresh(); ste2 = recognitionPage.SearchEmployeeFound(user5); Assert.AreEqual("Rave", ste2.GetAwardName("Rave"), "Rave Award is not present"); Assert.IsFalse(ste2.IsAwardPresent("Pioneer Award"), "Pioneer Award is present"); Assert.IsFalse(ste2.IsAwardPresent("Pathfinder Award"), "Pathfinder Award not present"); Assert.IsFalse(ste2.IsAwardPresent("Trailblazer Award"), "Trailblazer Award not present"); } }
public void CheckOut_InsufficientFunds_WS_1199() { if (!DataParser.ReturnExecution("WS_1199")) { Assert.Ignore(); } else { _file = "Resources\\" + client + "\\TestsData\\WS_1199.xml"; string company = RedeemData.GetRedeemCompany(_file), creditcardnumber = RedeemData.GetRedeemCreditCardNumber(_file) , creditcardname = RedeemData.GetRedeemCreditCardName(_file), creditcardexpiremonth = RedeemData.GetRedeemCreditCardExpireMonth(_file), creditcardexpireyear = RedeemData.GetRedeemCreditCardExpireYear(_file) , creditcardCDI = RedeemData.GetRedeemCreditCardCDI(_file), firstname = RedeemData.GetRedeemFirstName(_file), secondname = RedeemData.GetRedeemSecondName(_file), address = RedeemData.GetRedeemAddress(_file), city = RedeemData.GetRedeemCity(_file), zip = RedeemData.GetRedeemZip(_file), phone = RedeemData.GetRedeemPhone(_file), state = RedeemData.GetRedeemState(_file); MainHomePage mall = InitialPage.Go().Logon().ClickLogin(); var gif = mall.NavigateToRedeemA().SearchCompany(company); Assert.AreEqual("Amazon.com", gif.GetGifCardTitle(), "The gif card is not amazon"); var gifcard = gif.SelectCompany().ClickPlusAmount().ClickPlusQuantity(20).ClickAddToCart(); Assert.AreEqual("Your item has been added to your cart!", gifcard.GetSuccesfullMsg(), "succesfull msg is not well spell"); var checkout = gifcard.ClickGoToCart().ClickCheckOut(); checkout.FillName(firstname) .FillLastName(secondname) .FillAddress(address) .FillCity(city) .SelectState(state) .FillZipCode(zip) .FillPhoneNumber(phone); Assert.IsFalse(checkout.CannotEditEmail(), "Email txt field is editable"); checkout.ClickNext().FillCreditCardNumber(creditcardnumber) .FillCreditCardName(creditcardname) .SelectExpireDate(creditcardexpiremonth, creditcardexpireyear) .FillCreditCardCDI(creditcardCDI) .CheckSameBillingAddress() .ClickNext(); Assert.AreEqual("Review items", checkout.GetLastStep(), "Last step title is not right"); checkout.ClickCheckOut(); } }
public void Mall_VerifyPageLoads_WS_61() { if (!DataParser.ReturnExecution("WS_61")) { Assert.Ignore(); } else { _file = "Resources\\" + client + "\\TestsData\\WS_61.xml"; string url = GeneralData.GetUrl(_file); MainHomePage home = InitialPage.Go().Logon().ClickLogin(); home.NavigateToMall(); Assert.AreEqual(url, home.GetCurrentUrl(), "The URL is not correct"); } }
private HomePage Login(string login, string pass) { var mainHomePage = new MainHomePage(driver); mainHomePage.GoToWebsite(); var loginPage = mainHomePage.GoToDemoPage(); Thread.Sleep(2000); driver.SwitchTo().Window(driver.WindowHandles[1]); Thread.Sleep(2000); loginPage.Login(login, pass); return(mainHomePage.HomePage); }
public void ProfilePage_UpdatePassword_WS_1334() { if (!DataParser.ReturnExecution("WS_1334")) { Assert.Ignore(); } else { _file = "Resources\\" + client + "\\TestsData\\WS_1334.xml"; string password = GeneralData.GetPassword(_file); MainHomePage home = InitialPage.Go().Logon().ClickLogin(); var editProfile = home.EditProfile(); editProfile.EnterPassword(password).EnterConfirmationPwd(password).ClickSubmit(); Assert.AreEqual("Invalid Data - Password must have at least: 1 numeric characters, but only has: 0", editProfile.GetErrorMsg(), "Error Msg is not show or its wrong"); } }
public void CheckOut_UseSufficientFunds_WS_1198() { if (!DataParser.ReturnExecution("WS_1198")) { Assert.Ignore(); } else { _file = "Resources\\" + client + "\\TestsData\\WS_1198.xml"; string company = RedeemData.GetRedeemCompany(_file), firstname = RedeemData.GetRedeemFirstName(_file), secondname = RedeemData.GetRedeemSecondName(_file), address = RedeemData.GetRedeemAddress(_file), city = RedeemData.GetRedeemCity(_file), zip = RedeemData.GetRedeemZip(_file), phone = RedeemData.GetRedeemPhone(_file), state = RedeemData.GetRedeemState(_file); MainHomePage mall = InitialPage.Go().EnterId(client).Logon().ClickLogin(); var gif = mall.NavigateToRedeemA().SearchCompany(company); Assert.AreEqual("Amazon.com", gif.GetGifCardTitle(), "The gif card is not amazon"); var gifcard = gif.SelectCompany().ClickAddToCart(); Assert.AreEqual("Your item has been added to your cart!", gifcard.GetSuccesfullMsg(), "succesfull msg is not well spell"); var checkout = gifcard.ClickGoToCart().ClickCheckOut(); checkout.FillName(firstname) .FillLastName(secondname) .FillAddress(address) .FillCity(city) .SelectState(state) .FillZipCode(zip) .FillPhoneNumber(phone); Assert.IsFalse(checkout.CannotEditEmail(), "Email txt field is editable"); checkout.ClickNext(); Assert.AreEqual("We got you covered Tester Stride", checkout.GetNoCreditCardUseMsg(), "The message is wrong or its possible to use the credit card"); Assert.AreEqual("Your rewards have covered your balance.\r\nEnjoy your gift.", checkout.GetNoCreditCardUseMsgSubtitle(), "The message is wrong or its possible to use the credit card"); checkout.ClickNextPayment(); Assert.AreEqual("Review items", checkout.GetLastStep(), "Last step title is not right"); checkout.ClickCheckOut(); Assert.AreEqual("$25", checkout.GetAmountChecked(), "Amount Checked is not $25"); Assert.AreEqual("1", checkout.GetQuantityChecked(), "Quantity is not 1"); } }
public void Admin_NoPermissionNoAccess_WS_1206() { if (!DataParser.ReturnExecution("WS_1206")) { Assert.Ignore(); } else { _file = "Resources\\" + client + "\\TestsData\\WS_1206.xml"; string user = AwardData.GetAwardUserName(_file); MainHomePage proxy = InitialPage.Go().Logon().ClickLogin().NavigateToAdminHomePageSpan(). ClickOptionProxy("Proxy").EnterUserNameProxySprint2(user).ProxyToMainHomePageSprint().ClosePopUp(); Assert.AreEqual("You are proxied in as:" + user, proxy.GetProxyLoginMsgSprint(), "The message of proxy login is not correct"); Assert.AreEqual("Exit Proxy", proxy.GetExitMsg(), "The exit proxy link is not present"); Assert.IsFalse(proxy.IsAdmLnkPresent(), "Admin link is present"); } }
public void Login_ValidateLoginForm_WS_1044() { if (!DataParser.ReturnExecution("WS_1044")) { Assert.Ignore(); } else { LoginPage loginPage = InitialPage.Go(); Assert.AreEqual("Email Address", loginPage.GetUsernameTitleGeneric(), "title is not IMPACT ID"); Assert.AreEqual("Password", loginPage.GetPasswordTitleGeneric(), "title is not Password"); Assert.IsTrue(loginPage.IsUsernameFieldAvl(), "username field is not available"); Assert.IsTrue(loginPage.IsPasswordFieldAvl(), "password field is not available"); loginPage.Logon(); MainHomePage myJobs = loginPage.ClickLogin(); Assert.IsTrue(loginPage.Imlogin(), "You are not login"); } }
public void SocialStream_Congrats_WS_1148() { if (!DataParser.ReturnExecution("WS_1148")) { Assert.Ignore(); } else { MainHomePage mainHomePage = InitialPage.Go().Logon().ClickLogin(); Assert.IsTrue(mainHomePage.IsEveryoneSelected(), "Everyone is not selected in display options"); int quantComments = Int32.Parse(mainHomePage.CongratsCount()); mainHomePage.ClickCongrats(); mainHomePage.AddCongrats("QA Test Submision").SendCongrats(); Assert.AreEqual("Your message has been sent!", mainHomePage.GetCongratsMsg(), "Congrats msg was not sent"); Assert.AreEqual(quantComments + 1, Int32.Parse(mainHomePage.CongratsCount()), "Congrats was not plus well 1"); } }
public void WS_1062() { if (!DataParser.ReturnExecution("WS_1062")) { Assert.Ignore(); } else { _file = "Resources\\" + client + "\\TestsData\\WS_1062.xml"; username = ProxyData.GetProxyUserName(_file); MainHomePage home = InitialPage.Go().Logon().ClickLogin(); ProxyHomePage proxyPage = home.NavigateToAdminHomePage().LoginProxyAsuser(); proxyPage.EnterUserName(username); home = proxyPage.ProxyToMainHomePage(); Assert.AreEqual("You are proxied in under: " + username, home.GetProxyLoginMsg(), "The message of proxy login is not correct"); Assert.AreEqual("Exit Proxy", home.GetExitMsg(), "The exit proxy link is not present"); } }
public void SocialStream_Cheers_WS_1185() { if (!DataParser.ReturnExecution("WS_1185")) { Assert.Ignore(); } else { MainHomePage mainHomePage = InitialPage.Go().Logon().ClickLogin(); Assert.IsTrue(mainHomePage.IsEveryoneSelected(), "Everyone is not selected in display options"); mainHomePage.ClickCheers(); if (mainHomePage.CheersCount() == "-1") { mainHomePage.ClickCheers(); } Assert.AreEqual("1", mainHomePage.CheersCount(), "Cheers is not 1"); mainHomePage.NavigateToRedeem().NavigateToHomePage(); Assert.AreEqual("1", mainHomePage.CheersCount(), "Cheers is not 1"); } }
public void Angular_ApprovalPage_WS_1354() { if (!DataParser.ReturnExecution("WS_1354")) { Assert.Ignore(); } else { _file = "Resources\\" + client + "\\TestsData\\WS_1354.xml"; string proxy_name = ProxyData.GetProxyUserName(_file), url = GeneralData.GetUrl(_file); MainHomePage home = InitialPage.GoSpecial(_file).Logon().ClickLogin().NavigateToAdminHomePageSpan().ClickOptionProxy("Proxy") .EnterUserNameProxySprint2(proxy_name).ClickProxyBtn().ClosePopUp(); Assert.AreEqual("http://qaastar-sungardas.workstride.net/ng#/approval", home.GetPendingApprovalsUrl(), "url is not http://qaastar-sungardas.workstride.net/ng#/approval"); Assert.AreEqual("You are proxied in under: " + proxy_name, home.GetProxyLoginMsg(), "The message of proxy login is not correct"); PendingApprovals admin = home.NavigateToAdminHomePageSpan().ClickOptionPendingApprovals(); Assert.AreEqual("http://qaastar-sungardas.workstride.net/ng#/approval", admin.GetPendingApprovalsUrl(), "url is not http://qaastar-sungardas.workstride.net/ng#/approval"); } }
public void Settings_UpdatePassword_WS_1347() { if (!DataParser.ReturnExecution("WS_1347")) { Assert.Ignore(); } else { _file = "Resources\\" + client + "\\TestsData\\WS_1347.xml"; string password = GeneralData.GetPassword(_file); MainHomePage home = InitialPage.Go().Logon().ClickLogin(); var editProfile = home.EditProfile(); editProfile.EnterPassword(password).EnterConfirmationPwd(password).ClickSubmit(); Assert.AreEqual("Settings Successfully Saved!", editProfile.GetSuccessMsg(), "Error Msg is not show or its wrong"); home = editProfile.ClickOK().ClickSignOut().Logon().ClickLogin(); Assert.AreEqual("Welcome Tester to the BAE Systems, IMPACT!", home.GetWelcomeTitle(), "You are not in the Main Page"); } }
public void Profile_UpdatingFields_WS_175() { if (!DataParser.ReturnExecution("WS_175")) { Assert.Ignore(); } else { _file = "Resources\\" + client + "\\TestsData\\WS_175.xml"; string preferredName = RegisterData.GetRegisterPreferedName(_file); EditProfilePage profilePage = InitialPage.Go().Logon().ClickLogin().EditProfile(); Assert.AreEqual("Profile Settings", profilePage.GetTitleName("Profile Settings"), "Title is now well spell"); profilePage.EnterPreferedName(preferredName).ClickSubmit(); Assert.AreEqual(preferredName, profilePage.GetShowName(preferredName), "Prefered Name is now well spell"); MainHomePage mainPage = profilePage.NavigateToHomePage(); Assert.AreEqual("Welcome " + preferredName + " to the BAE Systems, IMPACT!", mainPage.GetWelcomeTitle(), "Welcome Ttile is now well spell"); } }
public void Mall_MilestoneRecipient_WS_1293() { if (!DataParser.ReturnExecution("WS_1293")) { Assert.Ignore(); } else { _file = "Resources\\" + client + "\\TestsData\\WS_1293.xml"; string username = ProxyData.GetProxyUserName(_file); MainHomePage home = InitialPage.Go().Logon().ClickLogin(); ProxyHomePage proxyPage = home.NavigateToAdminHomePage().LoginProxyAsuser(); proxyPage.EnterUserName(username); home = proxyPage.ProxyToMainHomePage(); Assert.AreEqual("You are proxied in under: " + username, home.GetProxyLoginMsg(), "The message of proxy login is not correct"); Assert.AreEqual("Exit Proxy", home.GetExitMsg(), "The exit proxy link is not present"); Assert.AreEqual("SPEND SERVICE AWARD", home.GetServiceMsg(), "Service spend award msg is not correct"); } }
public void VisaCard_ReloadWithoutBalance_WS_1273() { if (!DataParser.ReturnExecution("WS_1273")) { Assert.Ignore(); } else { _file = "Resources\\" + client + "\\TestsData\\WS_1273.xml"; string proxy_name = ProxyData.GetProxyUserName(_file); MainHomePage home = InitialPage.Go().Logon().ClickLogin().NavigateToAdminHomePageLi().ClickOptionProxy("Proxy") .EnterUserNameProxySprint2(proxy_name).ClickProxyBtn(); Thread.Sleep(1500); Assert.AreEqual("0.00", home.GetRewardsBalance(), "The rewards balance is not 0"); VisaCenterHomePage visaPage = home.NavigateToVisaCenter(); Assert.IsTrue(visaPage.IsSubmitAClaimPresent(), "Option is not present"); Assert.IsFalse(visaPage.IsReloadYourCardPresent(), "Reload your card option is present"); Assert.IsFalse(visaPage.IsCheckVisaCardBalance(), "Check Visa Card Balance option is present"); } }