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 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 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 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 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 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 Admin_LimitedPermissionAcess_WS_1208() { if (!DataParser.ReturnExecution("WS_1208")) { Assert.Ignore(); } else { _file = "Resources\\" + client + "\\TestsData\\WS_1208.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"); ProxyHomePage admin = proxy.NavigateToAdminHomePageSpan(); Assert.IsTrue(admin.IsBulkAwardOptPresent(), "Bulk Award Upload is not present"); Assert.IsTrue(admin.IsProxyOptPresent(), "Proxy is not present"); Assert.IsTrue(admin.IsBudgetToolOptPresent(), "Budget tool is not present"); Assert.IsTrue(admin.IsPendingApprovalsOptPresent(), "Pending Approvals is not present"); } }
public void Awards_MultipleRecipients_WS_1438() { if (!DataParser.ReturnExecution("WS_1438")) { Assert.Ignore(); } else { _file = "Resources\\" + client + "\\TestsData\\WS_1438.xml"; string proxy_name = ProxyData.GetProxyUserName(_file); MainHomePage home = InitialPage.Go().Logon().ClickLogin(); ProxyHomePage proxyPage = home.NavigateToAdminHomePage().LoginProxyAsuser(); proxyPage.EnterUserName(proxy_name); home = proxyPage.ProxyToMainHomePage(); Assert.AreEqual("You are proxied in under: " + proxy_name, home.GetProxyLoginMsg(), "The message of proxy login is not correct"); Assert.AreEqual("Exit Proxy", home.GetExitMsg(), "The exit proxy link is not present"); NominationHomePage nominationHome = home.NavigateToNomination().ClickMultipleRecipients(); nominationHome.SearchEmployeeFoundMultiple("Brian Walters") .SearchEmployeeFoundMultiple("Aaron Ashing") .ClickNextGeneric(); Assert.AreEqual("Rave", nominationHome.GetFirstAwardName(), "the only Award name is not Rave"); } }
public void Service_AnniversarySubmission_WS_1325() { if (!DataParser.ReturnExecution("WS_1325")) { Assert.Ignore(); } else { _file = "Resources\\" + client + "\\TestsData\\WS_1325.xml"; string msg = AwardData.GetAwardMessage(_file), award = AwardData.GetAwardName(_file), send_type = AwardData.GetAwardDeliverType(_file), proxy_name = ProxyData.GetProxyUserName(_file); MainHomePage proxyPage = InitialPage.Go().Logon().ClickLogin().NavigateToAdminHomePageSpan().ClickOptionProxy("Proxy") .EnterUserNameProxySprint2(proxy_name).ProxyToMainHomePageSprint().ClosePopUp(); Assert.AreEqual("You are proxied in as:" + proxy_name, proxyPage.GetProxyLoginMsgSprint(), "The message of proxy login is not correct"); Assert.AreEqual("Exit Proxy", proxyPage.GetExitMsg(), "The exit proxy link is not present"); Step2 step2 = proxyPage.NavigateToEventCalendar().clickSendAniversaryCard(); var recognitionPage = step2.SelectAward(award).FillMsg(msg).DeliverType(send_type); recognitionPage.ClickSendRecognition(); Assert.AreEqual("Success!", recognitionPage.GetSuccesMsg(), "Message its not success"); } }