예제 #1
0
 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);
     }
 }
예제 #2
0
 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);
     }
 }
예제 #3
0
 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");
     }
 }
예제 #4
0
 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");
     }
 }
예제 #5
0
 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");
     }
 }
예제 #6
0
 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);
     }
 }
예제 #7
0
 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");
     }
 }
예제 #8
0
 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");
     }
 }
예제 #9
0
 public void Admin_TestSupportPermissionAccess_WS_1204()
 {
     if (!DataParser.ReturnExecution("WS_1204"))
     {
         Assert.Ignore();
     }
     else
     {
         ProxyHomePage admin = InitialPage.Go().Logon().ClickLogin().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");
         Assert.IsTrue(admin.IsEditRewardCartUserMessageOptPresent(),
                       "Edit Reward Cart User Message is not present");
         Assert.IsTrue(admin.IsProxyManagerOptPresent(), "Proxy Manager is not present");
         Assert.IsTrue(admin.IsDeletedUnusedAwardOptPresent(), "Deleted Unused Award is not present");
         Assert.IsTrue(admin.IsEditPendingAwardsOptPresent(), "Edit Pending Awards is not present");
         Assert.IsTrue(admin.IsDebugRuleOptPresent(), "Debug Rule is not present");
         Assert.IsTrue(admin.IsDebugReportOptPresent(), "Debug Report is not present");
     }
 }
예제 #10
0
 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");
     }
 }
예제 #11
0
파일: Awards.cs 프로젝트: Pablito-mdq/Test
 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");
     }
 }
예제 #12
0
파일: Awards.cs 프로젝트: Pablito-mdq/Test
 public void Awards_PointsDepositSuccessfull_WS_1096()
 {
     if (!DataParser.ReturnExecution("WS_1096"))
     {
         Assert.Ignore();
     }
     else
     {
         _file = "Resources\\" + client + "\\TestsData\\WS_1096.xml";
         string user             = AwardData.GetAwardUserName(_file),
                award            = AwardData.GetAwardName(_file),
                printype         = AwardData.GetAwardDeliverType(_file),
                msg              = AwardData.GetAwardMessage(_file),
                reason           = AwardData.GetAwardReason(_file),
                proxy_name       = ProxyData.GetProxyUserName(_file),
                approval_name    = AwardData.GetApprovalUserName(_file);
         ProxyHomePage proxyPage = InitialPage.Go().Logon().ClickLogin().NavigateToAdminHomePagePinnacola()
                                   .EnterUserName(user);
         MainHomePage home = proxyPage.ProxyToMainHomePage();
         Assert.AreEqual("You are proxied in as:" + user, home.GetProxyLoginMsgPinnacol(),
                         "The message of proxy login is not correct");
         NominationHomePage recognitionPage = home.NavigateToNominationSpan()
                                              .SearchEmployeeFound(proxy_name)
                                              .SelectAward(award)
                                              .FillReason(reason)
                                              .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");
         home = recognitionPage.ExitProxy().ClosePopUp().NavigateToAdminHomePagePinnacola()
                .EnterUserName(proxy_name).ProxyToMainHomePage();
         Assert.AreEqual("You are proxied in as:" + proxy_name, home.GetProxyLoginMsgPinnacol(),
                         "The message of proxy login is not correct");
         int point = home.ClosePopUp().GetAwardPoint();
         home.ExitProxy();
         home.Refresh();
         home = home.NavigateToAdminHomePagePinnacola().EnterUserName(approval_name).ProxyToMainHomePage();
         Assert.IsTrue(home.IsPopUpRecognitionShow(), "Pop up recognition is not showing up");
         Assert.AreEqual("You are proxied in as:" + approval_name, home.GetProxyLoginMsgPinnacol(),
                         "The message of proxy login is not correct");
         PendingApprovals pending = home.ClickHereAwardPopUp();
         Assert.AreEqual("Pending Approvals", pending.GetTitleMenu(), "Title is not pending approval");
         pending.ApproveAward().ClickApprove();
         home.ExitProxy();
         home.Refresh();
         home = home.NavigateToAdminHomePagePinnacola().EnterUserName(proxy_name).ProxyToMainHomePage();
         Assert.AreEqual("You are proxied in as:" + proxy_name, home.GetProxyLoginMsgPinnacol(),
                         "The message of proxy login is not correct");
         Assert.IsTrue(home.IsPopUpRecognitionShow(), "Pop up recognition is not showing up");
         int totalpoints = home.GetAwardPoint();
         home.ClickHereAwardPopUp();
         if (point + 100 != totalpoints)
         {
             Assert.Fail(totalpoints + "is not equal to " + point);
         }
         else
         {
             Assert.True(1 == 1, totalpoints + "is equal to " + point);
         }
     }
 }