コード例 #1
0
 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");
     }
 }
コード例 #2
0
ファイル: RecognitionTests.cs プロジェクト: Pablito-mdq/Test
 public void Recognition_NonMonAndMon_WS_1157_Sample6()
 {
     if (!DataParser.ReturnExecution("WS_1157_Sample6"))
     {
         Assert.Ignore();
     }
     else
     {
         _file = "Resources\\" + client + "\\TestsData\\WS_1157_Sample6.xml";
         string user = AwardData.GetAwardUserName(_file), value = AwardData.GetAwardValue(_file),
                amountvalue = AwardData.GetAwardAmountValue(_file), reason = AwardData.GetAwardReason(_file),
                award     = AwardData.GetAwardName(_file),
                printype  = AwardData.GetAwardDeliverType(_file),
                proxyname = ProxyData.GetProxyUserName(_file),
                msg       = AwardData.GetAwardMessage(_file);
         NominationHomePage recognitionPage = InitialPage.Go().EnterId(client).Logon().ClickLogin().
                                              NavigateToAdminHomePageSpan().ClickOptionProxy("Proxy1").EnterUserNameProxySprint2(proxyname).ClickProxyBtn().NavigateToNominationSpan();
         recognitionPage
         .SearchEmployeeFoundAngular(user)
         .SelectAward(award).SelectValueOfAward(amountvalue).SelectValues(value)
         .FillMsg(msg).FillReason(reason)
         .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");
     }
 }
コード例 #3
0
ファイル: RecognitionTests.cs プロジェクト: Pablito-mdq/Test
 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);
     }
 }
コード例 #4
0
ファイル: RecognitionTests.cs プロジェクト: Pablito-mdq/Test
 public void Recognition_DistributionList_WS_1024()
 {
     if (!DataParser.ReturnExecution("WS_1024"))
     {
         Assert.Ignore();
     }
     else
     {
         _file = "Resources\\" + client + "\\TestsData\\WS_1024.xml";
         string user       = AwardData.GetAwardUserName(_file),
                msg        = AwardData.GetAwardMessage(_file),
                award      = AwardData.GetAwardName(_file),
                subAward1  = AwardData.GetAwardSubType1(_file),
                subAward2  = AwardData.GetAwardSubType2(_file),
                ccEmail    = AwardData.GetAwardCCEmail(_file),
                futureDate = AwardData.GetAwardFutureDate(_file);
         NominationHomePage recognitionPage =
             InitialPage.GoSpecial(_file)
             .Logon()
             .EnterId(client)
             .ClickLogin()
             .NavigateToNominationSprint();
         recognitionPage
         .SelectRecipientType("multiple")
         .SearchEmployeeFoundMultiple(user)
         .ClickNextStep2()
         .SelectAwardMultiple(award, 0)
         .SelectSubAwardTypeSprint(subAward1, subAward2)
         .ClickNextFillCard()
         .FillEditCardEditor(msg)
         .ClickNextStep()
         .EnterUserCCEmail(ccEmail).EnterFutureDate(futureDate).ClickNextGeneric();
         Assert.AreEqual("Ready to send?", recognitionPage.GetReadyToSendMsg(),
                         "The message is not ready to send");
         Assert.AreEqual("SEND RECOGNITION", recognitionPage.GetBtnSendRecognition(),
                         "Submit button is not well written");
         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 SOMEONE ELSE", recognitionPage.GetBtnRecognizOtherLabelSprint(),
                         "Button finish its not correct write");
         Assert.Fail("Missing steps DUE to bug, ticket name SPRIN-91");
     }
 }
コード例 #5
0
 //WS_1057
 public void WS_1057()
 {
     if (!DataParser.ReturnExecution("WS_1057"))
     {
         Assert.Ignore();
     }
     else
     {
         _file = "Resources\\" + client + "\\TestsData\\WS_1057.xml";
         string user = AwardData.GetAwardUserName(_file), msg = AwardData.GetAwardMessage(_file),
                award = AwardData.GetAwardName(_file), value = AwardData.GetAwardValue(_file);
         NominationHomePage recognitionPage = InitialPage.Go().Logon().ClickLogin().NavigateToNominationSpan();
         Thread.Sleep(1500);
         recognitionPage
         .SearchEmployeeFound(user)
         .SelectAward(award)
         .SelectValues(value)
         .FillMsg(msg)
         .ClickNext()
         .EmailReward();
         Assert.AreEqual("Ready to send?", recognitionPage.GetReadyToSendMsg(),
                         "The message is not ready to send");
         Assert.AreEqual("SEND RECOGNITION", recognitionPage.GetBtnSendRecognitionAward(), "Submit button is not well written");
         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 SOMEONE ELSE", recognitionPage.GetBtnRecognizOtherLabelXpath(),
                         "Button finish its not correct write");
         ReportsPage details = recognitionPage.NavigateToReportsSpan().NavigateToReports();
         Assert.AreEqual(award, details.GetAwardTable(1, 6), award + "award was not given");
         Assert.AreEqual(user, details.GetAwardTable(1, 3), user + "user was not given or present");
         var proxypage =
             details.NavigateToAdminHomePageSpan()
             .ClickOptionProxy("Proxy")
             .EnterUserName(user)
             .ProxyToMainHomePage().ClosePopUp();
         Thread.Sleep(300);
         var myawards = proxypage.NavigateToMyAwards();
         Assert.AreEqual(award, myawards.GetAwardName(1, 5), award + "award was not given");
     }
 }
コード例 #6
0
ファイル: RecognitionTests.cs プロジェクト: Pablito-mdq/Test
 public void Recognition_AwardDeliveryTypes_WS_218()
 {
     if (!DataParser.ReturnExecution("WS_218"))
     {
         Assert.Ignore();
     }
     else
     {
         _file = "Resources\\" + client + "\\TestsData\\WS_218.xml";
         AwardData.GetAwardImpact(_file);
         string user = AwardData.GetAwardUserName(_file),
                award = AwardData.GetAwardName(_file),
                value = AwardData.GetAwardValue(_file),
                amount = AwardData.GetAwardAmountValue(_file), printype = AwardData.GetAwardDeliverType(_file),
                msg    = AwardData.GetAwardMessage(_file),
                reason = AwardData.GetAwardMessage(_file);
         NominationHomePage recognitionPage = InitialPage.Go().Logon().ClickLogin().NavigateToNomination();
         recognitionPage
         .SearchEmployeeFound(user)
         .SelectAward(award)
         .SelectValueOfAward(amount)
         .SelectValues(value)
         .FillMsg(msg)
         .FillReason(reason).ClickNext();
         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.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");
     }
 }
コード例 #7
0
ファイル: Awards.cs プロジェクト: Pablito-mdq/Test
 public void SprintAwards_PostReleaseRegression_WS_1177()
 {
     if (!DataParser.ReturnExecution("WS_1177"))
     {
         Assert.Ignore();
     }
     else
     {
         _file = "Resources\\" + client + "\\TestsData\\WS_1177.xml";
         string user      = AwardData.GetAwardUserName(_file),
                msg       = AwardData.GetAwardMessage(_file),
                award     = AwardData.GetAwardName(_file),
                subAward1 = AwardData.GetAwardSubType1(_file),
                subAward2 = AwardData.GetAwardSubType2(_file);
         NominationHomePage recognitionPage = InitialPage.Go().Logon().ClickLogin().NavigateToNominationSprint();
         recognitionPage
         .SelectRecipientType("multiple")
         .SearchEmployeeFoundMultiple(user)
         .ClickNextStep2()
         .SelectAwardMultiple(award, 0)
         .SelectSubAwardTypeSprint(subAward1, subAward2)
         .ClickNextFillCard()
         .FillEditCardEditor(msg)
         .ClickNextStep()
         .ClickNextGeneric();
         Assert.AreEqual("Ready to send?", recognitionPage.GetReadyToSendMsg(),
                         "The message is not ready to send");
         Assert.AreEqual("SEND RECOGNITION", recognitionPage.GetBtnSendRecognition(),
                         "Submit button is not well written");
         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 SOMEONE ELSE", recognitionPage.GetBtnRecognizOtherLabelSprint(),
                         "Button finish its not correct write");
     }
 }
コード例 #8
0
 public void Approval_BulkApprovalToolApprove_WS_1130()
 {
     if (!DataParser.ReturnExecution("WS_1130"))
     {
         Assert.Ignore();
     }
     else
     {
         _file = "Resources\\" + client + "\\TestsData\\WS_1130.xml";
         string user        = AwardData.GetAwardUserName(_file),
                msg         = AwardData.GetAwardMessage(_file),
                award       = AwardData.GetAwardName(_file),
                begindate   = AwardData.GetAwardBeginDate(_file),
                endate      = AwardData.GetAwardEndDate(_file),
                description = AwardData.GetAwardDescription(_file),
                Criteria    = AwardData.GetAwardCriteria(_file),
                subCriteria = AwardData.GetSubCriteria(_file),
                value       = AwardData.GetAwardAmountValue(_file),
                ccEmail     = AwardData.GetAwardCCEmail(_file),
                proxyname   = AwardData.GetApprovalUserName(_file);
         MainHomePage proxy = InitialPage.Go().Logon().ClickLogin().NavigateToAdminHomePageSpan().
                              ClickOptionProxy("Proxy").EnterUserNameProxySprint2(user).ProxyToMainHomePageSprint().ClosePopUp();
         NominationHomePage recognitionPage = proxy.NavigateToNominationSprint();
         recognitionPage
         .SelectRecipientType("multiple")
         .SearchEmployeeFoundMultiple("Brenda Michel")
         .SearchEmployeeFoundMultiple("Adri Johnson")
         .SearchEmployeeFoundMultiple("Ada Pitocco")
         .SearchEmployeeFoundMultiple("Alex Alvarado")
         .ClickNextStep2()
         .SelectAwardMultiple(award, 2)
         .SelectValueOfAwardSprint(value)
         .EnterBeginDate(begindate)
         .EnterEndDate(endate)
         .SelectValues(Criteria)
         .SelectValues(subCriteria)
         .FillDescription(description)
         .FillMsg(msg)
         .ClickNextSprint()
         .EnterUserCCEmail(ccEmail).ClickNextGeneric();
         Assert.AreEqual("Ready to send?", recognitionPage.GetReadyToSendMsg(),
                         "The message is not ready to send");
         Assert.AreEqual("SEND RECOGNITION", recognitionPage.GetBtnSendRecognition(),
                         "Submit button is not well written");
         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 SOMEONE ELSE", recognitionPage.GetBtnRecognizOtherLabelSprint(),
                         "Button finish its not correct write");
         recognitionPage.ExitProxy2();
         Thread.Sleep(1000);
         proxy =
             proxy.NavigateToAdminHomePageSpan()
             .ClickOptionProxy("Proxy")
             .EnterUserNameProxySprint2(proxyname)
             .ProxyToMainHomePageSprint()
             .ClosePopUp();
         var pending = proxy.NavigateToPendingApprovals();
         Assert.AreEqual(user, pending.GetFirstUserApproval(), user + " is not present");
         var popUp = pending.ClickThumpsUp();
         Assert.IsTrue(popUp.IsPopUpPresent(), "Pop Up To Approve or Decline was not present");
         popUp.ApproveAllorDeclineAll();
         Assert.AreEqual("Successfully approved!", popUp.GetSuccesfullMsg(), "Successfull message is not present");
         popUp.ClickClose();
     }
 }