public void TC104_VerifySACCGraceOutside_ReSchedule_AddPayment(int loanamout, string strmobiledevice)
        {
            strUserType = "RL";
            try
            {
                _driver             = _testengine.TestSetup(strmobiledevice, "RL");
                _homeDetails        = new HomeDetails(_driver, "RL");
                _loanPurposeDetails = new LoanPurposeDetails(_driver, "RL");
                _personalDetails    = new PersonalDetails(_driver, "RL");
                _bankDetails        = new BankDetails(_driver, "RL");
                _loanSetUpDetails   = new LoanSetUpDetails(_driver, "RL");

                //login user
                _homeDetails.LoginGracePeriodUser(TestData.Password, TestData.ClientType.NewProduct, TestData.Feature.MissedRepaymentinContract);

                //Fetching the missed repayment message
                string MiissedRepaymentmessage = _bankDetails.VerifyMissedRepaymentMessage();

                Assert.IsTrue(MiissedRepaymentmessage.Contains("Oops"), "Message not displayed");

                //Fetching missed repayment value from first page
                string missedRepayment = _bankDetails.GetMissedRepaymentFirstPage();

                //click on Reschedule button
                _bankDetails.ClickRescheduleButton();

                //Click on extend checkbox
                _bankDetails.ClickExtentCheckBox();

                //get upcoming repayment from first page
                string UpcomingFirstPage = _bankDetails.GetUpcomingRepaymentFirstPageExtend();

                //Click continue button after reschedule
                _bankDetails.ClickRescheduleContinueButton();

                //Fetch Reschedule message
                string RescheduleMessage = _bankDetails.VerifyRescheduleMessage();

                Assert.IsTrue(RescheduleMessage.Contains("Thanks!"), "Message not displayed");

                //Get missed repayment from last page
                string missedRepayment1 = _bankDetails.GetMissedRepaymentLastPage();

                //Get upcoming repayment from last page
                string UpcomingLastPage = _bankDetails.GetUpcomingRepaymentLastPageExtend();

                Assert.AreEqual(missedRepayment, missedRepayment1, "Missed repayments are not matching");

                Assert.AreEqual(UpcomingFirstPage, UpcomingLastPage, "Missed repayments are not matching");

                //Logout
                _loanSetUpDetails.Logout();
            }
            catch (Exception ex)
            {
                strMessage += ex.Message; Assert.Fail(ex.Message);
            }
        }
        public void TC217_Verify_Prefail_remaining_payment_RL(int loanamout, string strmobiledevice)
        {
            strUserType = "RL";
            try
            {
                _driver             = _testengine.TestSetup(strmobiledevice, "RL");
                _homeDetails        = new HomeDetails(_driver, "RL");
                _loanPurposeDetails = new LoanPurposeDetails(_driver, "RL");
                _personalDetails    = new PersonalDetails(_driver, "RL");
                _bankDetails        = new BankDetails(_driver, "RL");
                _loanSetUpDetails   = new LoanSetUpDetails(_driver, "RL");

                //login user
                _homeDetails.LoginExistingUser(TestData.Password, loanamout, TestData.ClientType.NewProduct, TestData.Feature.ReturnerSACCActive1RemainingPayment);

                //click on Reschedule button
                _bankDetails.ClickRescheduleButton();

                //Verify divide radio btn
                Assert.IsFalse(_bankDetails.verifyDivideRadioBtn(), "Divide button");

                //click on Divide CheckBox
                _bankDetails.ClickExtentCheckBox();

                //get upcoming repayment from first page
                string UpcomingFirstPage = _bankDetails.getPrefailUpcomingRepaymentFirstPage("0");

                //Click continue button after reschedule
                _bankDetails.ClickRescheduleContinueButton();

                //Fetch Reschedule message
                string RescheduleMessage = _bankDetails.VerifyRescheduleMessage();

                Assert.IsTrue(RescheduleMessage.Contains("Thanks!"), "Message not displayed");

                //Get upcoming repayment from last page
                string UpcomingLastPage = _bankDetails.GetPrefailUpcomingRepaymentLastPage("4");

                //Assert.AreEqual(missedRepayment, missedRepayment1, "Missed repayments are not matching");
                Assert.AreEqual(UpcomingFirstPage, UpcomingLastPage, "Missed repayments are not matching");

                //Logout
                _loanSetUpDetails.Logout();
            }
            catch (Exception ex)
            {
                strMessage += ex.Message; Assert.Fail(ex.Message);
            }
        }
예제 #3
0
        public void TC215_Verify_Prefail_FortNightly_Reschedule_Extend_RL(int loanamout, string strmobiledevice)
        {
            strUserType = "RL";
            try
            {
                _driver             = _testengine.TestSetup(strmobiledevice, "RL");
                _homeDetails        = new HomeDetails(_driver, "RL");
                _loanPurposeDetails = new LoanPurposeDetails(_driver, "RL");
                _personalDetails    = new PersonalDetails(_driver, "RL");
                _bankDetails        = new BankDetails(_driver, "RL");
                _loanSetUpDetails   = new LoanSetUpDetails(_driver, "RL");

                //login user
                _homeDetails.LoginExistingUser(TestData.Password, loanamout, TestData.ClientType.NewProduct, TestData.Feature.ReturnerSACCActiveFortnightlyrepayment);

                //click on Reschedule button
                _bankDetails.ClickRescheduleButton();

                //Click on extend checkbox
                _bankDetails.ClickExtentCheckBox();

                //Get upcoming repayment from first page
                UpcomingFirstPage = _bankDetails.GetPrefailUpcomingRepaymentFirstPageExtend("2");

                //Click continue button after reschedule
                _bankDetails.ClickRescheduleContinueButton();

                if (GetPlatform(_driver))
                {
                    var amount = UpcomingFirstPage.Split('$');
                    UpcomingFirstPage = amount[1];
                    decimal upComingFirstPage      = int.Parse(UpcomingFirstPage);
                    string  upComingFirstPageValue = "$" + upComingFirstPage;

                    //Click on finish button
                    _bankDetails.clickFinishBtn();

                    //Click on time line
                    _bankDetails.clickTimeLine();

                    UpcomingLastPage = _bankDetails.GetPrefailUpcomingRepaymentLastPageExtend("6");

                    Assert.AreEqual(upComingFirstPageValue, UpcomingLastPage, "Missed repayments are not matching");
                }

                else
                {
                    //Fetch Reschedule message
                    string RescheduleMessage = _bankDetails.VerifyRescheduleMessage();
                    Assert.IsTrue(RescheduleMessage.Contains("Thanks!"), "Message not displayed");

                    UpcomingLastPage = _bankDetails.GetPrefailUpcomingRepaymentLastPageExtend("6");
                    Assert.AreEqual(UpcomingFirstPage, UpcomingLastPage, "Missed repayments are not matching");
                }

                //Get upcoming repayment from last page
                // string UpcomingLastPage = _bankDetails.GetPrefailUpcomingRepaymentLastPageExtend();
                //var value = UpcomingLastPage.Split('$');
                //double  UpcomingLast = Convert.ToDouble(value[1]);
                //string UpcomingLastPageValue = "$" + UpcomingLast;
                //   Assert.AreEqual(UpcomingFirstPage, UpcomingLastPage, "Missed repayments are not matching");

                if (GetPlatform(_driver))
                {
                    // click on More Button from Bottom Menu
                    _loanSetUpDetails.ClickMoreBtn();

                    //Logout
                    _loanSetUpDetails.Logout();
                }

                else
                {
                    //Logout
                    _loanSetUpDetails.Logout();
                }
            }

            catch (Exception ex)
            {
                strMessage += ex.Message; Assert.Fail(ex.Message);
            }
        }