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