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