public void MotoMTAtoMTA()
        {
            SetOfficeRegKeys();
            UiMap.CustomerCode = Moto.TamMotorSteps(Customer);
            Moto.CreateNewBusinessPolicy(ExpectedAddress);
            Moto.SelectPolicyQuote();
            Moto.AcceptAndFinishQuote("cash", 2);
            Moto.MotoMTA();
            Moto.MotoMTAParams.CostOfVehicle = "2500";
            Moto.MotoMTAAccept();
            Moto.MtaEffectiveDate("13/10/12");
            Moto.MotoMTAConfirmDate();
            Moto.CoverDateBackCheck();
            Moto.EtamOk(true);
            string coverDate = "MotoMTAtoMTA_" + Moto.MtaEffectiveDate();

            Moto.MotoMTAConfirmDate();
            Moto.MotoMTAConfirmPolicy("mta");
            Playback.Wait(5000);
            Moto.MotoMTAOpenQuote();

            Moto.MotoMTACheckNewValueExpectedValues.UIItemEditText = "2500";
            Moto.MotoMTACheckNewValue(true, coverDate);
            Moto.MotoExitMTA();
        }
        public void MotoRebrokeRenewCurrent()
        {
            SetOurHighwayRegKeys();
            UiMap.CustomerCode = Moto.TamMotorSteps(Customer);
            Moto.MotoPostcodeLookup();
            Moto.MotoSearchCar();
            Moto.MotoInceptionDate();
            Moto.MotoCalculate();
            Moto.QuoteResults1();
            Moto.PublicCreditCheckOk();
            Moto.MotoSelectHighwayPolicy();
            Moto.AcceptAndFinishQuote("cash", 2);
            Moto.CloseAndOpenPolicyList(UiMap.CustomerCode);
            string policyNumber    = Moto.GetPolicyNumber();
            string originalPremium = Moto.CheckPolicyPremium("cash");

            Renewals(policyNumber, PolicyType, RenewalPremium);
            Moto.MotoRebroke(false, false);
            Moto.PublicCreditCheckOk();
            Moto.MotoRebrokeCurrent(false);
            RenewalsInvite(true);
            Moto.CloseAndOpenPolicyList(UiMap.CustomerCode);
            string premium = Moto.CheckPolicyPremium("cash");

            Moto.RenewalCheckStatus("REN");
            House.CheckPremiumInQuoteDocument(this.Docs.DocumentsForMotoRenewalCurrent, "cash", originalPremium: double.Parse(originalPremium));
            House.OpenTransList(Transactions.GetTransactionDictionary(premium, "cash", originalPremium));
            Moto.ClosePolicy();
        }
        public void MotoLapsePolicy()
        {
            SetOurHighwayRegKeys();
            UiMap.CustomerCode = Moto.TamMotorSteps(Customer);
            Moto.MotoPostcodeLookup();
            Moto.MotoSearchCar();
            Moto.MotoInceptionDate();
            Moto.MotoCalculate();
            Moto.QuoteResults1();
            Moto.PublicCreditCheckOk();
            Moto.MotoSelectHighwayPolicy();
            Moto.AcceptAndFinishQuote("cash", 2);
            Moto.CloseAndOpenPolicyList(UiMap.CustomerCode);
            string policyNumber = Moto.GetPolicyNumber();

            Renewals(policyNumber, PolicyType, RenewalPremium);

            Moto.RenewalModuleInvite(false);
            Moto.RenewConfirmInvite();
            Moto.RenewalModuleInvite1();
            Moto.LapsePolicy(policyNumber);
            Moto.RenewalModuleClose();
            Moto.CloseAndOpenPolicyList(UiMap.CustomerCode);
            Moto.RenewalCheckStatus("LAP");
            Moto.ClosePolicy();
        }
        public void MotoAmendRiskExistingScheme()
        {
            SetOurHighwayRegKeys();
            UiMap.CustomerCode = Moto.TamMotorSteps(Customer);
            Moto.MotoPostcodeLookup();
            Moto.MotoSearchCar();
            Moto.MotoInceptionDate();
            Moto.MotoCalculate();
            Moto.QuoteResults1();
            Moto.PublicCreditCheckOk();
            Moto.MotoSelectHighwayPolicy();
            Moto.AcceptAndFinishQuote("cash", 2);
            Moto.CloseAndOpenPolicyList(UiMap.CustomerCode);
            string policyNumber    = Moto.GetPolicyNumber();
            string originalPremium = Moto.CheckPolicyPremium("cash");

            Renewals(policyNumber, PolicyType, RenewalPremium);
            Moto.MotoAmendRisk();
            Moto.PublicCreditCheckOk();
            Moto.QuoteSelectListCancel();
            Moto.AmendSelectQuote();
            Moto.MotoAmendRiskRenew();
            Moto.CloseAndOpenPolicyList(UiMap.CustomerCode);
            Moto.HighlightBillingScreen();
            string premium = Moto.CheckPolicyPremium("cash");

            House.CheckPremiumInQuoteDocument(this.Docs.DocumentsForMotoMotoAmendRiskExistingScheme, "cash", originalPremium: double.Parse(originalPremium));
            House.OpenTransList(Transactions.GetTransactionDictionary(premium, "cash", originalPremium));
            Moto.RenewalCheckStatus("REN");
            Moto.ClosePolicy();
        }
Beispiel #5
0
        public void MotoAmendQuoteDirectDebit()
        {
            SetOurZurichRegKeys();
            UiMap.CustomerCode = Moto.TamMotorSteps(Customer);
            Moto.CreateNewBusinessPolicy(ExpectedAddress);
            Moto.AssertSelectPolicyForm();
            Moto.SelectPolicyQuote();
            Moto.AcceptAndFinishQuote("dd", 2);
            Moto.CloseAndOpenPolicyList(UiMap.CustomerCode);

            string originalPremium = Moto.CheckPolicyPremium("dd");

            Moto.OpenTransList(Transactions.GetTransactionDictionary(originalPremium, "dd"));
            Moto.CheckCorrectDocumentPresent(this.Docs.DocumentsForMotoNewBusinessQuoteDd);

            string policyNumber = Moto.GetPolicyNumber();

            Renewals(policyNumber, "Motor", RenewalPremium, "Zurich");
            Moto.MotoAmendRisk();
            Moto.PublicCreditCheckOk();
            Moto.CommonParams.SendHomeKeys = "{End}";
            Moto.AmendSelectQuote();
            Moto.MotoAmendRiskNew("dd");
            Moto.ContinueToRetrieveResponse();
            Moto.MotoAmendRiskNew1();
            Moto.CloseAndOpenPolicyList(UiMap.CustomerCode);
            Moto.HighlightBillingScreen();

            string premium = Moto.CheckPolicyPremium("dd");

            House.CheckCorrectDocumentPresent(this.Docs.DocumentsForMotoAmendRiskNew);
            House.OpenTransList(Transactions.GetTransactionDictionary(premium, "dd", originalPremium));
            Moto.ClosePolicy();
        }
        public void otoRenewalAfter()
        {
            SetOurHighwayRegKeys();
            UiMap.CustomerCode = Moto.TamMotorSteps(Customer);
            Moto.MotoPostcodeLookup();
            Moto.MotoSearchCar();

            Moto.MotoInceptionDate();
            Moto.MotoCalculate();
            //moto.CancelFilter();
            Moto.QuoteResults1();
            Moto.PublicCreditCheckOk();
            Moto.MotoSelectHighwayPolicy();
            Moto.AcceptAndFinishQuote("cash", 2);
            Moto.CloseAndOpenPolicyList(UiMap.CustomerCode);
            string policyNumber = Moto.GetPolicyNumber();

            Renewals(policyNumber, PolicyType, RenewalPremium);
            RenewalsInvite(false);
            Moto.CloseAndOpenPolicyList(UiMap.CustomerCode);
            Moto.RenewalCheckStatus("REN");
            Moto.ClosePolicy();
            ////MTA1
            Moto.SelectMenu();
            Moto.RenewalAfterMTA1();
            Moto.MTADate(DateTime.Now.AddDays(14).ToString("dd/MM/yy"));
            Moto.MotoFinishMTA();
            //MTA2
            Moto.SelectMenu();
            Moto.RenewalAfterMTA1();
            Moto.MTADate(DateTime.Now.AddDays(13).ToString("dd/MM/yy"));
            Moto.MTAMessageBeforeCurrent();
            Moto.EtamOk(true);
            Moto.MTACancel();
            //MTA3
            Moto.SelectMenu();
            Moto.MotoMTABefore();
            Moto.MTADate(DateTime.Now.AddDays(9).ToString("dd/MM/yy"));
            Moto.MotoMTAMessageAfterDate();
            Moto.EtamOk(true);

            Moto.MTADate(DateTime.Now.AddDays(1).ToString("dd/MM/yy"));
            Moto.MotoMTABeforeAccept();
            Moto.MotoMTABeforeFinish();
            //mta4
            Moto.SelectMenu();
            Moto.MotoMTABefore2();

            Moto.MTADate(DateTime.Now.ToString("dd/MM/yy"));
            Moto.MTAMessageBeforeCurrent();
            Moto.EtamOk(true);

            Moto.MTADate(DateTime.Now.AddDays(11).ToString("dd/MM/yy"));
            Moto.MotoMTAMessageAfterDate();
            Moto.EtamOk(true);
            Moto.MTACancel();
        }
 public void MotoCopyRiskNew()
 {
     SetOfficeRegKeys();
     UiMap.CustomerCode = Moto.TamMotorSteps(Customer);
     Moto.CreateNewBusinessPolicy(ExpectedAddress);
     Moto.SelectPolicyQuote();
     Moto.AcceptAndFinishQuote("cash", 2);
     Moto.MotoCopyFinishedRisk();
     Moto.MotoCopyCheckProposer();
     Moto.MotoCopyRiskProposerOk();
     Moto.MotoCopyCheckCar();
     Moto.MotoCopyRiskExit();
 }
 public void MotoMTAAccept()
 {
     SetOfficeRegKeys();
     UiMap.CustomerCode = Moto.TamMotorSteps(Customer);
     Moto.CreateNewBusinessPolicy(ExpectedAddress);
     Moto.SelectPolicyQuote();
     Moto.AcceptAndFinishQuote("cash", 2);
     Moto.CreateMTA();
     Moto.MotoMTAOpenQuote();
     Moto.MotoMTACheckNewValue(false);
     Moto.CheckCorrectNumberTrans(2);
     Moto.MotoExitMTA();
 }
 public void MotoMTAExit()
 {
     SetOfficeRegKeys();
     UiMap.CustomerCode = Moto.TamMotorSteps(Customer);
     Moto.CreateNewBusinessPolicy(ExpectedAddress);
     Moto.SelectPolicyQuote();
     Moto.AcceptAndFinishQuote("cash", 2);
     Moto.MotoMTA();
     Moto.MotoMTANoSave();
     Moto.CloseAndOpenPolicyList(UiMap.CustomerCode);
     Moto.HighlightBillingScreen();
     Moto.AssertMethod1();
 }
        public void MotoAmendRiskNewScheme()
        {
            SetOurHighwayRegKeys();
            UiMap.CustomerCode = Moto.TamMotorSteps(Customer);
            Moto.MotoPostcodeLookup();
            Moto.MotoSearchCar();
            Moto.MotoInceptionDate();
            Moto.MotoCalculate();
            Moto.QuoteResults1();
            Moto.PublicCreditCheckOk();
            Moto.MotoSelectHighwayPolicy();
            Moto.AcceptAndFinishQuote("cash", 2);
            Moto.CloseAndOpenPolicyList(UiMap.CustomerCode);
            string policyNumber    = Moto.GetPolicyNumber();
            string originalPremium = Moto.CheckPolicyPremium("cash");

            Renewals(policyNumber, PolicyType, RenewalPremium);
            Moto.MotoAmendRisk();
            Moto.PublicCreditCheckOk();
            Moto.CommonParams.SendHomeKeys = "{End}";
            Moto.AmendSelectQuote();
            Moto.MotoAmendRiskNew("cash");
            Moto.ContinueToRetrieveResponse();
            Moto.MotoAmendRiskNew1();
            Moto.CloseAndOpenPolicyList(UiMap.CustomerCode);
            Moto.HighlightBillingScreen();
            string premium = Moto.CheckPolicyPremium("cash");

            Moto.RenewalCheckStatus("REW");
            House.CheckPremiumInQuoteDocument(this.Docs.DocumentsForMotoAmendRiskNew, "cash", originalPremium: double.Parse(originalPremium));
            House.OpenTransList(Transactions.GetTransactionDictionary(premium, "cash", originalPremium));
            Moto.ClosePolicy();

            //mta1
            Moto.MotoMTA();
            Moto.MotoMTAAccept();
            Moto.MTADate(DateTime.Now.AddDays(5).ToString("dd/MM/yy"));
            Moto.AmendDateBeforeMessage();
            Moto.EtamOk(true);
            Moto.MTADate(DateTime.Now.AddDays(12).ToString("dd/MM/yy"));
            Moto.MotoFinishMTA();

            //mta2
            Moto.MotoMTA();
            Moto.MotoMTAAccept();
            Moto.MTADate(DateTime.Now.AddDays(9).ToString("dd/MM/yy"));
            Moto.MTAMessageBeforeCurrent();
            Moto.EtamOk(true);
            Moto.MTACancel();
        }
        public void MotoRenewalBefore()
        {
            SetOurHighwayRegKeys();
            UiMap.CustomerCode = Moto.TamMotorSteps(Customer);
            Moto.MotoPostcodeLookup();
            Moto.MotoSearchCar();
            Moto.MotoInceptionDate();
            Moto.MotoCalculate();
            Moto.QuoteResults1();
            Moto.PublicCreditCheckOk();
            Moto.MotoSelectHighwayPolicy();
            Moto.AcceptAndFinishQuote("cash", 2);
            Moto.CloseAndOpenPolicyList(UiMap.CustomerCode);
            Moto.HighlightBillingScreen();
            string originalPremium = Moto.CheckPolicyPremium("cash");
            string policyNumber    = Moto.GetPolicyNumber();

            this.SiteForRenewal(policyNumber, PolicyType, RenewalPremium);
            RegressApp(PolicyType);
            RenewalLoader();
            RenewalModule(UiMap.CustomerCode, PolicyType);
            RenewalsInvite(false);
            Moto.CloseAndOpenPolicyList(UiMap.CustomerCode);
            Moto.RenewalCheckStatus("REN");
            string premium = Moto.CheckPolicyPremium("cash");

            House.CheckPremiumInQuoteDocument(this.Docs.DocumentsForMotoRenewalBefore, "cash", originalPremium: double.Parse(originalPremium));
            House.OpenTransList(Transactions.GetTransactionDictionary(premium, "cash", originalPremium));
            Moto.ClosePolicy();

            //mta1
            Moto.SelectMenu();
            Moto.MotoMTABefore();
            Moto.MTADate(DateTime.Now.AddDays(2).ToString("dd/MM/yy"));
            Moto.MotoMTABeforeAccept();
            Moto.MotoMTAMessageCancelled();
            Moto.MotoMTABeforeFinish();

            //mta2
            Moto.SelectMenu();
            Moto.MotoMTABefore2();
            Moto.MTADate(DateTime.Now.ToString("dd/MM/yy"));
            Moto.MTAMessageBeforeCurrent();
            Moto.EtamOk(true);
            Moto.MTADate(DateTime.Now.AddDays(10).ToString("dd/MM/yy"));
            Moto.MotoMTAMessageAfterDate();
            Moto.EtamOk(true);
            Moto.MTACancel();
        }
        public void MotoCreateQuote()
        {
            SetOfficeRegKeys();
            UiMap.CustomerCode = Moto.TamMotorSteps(Customer);
            Moto.CreateNewBusinessPolicy(ExpectedAddress);
            Moto.AssertSelectPolicyForm();
            Moto.SelectPolicyQuote();
            Moto.AcceptAndFinishQuote("cash", 2);
            Moto.CloseAndOpenPolicyList(UiMap.CustomerCode);

            string premium = Moto.CheckPolicyPremium("cash");

            Moto.OpenTransList(Transactions.GetTransactionDictionary(premium, "cash"));
            Moto.CheckPremiumInQuoteDocument(this.Docs.DocumentsForMotoNewBusinessQuote, "cash");
        }
        public void MotoSaveQuoteWithoutPremium()
        {
            SetOfficeRegKeys();
            UiMap.CustomerCode = Moto.TamMotorSteps(Customer);
            Moto.CreateNewBusinessPolicy(ExpectedAddress);
            Moto.SaveWithoutPremium();
            Moto.CloseAndOpenPolicyList(UiMap.CustomerCode);

            //check premium
            Moto.HighlightBillingScreen();
            Moto.AssertQuoteCostIsZero();
            Moto.CancelBillingScreen();
            Moto.SelectMenu();
            Moto.ClickOkButton();
            Moto.AssertCarDetailsCorrect();
            Moto.Calculate();
            Moto.QuoteResults1();
            Moto.PublicCreditCheckOk();
            Moto.SelectPolicyQuote();
            Moto.ExitEnabled();
            Moto.Exit1();

            //check premium
            Moto.HighlightBillingScreen();
            Moto.AssertMethod1();
            Moto.CancelBillingScreen();
            Moto.SelectMenu();
            Moto.ClickOkButton();
            Moto.AssertCarDetailsCorrect();
            Moto.Calculate();

            Moto.QuoteResults1();
            Moto.PublicCreditCheckOk();
            Moto.SelectPolicyQuote();
            Moto.PrintQuote();
            Moto.CheckAutoPrint();
            Moto.DemandsAndNeeds();
            Playback.Wait(3000);
            Moto.CloseDemands();
            Moto.AcceptAndFinishQuote("cash", 2);
            Moto.CloseAndOpenPolicyList(UiMap.CustomerCode);
            Moto.HighlightBillingScreen();
            Moto.AssertMethod1();
        }
        public void MotoOverridePremium()
        {
            const string OverridePremiumGross = "3393.06";
            const string OverridePremiumNet   = "3201.00";

            SetOfficeRegKeys();
            UiMap.CustomerCode = Moto.TamMotorSteps(Customer);
            Moto.CreateNewBusinessPolicy(ExpectedAddress);
            Moto.AssertSelectPolicyForm();
            Moto.SelectPolicyQuote();
            Moto.ChangePremium(OverridePremiumGross);
            Moto.AcceptAndFinishQuote("cash", 2);
            Moto.CloseAndOpenPolicyList(UiMap.CustomerCode);
            Moto.HighlightBillingScreen();
            Moto.MotoCheckChangedPremium(OverridePremiumNet);

            Moto.CheckPremiumInQuoteDocument(this.Docs.DocumentsForMotoOverridePremium, "cash", double.Parse(OverridePremiumNet));
            Moto.OpenTransList(Transactions.GetTransactionDictionary(OverridePremiumNet, "cash"));
        }
 public void MotoCancelExit()
 {
     SetOfficeRegKeys();
     UiMap.CustomerCode = Moto.TamMotorSteps(Customer);
     Moto.CreateNewBusinessPolicy(ExpectedAddress);
     Moto.AssertSelectPolicyForm();
     Moto.SelectPolicyQuote();
     Moto.AcceptAndFinishQuote("cash", 2);
     Moto.CloseAndOpenPolicyList(UiMap.CustomerCode);
     Moto.MotoCloseDetails();
     //Cancel policy
     Moto.MotoMTA();
     Moto.MotoCancelPolicy();
     Moto.MtaEffectiveDate();
     Moto.MotoCancelPolicy1();
     Moto.MotoCancelExit();
     Moto.CloseAndOpenPolicyList(UiMap.CustomerCode);
     Moto.MotoCheckPolicyStatusExpectedValues.UIItemEditText = "NEW";
     Moto.MotoCheckPolicyStatus();
 }
        public void MotoRebrokeRenewNewScheme()
        {
            SetOurHighwayRegKeys();
            UiMap.CustomerCode = Moto.TamMotorSteps(Customer);
            Moto.MotoPostcodeLookup();
            Moto.MotoSearchCar();
            Moto.MotoInceptionDate();
            Moto.MotoCalculate();
            Moto.QuoteResults1();
            Moto.PublicCreditCheckOk();
            Moto.MotoSelectHighwayPolicy();
            Moto.AcceptAndFinishQuote("cash", 2);
            Moto.CloseAndOpenPolicyList(UiMap.CustomerCode);
            string policyNumber    = Moto.GetPolicyNumber();
            string originalPremium = Moto.CheckPolicyPremium("cash");

            Renewals(policyNumber, PolicyType, RenewalPremium);
            Moto.MotoRebroke(false, false);
            Moto.PublicCreditCheckOk();
            Moto.MotoRebrokeSelectScheme(Moto.CommonParams.SendEndKeys);
            Moto.RebrokeSelectAlternative();
            Moto.MotoRebrokeCurrent(false);
            Moto.RenewalModuleInvite(false);
            Moto.RenewConfirmInvite();
            Moto.RenewalModuleInvite1();
            Moto.RebrokeAlternativeFinish("cash");
            Moto.ContinueToRetrieveResponse();
            Moto.CancelPrint();
            Moto.RebrokeAlternativeFinish1();
            Moto.RenewalModuleClose();
            Moto.CloseAndOpenPolicyList(UiMap.CustomerCode);
            Moto.HighlightBillingScreen();
            string premium = Moto.CheckPolicyPremium("cash");

            House.CheckPremiumInQuoteDocument(this.Docs.DocumentsForMotoRebrokeRenewExistingScheme, "cash", originalPremium: double.Parse(originalPremium));
            House.OpenTransList(Transactions.GetTransactionDictionary(premium, "cash", originalPremium));
            Moto.RenewalCheckStatus("REW");
            Moto.ClosePolicy();
        }
 public void MotoCancelAccept()
 {
     SetOfficeRegKeys();
     UiMap.CustomerCode = Moto.TamMotorSteps(Customer);
     Moto.CreateNewBusinessPolicy(ExpectedAddress);
     Moto.AssertSelectPolicyForm();
     Moto.SelectPolicyQuote();
     Moto.AcceptAndFinishQuote("cash", 2);
     Moto.CloseAndOpenPolicyList(UiMap.CustomerCode);
     Moto.CheckPolicyPremium("cash");
     Moto.MotoCloseDetails();
     Moto.MotoMTA();
     Moto.MotoCancelPolicy();
     Moto.MtaEffectiveDate();
     Moto.MotoCancelPolicy1();
     Moto.MotoMTAConfirmPolicy("cancel");
     Moto.CloseAndOpenPolicyList(UiMap.CustomerCode);
     Moto.MotoCheckPolicyStatusExpectedValues.UIItemEditText = "CAN";
     Moto.MotoCheckPolicyStatus();
     Moto.CheckCorrectNumberTrans(2);
     Moto.CheckCorrectDocumentPresent(Docs.DocumentsForMotoNewBusinessCancelAccept);
 }