Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
        public void HouseLapsePolicy()
        {
            SetOurAxaRegKeys();
            UiMap.CustomerCode = Customer.AddPolicy();
            House.SelectHomeType();
            House.SelectMenu();
            House.Links();
            House.HomeStartDate();
            House.HomeProposer();
            House.HomeCreatePolicy();
            House.PublicCreditCheckOk();

            House.CreateNewPolicy();
            string policyNumber = Moto.GetPolicyNumber();

            Renewals(policyNumber, PolicyType, RenewalPremium);

            House.RenewalModuleInvite(false);
            House.RenewConfirmInvite();
            House.RenewalModuleInvite1();
            House.LapsePolicy(policyNumber);
            House.RenewalModuleClose();
            Moto.CloseAndOpenPolicyList(UiMap.CustomerCode);
            House.RenewalCheckStatus("LAP");
            House.ClosePolicy();
        }
Exemplo n.º 3
0
        public void HouseAmendRiskExistingScheme()
        {
            SetOurAxaRegKeys();
            UiMap.CustomerCode = Customer.AddPolicy();
            House.SelectHomeType();
            House.SelectMenu();
            House.Links();
            House.HomeStartDate();
            House.HomeProposer();
            House.HomeCreatePolicy();
            House.PublicCreditCheckOk();

            House.CreateNewPolicy();
            string policyNumber = Moto.GetPolicyNumber();

            Renewals(policyNumber, PolicyType, RenewalPremium);

            House.HomeAmendRisk();
            House.PublicCreditCheckOk();
            House.HomeAmendSelecPolicy(false);
            House.HomeAmendRenew();
            House.RenewalModuleClose();
            Moto.CloseAndOpenPolicyList(UiMap.CustomerCode);
            House.RenewalCheckStatus("REN");
            House.ClosePolicy();
        }
Exemplo n.º 4
0
        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();
        }
Exemplo n.º 5
0
        public void HouseRebrokeRenewCurrent()
        {
            SetOurAxaRegKeys();
            UiMap.CustomerCode = Customer.AddPolicy();
            House.SelectHomeType();
            House.SelectMenu();
            House.Links();

            House.HomeStartDate();

            House.HomeProposer();
            House.HomeCreatePolicy();
            House.PublicCreditCheckOk();
            House.CreateNewPolicy();
            string policyNumber = Moto.GetPolicyNumber();

            Renewals(policyNumber, PolicyType, RenewalPremium);

            House.HomeRebroke();
            House.PublicCreditCheckOk();
            House.HomeRebrokeCurrent();
            RenewalsInvite(false);
            Moto.CloseAndOpenPolicyList(UiMap.CustomerCode);
            House.RenewalCheckStatus("REN");
            House.ClosePolicy();
        }
Exemplo n.º 6
0
        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();
        }
Exemplo n.º 7
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();
        }
Exemplo n.º 8
0
        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();
        }
Exemplo n.º 9
0
        public void MotoAWAP()
        {
            SetOfficeRegKeys();
            UiMap.CustomerCode = Moto.TamMotorSteps(Customer);
            Moto.CreateNewBusinessPolicy(ExpectedAddress);
            const string Premium = "17777.00";

            Moto.MotoAwap(Premium);
            Moto.CloseAndOpenPolicyList(UiMap.CustomerCode);
            Moto.HighlightBillingScreen();
            Moto.MotoCheckAWAPpremium(Premium);
            Moto.OpenTransList(Transactions.GetTransactionDictionary(Premium, "cash"));
        }
Exemplo n.º 10
0
 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();
 }
Exemplo n.º 11
0
        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();
        }
Exemplo n.º 12
0
        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();
        }
Exemplo n.º 13
0
        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");
        }
Exemplo n.º 14
0
        public void HouseRebrokeRenewNewScheme()
        {
            // change registry to ourhighway
            SetOurAxaRegKeys();

            //add policy
            UiMap.CustomerCode = Customer.AddPolicy();
            House.SelectHomeType();
            House.SelectMenu();
            House.Links();
            House.HomeStartDate();
            House.HomeProposer();
            House.HomeCreatePolicy();
            House.PublicCreditCheckOk();

            string originalpremium = House.CreateNewPolicy();
            string policyNumber    = Moto.GetPolicyNumber();

            Renewals(policyNumber, PolicyType, RenewalPremium);

            House.HomeRebroke();
            House.PublicCreditCheckOk();
            House.HomeRebrokeSelectPolicy(House.CommonParams.SendEndKeys);
            House.HomeRebrokeSelectAlternative();
            House.HomeRebrokeFinish();
            //House.ImportToTamOptionsOnce("");
            House.RenewalModuleInvite(false);
            House.RenewConfirmInvite();
            House.RenewalModuleInvite1();
            House.RebrokeAlternativeRenew("cash");
            House.EtamOk(true);
            House.EtamYes();
            House.ConfirmDocuments();
            House.ContinueToRetrieveResponse();
            House.RebrokeAlternativeRenew1();
            House.RenewalModuleClose();
            Moto.CloseAndOpenPolicyList(UiMap.CustomerCode);

            House.CheckPremiumInQuoteDocument(this.Docs.DocumentsForHouseAmendRiskNewScheme, "cash", originalPremium: double.Parse(originalpremium));
            string premium = House.CheckPolicyPremium("cash");

            House.OpenTransList(Transactions.GetTransactionDictionary(premium, "cash", originalpremium));
            House.RenewalCheckStatus("REW");
            House.ClosePolicy();
        }
Exemplo n.º 15
0
        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();
        }
Exemplo n.º 16
0
        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"));
        }
Exemplo n.º 17
0
 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();
 }
Exemplo n.º 18
0
        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();
        }
Exemplo n.º 19
0
 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);
 }
Exemplo n.º 20
0
        public void HouseRenewalAfter()
        {
            SetOurAxaRegKeys();
            UiMap.CustomerCode = Customer.AddPolicy();
            House.SelectHomeType();
            House.SelectMenu();
            House.Links();
            House.HomeStartDate();
            House.HomeProposer();
            House.HomeCreatePolicy();
            House.PublicCreditCheckOk();
            House.CreateNewPolicy();
            string policyNumber = Moto.GetPolicyNumber();

            Renewals(policyNumber, PolicyType, RenewalPremium);

            RenewalsInvite(false);
            Moto.CloseAndOpenPolicyList(UiMap.CustomerCode);
            House.RenewalCheckStatus("REN");
            House.ClosePolicy();

            ////MTA1
            House.HomeOpenQuote();
            House.HomeMTAAfter();
            House.HomeMTAChange();
            House.HomeResubmitQuote(false);
            House.MTADate(DateTime.Now.AddDays(14).ToString("dd/MM/yy"));
            House.HomeMTASelectQuote();

            //MTA2
            House.HomeOpenQuote();
            House.HomeMTAAfter();
            House.HomeMTAChange();
            House.HomeResubmitQuote(false);
            House.MTADate(DateTime.Now.AddDays(13).ToString("dd/MM/yy"));
            House.MTAMessageBeforeCurrent();
            House.EtamOk(true);
            House.MTAEffectiveDatesCancel();
            House.HomeMTACancel1();

            //MTA3
            House.HomeOpenQuote();
            House.HomeMTABefore();
            House.HomeMTAChange();
            House.HomeResubmitQuote(false);

            House.MTADate(DateTime.Now.AddDays(9).ToString("dd/MM/yy"));
            Moto.MotoMTAMessageAfterDate();
            House.EtamOk(true);

            House.MTADate(DateTime.Now.AddDays(1).ToString("dd/MM/yy"));
            House.HomeRenewalBeforeAccept();
            House.HomeRenewalBeforeFinish();

            //mta4
            House.HomeOpenQuote();
            House.EtamYes();
            House.HomeMTAChange();
            House.HomeResubmitQuote(false);
            House.MTADate(DateTime.Now.ToString("dd/MM/yy"));
            House.MTAMessageBeforeCurrent();
            House.EtamOk(true);
            House.MTADate(DateTime.Now.AddDays(11).ToString("dd/MM/yy"));
            Moto.MotoMTAMessageAfterDate();
            House.EtamOk(true);
            House.MTAEffectiveDatesCancel();
            House.HomeMTACancel1();
        }