Esempio n. 1
0
        public void TC108_VerifyClosingSite_BankPage_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");

                // Create new debug client
                _homeDetails.LoginExistingUser(TestData.RandomPassword, loanamout, TestData.ClientType.NewProduct, TestData.Feature.NewProductAdvancePaidClean);

                // Member Area - click Request Money
                _homeDetails.ClickRequestMoneyBtn();

                // Member Area - Let's Get Started
                _homeDetails.ClickExistinguserStartApplictionBtn();

                // Purpose of Loan page
                _loanPurposeDetails.SelectLoanValueRL(loanamout);
                _loanPurposeDetails.ClickSelectFirstPurposeBtn();
                _loanPurposeDetails.SelectLoanPurposeRL(TestData.POL.Homerepairsorimprovements);
                _loanPurposeDetails.EnterFirstPOLAmountTxt(loanamout.ToString());
                _loanPurposeDetails.ClickLoanPOLContinueBtnRL();

                // Personal Details page
                _personalDetails.SelectEmploymentStatusLst(TestData.YourEmployementStatus.FullTime);
                _personalDetails.ClickNoShortTermLoanStatusBtn();
                _personalDetails.CheckReadPrivacyBtn(TestData.ReturnerLoaner);
                _personalDetails.CheckReadCreditBtn(TestData.ReturnerLoaner);

                if (GetPlatform(_driver))
                {
                    // Mobile Personal Details Continue button
                    _personalDetails.ClickPersonaldetailsContinueBtnRLMobile();
                }
                else
                {
                    // Desktop Personal Details Continue button
                    _personalDetails.ClickPersonaldetailsRequestBtnRLDesktop();
                    _personalDetails.ClickAutomaticVerificationBtn();
                }

                // Bank Details page
                _bankDetails.SelectBankLst(TestData.BankDetails.Dagbank);

                // Click on Continue Button
                _bankDetails.BankSelectContinueBtn();

                // Entering Username and Password
                _bankDetails.EnterBankCredentialsTxt(TestData.BankDetails.AUTOTriggerAllNoSACC.Yodlee.UID, TestData.BankDetails.AUTOTriggerAllNoSACC.Yodlee.PWD);

                // Click on Continue Button
                _bankDetails.ClickAutoContinueBtn();

                // choose bank account
                _bankDetails.BankAccountSelectBtn();

                // Click on bank select Continue Button
                _bankDetails.ClickBankAccountContBtn();

                // Confirm Bank Details
                _bankDetails.EnterBankDetailsTxt();

                // Click on Confirm account details Continue Button
                _bankDetails.ClickAcctDetailsBtn();

                // Select Category
                _bankDetails.SelectIncomecategory(TestData.IncomeCategory.PrimaryIncome, "0");

                // Select Just checking option
                //_bankDetails.SelectJustCheckingOptionLst("Yes, it will stay the same (or more)");

                // click on Confirm Income Button
                _bankDetails.ClickConfirmIncomeBtn();

                // select  other debt repayments option No
                _bankDetails.SelectOtherDebtRepaymentsOptionBtn();

                // select dependents
                _bankDetails.SelectDependantsLst(TestData.Dependents.Zero);

                // Click on continue
                _bankDetails.ClickConfirmExpensesBtn();

                // select Governments benefits option No
                _bankDetails.ClickNoGovtBenefitsbtn();

                // click on Agree that information True
                _bankDetails.ClickAgreeAppSubmitBtn();

                // click on confirm Submit button
                _bankDetails.ClickConfirmSummaryBtn();

                // Click 'Your Dashboard' link to trigger market survey
                // Close 'Bank marketing survey'
                _homeDetails.ClickDesktopYourDashboardLnk();
                _homeDetails.ClickMarketSurveyCloseBtn();
            }
            catch (Exception ex)
            {
                strMessage += ex.Message; Assert.Fail(ex.Message);
            }
        }
Esempio n. 2
0
        public void TC109_VerifyClosingSite_SetUpPage_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");

                // Create new debug client
                _homeDetails.LoginExistingUser(TestData.RandomPassword, loanamout, TestData.ClientType.NewProduct, TestData.Feature.NewProductAdvancePaidClean);

                // Member Area - click Request Money
                _homeDetails.ClickRequestMoneyBtn();

                // Member Area - Let's Get Started
                _homeDetails.ClickExistinguserStartApplictionBtn();

                // Purpose of Loan page
                _loanPurposeDetails.SelectLoanValueRL(loanamout);
                _loanPurposeDetails.ClickSelectFirstPurposeBtn();
                _loanPurposeDetails.SelectLoanPurposeRL(TestData.POL.Homerepairsorimprovements);
                _loanPurposeDetails.EnterFirstPOLAmountTxt(loanamout.ToString());
                _loanPurposeDetails.ClickLoanPOLContinueBtnRL();

                // Personal Details page
                _personalDetails.SelectEmploymentStatusLst(TestData.YourEmployementStatus.FullTime);
                _personalDetails.ClickNoShortTermLoanStatusBtn();
                _personalDetails.CheckReadPrivacyBtn(TestData.ReturnerLoaner);
                _personalDetails.CheckReadCreditBtn(TestData.ReturnerLoaner);

                if (GetPlatform(_driver))
                {
                    // Mobile Personal Details Continue button
                    _personalDetails.ClickPersonaldetailsContinueBtnRLMobile();
                }
                else
                {
                    // Desktop Personal Details Continue button
                    _personalDetails.ClickPersonaldetailsRequestBtnRLDesktop();
                    _personalDetails.ClickAutomaticVerificationBtn();
                }

                // Bank Details page
                _bankDetails.SelectBankLst(TestData.BankDetails.Dagbank);
                _bankDetails.BankSelectContinueBtn();
                _bankDetails.EnterBankCredentialsTxt(TestData.BankDetails.AUTOTriggerAllNoSACC.Yodlee.UID, TestData.BankDetails.AUTOTriggerAllNoSACC.Yodlee.PWD);
                _bankDetails.ClickAutoContinueBtn();
                _bankDetails.BankAccountSelectBtn();
                _bankDetails.ClickBankAccountContBtn();
                _bankDetails.EnterBankDetailsTxt();
                _bankDetails.ClickAcctDetailsBtn();

                // Your Income page
                _bankDetails.SelectIncomecategory(TestData.IncomeCategory.PrimaryIncome, "0");
                _bankDetails.ClickConfirmIncomeBtn();

                // Your Expenses page
                _bankDetails.SelectOtherDebtRepaymentsOptionBtn();
                _bankDetails.SelectDependantsLst(TestData.Dependents.Zero);
                _bankDetails.ClickConfirmExpensesBtn();
                _bankDetails.ClickNoGovtBenefitsbtn();
                _bankDetails.ClickAgreeAppSubmitBtn();
                _bankDetails.ClickConfirmSummaryBtn();

                // Loan Setup page
                // Trigger marketing survey by clicking 'Your Dashboard' link
                Thread.Sleep(3000); // need this otherwise we try to load the wrong survey
                _homeDetails.ClickDesktopYourDashboardLnk();
                Thread.Sleep(1000); // need this otherwise we won't close the survey correctly
                _homeDetails.ClickMarketSurveyCloseBtn();
            }
            catch (Exception ex)
            {
                strMessage += ex.Message; Assert.Fail(ex.Message);
            }
        }