コード例 #1
0
        public void VerifyTheTermExtensionlabelInLoanDetailsPage()
        {
            try
            {
                test = extent.CreateTest("VerifyTheTermExtensionlabelInLoanDetailsPage").Info("Test Started");
                LoanDetailsPage LoanMainPage = new PageObjects.LoanDetailsPage(BaseTest.driver);
                LoanMainPage.ClickTrackRecordOnInMenu();
                Thread.Sleep(1000);
                LoanMainPage.ClickOnCardDetails();
                Thread.Sleep(1000);

                String Amorization_TE_Title = LoanMainPage.getText_LoanDetail_TE_Title();
                Assert.AreEqual("TERM + EXTENSION OPTIONS", Amorization_TE_Title, "Term + Extension  label does not match");

                String Amorization_Ext_Number = LoanMainPage.getText_LoanDetail_TE_Extension_Number();
                Assert.AreEqual("Extension Number", Amorization_Ext_Number, "Extension Number label does not match");

                String Amorization_Mat_Date = LoanMainPage.getText_LoanDetail_TE_Extension_MaturityDate();
                Assert.AreEqual("Extension Maturity Date", Amorization_Mat_Date, "Extension Maturity Date label does not match");

                test.Log(Status.Pass, "Test Case Passed");
            }
            catch (Exception e)
            {
                test.Log(Status.Fail, "Test Case Failed");
                test.Log(Status.Fail, e.ToString());
                baseTest.TakeScreenshot();
                Console.WriteLine(e.StackTrace);
            }
        }
コード例 #2
0
        public void VerifyLoanlabelInLoanDetailsPage()
        {
            try
            {
                test = extent.CreateTest("VerifyLoanlabelInLoanDetailsPage").Info("Test Started");
                LoanDetailsPage LoanMainPage = new PageObjects.LoanDetailsPage(BaseTest.driver);

                LoanMainPage.ClickTrackRecordOnInMenu();
                LoanMainPage.ClickOnCardDetails();
                var loan = LoanMainPage.getText_LOANDETAILS();
                Assert.AreEqual("LOAN DETAILS", loan, "Loan label does not match");

                var TC = LoanMainPage.getText_LOANDETAILS_TC();
                Assert.AreEqual("Total Commitment", TC, "Total commitment label does not match");


                var OD = LoanMainPage.getText_LOANDETAILS_OD();
                Assert.AreEqual("Origination Date", OD, "Origination Date label does not match");

                var IM = LoanMainPage.getText_LOANDETAILS_IM();
                Assert.AreEqual("Initial Maturity", IM, "Total commitment label does not match");

                var TM = LoanMainPage.getText_LOANDETAILS_TM();
                Assert.AreEqual("Term (Months)", TM, "Term (Months) label does not match");

                var CM = LoanMainPage.getText_LOANDETAILS_CM();
                Assert.AreEqual("Current Maturity", CM, "Current Maturity label does not match");


                var OA = LoanMainPage.getText_LOANDETAILS_OA();
                Assert.AreEqual("Outstanding Amount", OA, "Outstanding Amount label does not match");

                var lender = LoanMainPage.getText_LOANDETAILS_Lender();
                Assert.AreEqual("Lender", lender, "Lender label does not match");

                var loanType = LoanMainPage.getText_LOANDETAILS_LoanType();
                Assert.AreEqual("Loan Type", loanType, "Loan Type label does not match");

                var LenderType = LoanMainPage.getText_LOANDETAILS_LenderType();
                Assert.AreEqual("Lender", lender, "Lender Type label does not match");


                var InRateType = LoanMainPage.getText_LOANDETAILS_IRateType();
                Console.WriteLine(InRateType);
                Assert.AreEqual("Interest Rate Type", InRateType, "Interest Rate Type label does not match");

                test.Log(Status.Pass, "Test Case Passed");
            }
            catch (Exception e)
            {
                test.Log(Status.Fail, "Test Case Failed");
                test.Log(Status.Fail, e.ToString());
                baseTest.TakeScreenshot();
                Console.WriteLine(e.StackTrace);
            }
        }
コード例 #3
0
        public void VerifyThePrepaymentlabelInLoanDetailsPage()
        {
            try
            {
                test = extent.CreateTest("VerifyThePrepaymentlabelInLoanDetailsPage").Info("Test Started");
                LoanDetailsPage LoanMainPage = new PageObjects.LoanDetailsPage(BaseTest.driver);
                LoanMainPage.ClickTrackRecordOnInMenu();
                Thread.Sleep(1000);
                LoanMainPage.ClickOnCardDetails();
                Thread.Sleep(1000);

                String Prepayment_Title = LoanMainPage.getText_LoanDetails_Preapayment_Title();
                Assert.AreEqual("PREPAYMENT", Prepayment_Title, "Prepayment  label does not match"); //Reverify the title

                String Prepayment_Amount = LoanMainPage.getText_LoanDetails_Preapayment_Amount();
                Assert.AreEqual("Prepayment Amount", Prepayment_Amount, "Prepayment Amount label does not match");

                String Prepayment_Notes = LoanMainPage.getText_LoanDetails_Preapayment_Notes();
                Assert.AreEqual("Prepayment Notes", Prepayment_Notes, "Prepayment Notes label does not match");

                String Prepayment_Calc_Date = LoanMainPage.getText_LoanDetails_Preapayment_Calc_Date();
                Assert.AreEqual("Prepayment Calc Date", Prepayment_Calc_Date, "Prepayment Calc Date  label does not match");

                String Prepayment_EBA_PatOff = LoanMainPage.getText_LoanDetails_Preapayment_EBA_PatOff();
                Assert.AreEqual("Estimated Balance at Payoff", Prepayment_EBA_PatOff, "Estimated Balance at Payoff label does not match");

                String OLB_Title = LoanMainPage.getText_LoanDetails_Preapayment_OLB_PenaltyAct();
                Assert.AreEqual("Outstanding Loan Balance Penalty Pct", OLB_Title, "Outstanding Loan Balance Penalty Pct label does not match");


                String Prepayment_Exit_Fee_Pct = LoanMainPage.getText_LoanDetails_Preapayment_Exit_Fee_Pct();
                Assert.AreEqual("Exit Fee Pct", Prepayment_Exit_Fee_Pct, "Exit Fee Pct label does not match");


                String Prepayment_EF_Account = LoanMainPage.getText_LoanDetails_Preapayment_EF_Account();
                Assert.AreEqual("Prepayment Type", Prepayment_EF_Account, "Prepayment Type label does not match");

                test.Log(Status.Pass, "Test Case Passed");
            }
            catch (Exception e)
            {
                test.Log(Status.Fail, "Test Case Failed");
                test.Log(Status.Fail, e.ToString());
                baseTest.TakeScreenshot();
                Console.WriteLine(e.StackTrace);
            }
        }
コード例 #4
0
        public void VerifyTheHedginlabelInLoanDetailsPage()
        {
            try
            {
                test = extent.CreateTest("VerifyTheHedginlabelInLoanDetailsPage").Info("Test Started");
                LoanDetailsPage LoanMainPage = new PageObjects.LoanDetailsPage(BaseTest.driver);
                LoanMainPage.ClickTrackRecordOnInMenu();
                Thread.Sleep(1000);
                LoanMainPage.ClickOnCardDetails();
                Thread.Sleep(1000);

                String HEDGING_Title = LoanMainPage.getText_LoanDetail_HEDGING_Title();
                Assert.AreEqual("HEDGING INSTRUMENT", HEDGING_Title, "Hedging Instrument label does not match");

                String Hedging_IT = LoanMainPage.getText_LoanDetail_HEDGING_Instru_Type();
                Assert.AreEqual("Hedging Instrument Type", Hedging_IT, "Hedging Instrument Type label does not match");

                String Hedging_TTHM = LoanMainPage.getText_LoanDetail_HEDGING_TTHedgeMaturity();
                Assert.AreEqual("Term To Hedge Maturity", Hedging_TTHM, "Term To Hedge Maturity label does not match");

                String Hedging_ED = LoanMainPage.getText_LoanDetail_HEDGING_ExpirationDate();
                Assert.AreEqual("Expiration Date", Hedging_ED, "Expiration Date label does not match");

                String Hedging_HN = LoanMainPage.getText_LoanDetail_HEDGING_Notes();
                Assert.AreEqual("Notes", Hedging_HN, "Note label does not match"); // re-verify the text


                test.Log(Status.Pass, "Test Case Passed");
            }
            catch (Exception e)
            {
                test.Log(Status.Fail, "Test Case Failed");
                test.Log(Status.Fail, e.ToString());
                baseTest.TakeScreenshot();
                Console.WriteLine(e.StackTrace);
            }
        }
コード例 #5
0
        public void VerifyTheAmortizationlabelInLoanDetailsPage()
        {
            try
            {
                test = extent.CreateTest("VerifyTheAmortizationlabelInLoanDetailsPage").Info("Test Started");
                LoanDetailsPage LoanMainPage = new PageObjects.LoanDetailsPage(BaseTest.driver);
                LoanMainPage.ClickTrackRecordOnInMenu();
                Thread.Sleep(1000);
                LoanMainPage.ClickOnCardDetails();
                Thread.Sleep(1000);

                String Amorization_Title = LoanMainPage.getText_LoanDetail_AMORTIZATION_Title();
                Assert.AreEqual("AMORTIZATION", Amorization_Title, "Amortization label does not match");

                String Amorization_InterestRate = LoanMainPage.getText_LoanDetail_AMORTIZATION_InterestRate();
                Assert.AreEqual("Amortization Interest Rate", Amorization_InterestRate, "Amortization Interest Rate label does not match");

                String Amorization_InterestOnlyPeriod_Month = LoanMainPage.getText_LoanDetail_AMORTIZATION_InterestOnlyPeriod_Month();
                Assert.AreEqual("Interest Only Period (Months)", Amorization_InterestOnlyPeriod_Month, "Interest Only Period (Months) label does not match");

                String Amorization_InterestOnlyPeriod_Year = LoanMainPage.getText_LoanDetail_AMORTIZATION_InterestOnlyPeriod_Year();
                Assert.AreEqual("Amortization Period (Years)", Amorization_InterestOnlyPeriod_Year, "Amortization Period (Years) label does not match");

                String Amorization_Calc_Method = LoanMainPage.getTextLoanDetail_AMORTIZATION_Amortization_Calc_Method();
                Assert.AreEqual("Amortization Calc Method", Amorization_Calc_Method, "Amortization Calc Method label does not match"); // re-verify the text


                test.Log(Status.Pass, "Test Case Passed");
            }
            catch (Exception e)
            {
                test.Log(Status.Fail, "Test Case Failed");
                test.Log(Status.Fail, e.ToString());
                baseTest.TakeScreenshot();
                Console.WriteLine(e.StackTrace);
            }
        }