public void TC133Verify2Green3YelloFlagsDNQ_NL(int loanamout, string mobiledevice) { strUserType = "NL"; _driver = _testengine.TestSetup(mobiledevice, "NL"); _homeDetails = new HomeDetails(_driver, "NL"); _loanPurposeDetails = new LoanPurposeDetails(_driver, "NL"); _personalDetails = new PersonalDetails(_driver, "NL"); _bankDetails = new BankDetails(_driver, "NL"); try { //Go to the homepage and click the start application button _homeDetails.HomeDetailsPage(); //Select the loan amount and purpose and click on continue button _loanPurposeDetails.LoanPurposeFunction(loanamout, TestData.POL.Households); //populate the personal details and proceed _personalDetails.PersonalDetailsFunction(); // select Bank Name _bankDetails.SelectBankLst(TestData.BankDetails.Dagbank); // Click on Continue Button _bankDetails.BankSelectContinueBtn(); // Entering Username and Password _bankDetails.EnterBankCredentialsTxt(TestData.BankDetails.Green2Yellow3DNQ.Yodlee.UID, TestData.BankDetails.Green2Yellow3DNQ.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(); _bankDetails.OtherLoanDetails(); // Verify unsuccessful message string UnsuccessMsg = "Application unsuccessful"; Assert.IsTrue(_personalDetails.GetUnsuccessMessage().Contains(UnsuccessMsg)); //verify DNQ Message string ActualDNQMessage = "You currently don't qualify for a Nimble loan"; Assert.IsTrue(_personalDetails.GetDNQMessage().Contains(ActualDNQMessage)); } catch (Exception ex) { strMessage += ex.Message; Assert.Fail(ex.Message); } }
public void TC1332Green3YelloFlagsDNQ_RL(int loanamout, string mobiledevice) { strUserType = "RL"; _driver = _testengine.TestSetup(mobiledevice, "RL"); _homeDetails = new HomeDetails(_driver, "RL"); _loanPurposeDetails = new LoanPurposeDetails(_driver, "RL"); _personalDetails = new PersonalDetails(_driver, "RL"); _bankDetails = new BankDetails(_driver, "RL"); try { //Go to the homepage and click the start application button and then the Request money button _homeDetails.homeFunctions_RL(TestData.RandomPassword, loanamout, TestData.ClientType.NewProduct, TestData.Feature.NewProductAdvancePaidClean); //Select the loan amount and purpose and click on continue button _loanPurposeDetails.LoanPurposeFunction_RL(loanamout, TestData.POL.Households); //Edit the personal details and change the Rmsrv Code _personalDetails.PersonalDetailsFunction_RL(TestData.YourEmployementStatus.FullTime, TestData.ReturnerLoaner, TestData.OverrideCodes.PassAll_RL); // select Bank Name _bankDetails.SelectBankLst(TestData.BankDetails.Dagbank); // Click on Continue Button _bankDetails.BankSelectContinueBtn(); // Entering Username and Password _bankDetails.EnterBankCredentialsTxt(TestData.BankDetails.Green2Yellow3DNQ.Yodlee.UID, TestData.BankDetails.Green2Yellow3DNQ.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(); _bankDetails.OtherLoanDetails(); // Verify unsuccessful message string UnsuccessMsg = "Application unsuccessful"; Assert.IsTrue(_personalDetails.GetUnsuccessMessage().Contains(UnsuccessMsg)); //verify DNQ Message string ActualDNQMessage = "You currently don't qualify for a Nimble loan"; Assert.IsTrue(_personalDetails.GetDNQMessage().Contains(ActualDNQMessage)); } catch (Exception ex) { strMessage += ex.Message; Assert.Fail(ex.Message); } }
public void TC086_ApplyingLoanwithGovtIncome_NL(int loanamout, string strmobiledevice) { strUserType = "NL"; try { _driver = _testengine.TestSetup(strmobiledevice); _homeDetails = new HomeDetails(_driver, "NL"); _loanPurposeDetails = new LoanPurposeDetails(_driver, "NL"); _personalDetails = new PersonalDetails(_driver, "NL"); _bankDetails = new BankDetails(_driver, "NL"); _loanSetUpDetails = new LoanSetUpDetails(_driver, "NL"); //Go to the homepage and click the start application button _homeDetails.HomeDetailsPage(); //Select the loan amount and purpose and click on continue button _loanPurposeDetails.LoanPurposeFunction(loanamout, TestData.POL.Households); //populate the personal details and proceed _personalDetails.PersonalDetailsFunction(); // select Bank Name _bankDetails.SelectBankLst(TestData.BankDetails.Dagbank); // Click on Continue Button _bankDetails.BankSelectContinueBtn(); // Entering Username and Password _bankDetails.EnterBankCredentialsTxt(TestData.BankDetails.GovtInc4.Yodlee.UID, TestData.BankDetails.GovtInc4.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(); //Verify Govt income is not changable Assert.IsTrue(_bankDetails.IncomeDisabled(), "Government Income still Editable"); } catch (Exception ex) { strMessage += ex.Message; Assert.Fail(ex.Message); } }
public void TC086_ApplyingLoanwithGovtIncome_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"); //Go to the homepage and click the start application button and then the Request money button _homeDetails.homeFunctions_RL(TestData.RandomPassword, loanamout, TestData.ClientType.NewProduct, TestData.Feature.NewProductAdvancePaidClean); //Select the loan amount and purpose and click on continue button _loanPurposeDetails.LoanPurposeFunction_RL(loanamout, TestData.POL.Households); string streetname = "At:N Cr:A Id:100 Rr1:A Rr2:A Rr3:A Rr:A Rt:8 Rmsrv:0.9999"; //Edit the personal details and change the Rmsrv Code _personalDetails.PersonalDetailsFunction_RL(TestData.YourEmployementStatus.FullTime, TestData.ReturnerLoaner, streetname); // select Bank Name _bankDetails.SelectBankLst(TestData.BankDetails.Dagbank); // Click on Continue Button _bankDetails.BankSelectContinueBtn(); // Entering Username and Password _bankDetails.EnterBankCredentialsTxt(TestData.BankDetails.GovtInc4.Yodlee.UID, TestData.BankDetails.GovtInc4.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(); Assert.IsTrue(_bankDetails.IncomeDisabled(), "Government Income still Editable"); } catch (Exception ex) { strMessage += ex.Message; Assert.Fail(ex.Message); } }
public void TC009_VerifyPOLEventCost_NL(int loanamout, string strmobiledevice) { strUserType = "NL"; try { _driver = TestSetup(strmobiledevice); _homeDetails = new HomeDetails(_driver, "NL"); _loanPurposeDetails = new LoanPurposeDetails(_driver, "NL"); _personalDetails = new PersonalDetails(_driver, "NL"); _bankDetails = new BankDetails(_driver, "NL"); _loanSetUpDetails = new LoanSetUpDetails(_driver, "NL"); //Go to the homepage and click the start application button _homeDetails.HomeDetailsPage(); //Select the loan amount and purpose and click on continue button _loanPurposeDetails.LoanPurposeFunction(loanamout, TestData.POL.Eventcosts.Anniversary); //MoreInformation _loanPurposeDetails.MoreInformation(); PersonalDetailsDataObj _per = new PersonalDetailsDataObj(); _per.StreetName = "At:N Cr:A Id:100 Rr1:A Rr2:A Rr3:A Bsp:Y"; //entering personal details _personalDetails.PopulatePersonalDetails(_per); // Click on checks out Continue Button _personalDetails.ClickCheckoutContinueBtn(); // select Bank Name _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(); if (loanamout > 2000) { // enter sms input as OTP if (_bankDetails.VerifySMSOTP()) { _bankDetails.EnterOTPDetailsTxt(TestData.SMSCode); } } // verify final review enabled and process setup functionality _loanSetUpDetails.loanSetupFunction(loanamout, strUserType); } catch (Exception ex) { strMessage += ex.Message; Assert.Fail(ex.Message); } #region commented old scenario // // click on Buton Submit // _loanSetUpDetails.ClickSubmitBtn(); // // Scrolling the Loan Contract // _loanSetUpDetails.Loancontract(); // // Confirming accepting contract // _loanSetUpDetails.ConfirmAcceptingContract(); // // click on I Agree button // _loanSetUpDetails.ClickOnAgreeBtn(); // // click on No thanks Button // _loanSetUpDetails.ClickNothanksBtn(); // if (GetPlatform(_driver)) // { // // Click on To Loan Dashboard Button // _loanSetUpDetails.ClickMobileLoanDashboardBtn(); // // click on More Button from Bottom Menu // _loanSetUpDetails.ClickMoreBtn(); // //Logout // _loanSetUpDetails.Logout(); // } // else // { // // Click on Loan Dashboard Button // _loanSetUpDetails.ClickLoanDashboard(); // //Logout // _loanSetUpDetails.Logout(); // } //} //finally //{ // _driver.Quit(); //} #endregion }
public void TC_164_VerifyGovtIncome30_OneSAAC_NL(int loanamout, string strmobiledevice) { strUserType = "NL"; try { _driver = _testengine.TestSetup(strmobiledevice); _homeDetails = new HomeDetails(_driver, "NL"); _loanPurposeDetails = new LoanPurposeDetails(_driver, "NL"); _personalDetails = new PersonalDetails(_driver, "NL"); _bankDetails = new BankDetails(_driver, "NL"); _loanSetUpDetails = new LoanSetUpDetails(_driver, "NL"); //Go to the homepage and click the start application button _homeDetails.HomeDetailsPage(); //Select the loan amount and purpose and click on continue button _loanPurposeDetails.LoanPurposeFunction(loanamout, TestData.POL.Households); //populate the personal details and proceed _personalDetails.PersonalDetailsFunction(); // select Bank Name _bankDetails.SelectBankLst(TestData.BankDetails.Dagbank); // Click on Continue Button _bankDetails.BankSelectContinueBtn(); // Entering Username and Password _bankDetails.EnterBankCredentialsTxt(TestData.BankDetails.OneSAACGovtInc25.Yodlee.UID, TestData.BankDetails.OneSAACGovtInc25.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(); // Verify Other short-term loans and select POL's _bankDetails.SelectPOLExistingSACC(TestData.POL.Households); // Select Have you fully repaid previos loan - "Yes" _bankDetails.SelectFullyRepaidLoanbtn(true); // click on Confirm SACC continue button _bankDetails.ClickConfirmSACCNamesBtn(); // Select Category _bankDetails.SelectIncomecategory(TestData.IncomeCategory.PrimaryIncome, "1"); // 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("0"); // 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(); if (loanamout > 2000) { // enter sms input as OTP if (_bankDetails.VerifySMSOTP()) { _bankDetails.EnterOTPDetailsTxt(TestData.SMSCode); } } // verify final review enabled and process setup functionality _loanSetUpDetails.loanSetupFunction(loanamout, strUserType); } catch (Exception ex) { strMessage += ex.Message; Assert.Fail(ex.Message); } }
public void TC005_RequestedApprovedFundedAmount_NL(int loanamout, string strmobiledevice) { strUserType = "NL"; try { _driver = TestSetup(strmobiledevice); _homeDetails = new HomeDetails(_driver, "NL"); _loanPurposeDetails = new LoanPurposeDetails(_driver, "NL"); _personalDetails = new PersonalDetails(_driver, "NL"); _bankDetails = new BankDetails(_driver, "NL"); _loanSetUpDetails = new LoanSetUpDetails(_driver, "NL"); // Click on Apply Button _homeDetails.ClickApplyBtn(); // Click on Start Your Application Button _homeDetails.ClickStartApplictionBtn(); bool hideshow = _homeDetails.CheckHideShow(); if (hideshow == true) { if (GetPlatform(_driver)) { _loanPurposeDetails.RequestLoanAmountMobile(loanamout, TestData.POL.Eventcosts.Birthdayparty); } else { _loanPurposeDetails.RequestLoanAmount(loanamout, TestData.POL.Eventcosts.Birthdayparty); } } else { // Select Loan Value from Slide bar _loanPurposeDetails.SelectLoanValue(loanamout); //Click on First POL to select _loanPurposeDetails.ClickSelectFirstPurposeBtn(); if (GetPlatform(_driver)) { // Select Purpose of loan _loanPurposeDetails.SelectLoanPurposeMobile(TestData.POL.Eventcosts.Birthdayparty); } else { // Select Purpose of loan _loanPurposeDetails.SelectLoanPurpose(TestData.POL.Eventcosts.Birthdayparty); } // Enter FirstPOLLoan Amount _loanPurposeDetails.EnterFirstPOLAmountTxt(loanamout.ToString()); // Click on Continue Button _loanPurposeDetails.ClickLoanPOLContinueBtn(); } // entering personal details with overwrite values _personalDetails.PopulatePersonalDetails(); // Click on checks out Continue Button _personalDetails.ClickCheckoutContinueBtn(); // select Bank Name _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(); if (loanamout > 2000) { // enter sms input as OTP if (_bankDetails.VerifySMSOTP()) { _bankDetails.EnterOTPDetailsTxt(TestData.SMSCode); } } // Verify ApprovedAmount _loanSetUpDetails.VerifySetUpPageDetails(7, loanamout, loanamout, strUserType); // click on Buton Submit _loanSetUpDetails.ClickSubmitBtn(); // Scrolling the Loan Contract _loanSetUpDetails.Loancontract(); // Confirming accepting contract _loanSetUpDetails.ConfirmAcceptingContract(); // click on I Agree button _loanSetUpDetails.ClickOnAgreeBtn(); // click on No thanks Button _loanSetUpDetails.ClickNothanksBtn(); // Verify Funded Amount Assert.IsTrue(_loanSetUpDetails.VerifyFundedAmount(loanamout), "Expected Requested Amount : " + loanamout + ". Observed Funded Amount : " + _loanSetUpDetails.VerifyFundedAmount()); if (GetPlatform(_driver)) { // Click on To Loan Dashboard Button _loanSetUpDetails.ClickMobileLoanDashboardBtn(); // click on More Button from Bottom Menu _loanSetUpDetails.ClickMoreBtn(); //Logout _loanSetUpDetails.Logout(); } else { // Click on Loan Dashboard Button _loanSetUpDetails.ClickLoanDashboard(); //Logout _loanSetUpDetails.Logout(); } } catch (Exception ex) { strMessage += ex.Message; Assert.Fail(ex.Message); } }
public void TC_129_NoTransactionInsufficientFunds_NL(int loanamout, string strmobiledevice) { strUserType = "NL"; try { _driver = TestSetup(strmobiledevice); _homeDetails = new HomeDetails(_driver, "NL"); _loanPurposeDetails = new LoanPurposeDetails(_driver, "NL"); _personalDetails = new PersonalDetails(_driver, "NL"); _bankDetails = new BankDetails(_driver, "NL"); _loanSetUpDetails = new LoanSetUpDetails(_driver, "NL"); //Go to the homepage and click the start application button _homeDetails.HomeDetailsPage(); //Select the loan amount and purpose and click on continue button _loanPurposeDetails.LoanPurposeFunction(loanamout, TestData.POL.Households); //populate the personal details and proceed _personalDetails.PersonalDetailsFunction(); // select Bank Name _bankDetails.SelectBankLst(TestData.BankDetails.Dagbank); // Click on Continue Button _bankDetails.BankSelectContinueBtn(); // Entering Username and Password _bankDetails.EnterBankCredentialsTxt(TestData.BankDetails.NoTranstFourDays.Yodlee.UID, TestData.BankDetails.NoTranstFourDays.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(); // Choose reason for no transactions bool notrans = _bankDetails.NoTransaction(TestData.NoTransactionReasons.Insufficient); Assert.IsTrue(notrans, "No transaction page not appeared"); // 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(); if (loanamout > 2000) { // enter sms input as OTP if (_bankDetails.VerifySMSOTP()) { _bankDetails.EnterOTPDetailsTxt(TestData.SMSCode); } } // verify final review enabled and process setup functionality _loanSetUpDetails.loanSetupFunction(loanamout, strUserType); } catch (Exception ex) { strMessage += ex.Message; Assert.Fail(ex.Message); } }
public void TC067_VerifyReqAmt_GreaterThn_Approved_NL(int loanamout, string strmobiledevice) { strUserType = "NL"; try { _driver = TestSetup(strmobiledevice, "NL"); _homeDetails = new HomeDetails(_driver, "NL"); _loanPurposeDetails = new LoanPurposeDetails(_driver, "NL"); _personalDetails = new PersonalDetails(_driver, "NL"); _bankDetails = new BankDetails(_driver, "NL"); _loanSetUpDetails = new LoanSetUpDetails(_driver, "NL"); //Go to the homepage and click the start application button _homeDetails.HomeDetailsPage(); //Select the loan amount and purpose and click on continue button _loanPurposeDetails.LoanPurposeFunction(loanamout, TestData.POL.Utilitybills.Onebill); //MoreInformation _loanPurposeDetails.MoreInformation(); //populate the personal details and proceed _personalDetails.PersonalDetailsFunction(); // select Bank Name _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"); // 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(); if (loanamout > 2000) { // enter sms input as OTP if (_bankDetails.VerifySMSOTP()) { _bankDetails.EnterOTPDetailsTxt(TestData.SMSCode); } } //Note: As the scenario does not get lower than requested, hence verifying if the application to manual - Kenan if (GetPlatform(_driver)) { //ClickOn Loan Dashboard...Manual Approval bool flag = _loanSetUpDetails.ClickLoanDashboardManual(); Assert.IsTrue(flag, "Approved amount not less than the requested amount"); } else { //ClickOn Loan Dashboard...Manual Approval bool flag = _loanSetUpDetails.ClickLoanDashboardManual(); Assert.IsTrue(flag, "Approved amount not less than the requested amount"); } } catch (Exception ex) { strMessage += ex.Message; Assert.Fail(ex.Message); } }
public void TC118_Verify_Repay_NL(int loanamout, string strmobiledevice, string minrepay, string maxrepay) { strUserType = "NL"; _driver = _testengine.TestSetup(strmobiledevice); _homeDetails = new HomeDetails(_driver, "NL"); _loanPurposeDetails = new LoanPurposeDetails(_driver, "NL"); _personalDetails = new PersonalDetails(_driver, "NL"); _bankDetails = new BankDetails(_driver, "NL"); _loanSetUpDetails = new LoanSetUpDetails(_driver, "NL"); try { //Go to the homepage and click the start application button _homeDetails.HomeDetailsPage(); //Select the loan amount and purpose and click on continue button _loanPurposeDetails.LoanPurposeFunction(loanamout, TestData.POL.Households); //populate the personal details and proceed _personalDetails.PersonalDetailsFunction(); // select Bank Name _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"); // 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(); if (loanamout > 2000) { // enter sms input as OTP _bankDetails.EnterOTPDetailsTxt(TestData.SMSCode); } _loanSetUpDetails.VerifySetUpPageDetails(7, loanamout, loanamout, strUserType); ////Check the mim repayment amount //Assert.AreEqual(minrepay, _loanSetUpDetails.GetMinRepaymentAmt(), "Minium Repayment is incorrect"); ////Check the mim repayment amount //Assert.AreEqual(maxrepay, _loanSetUpDetails.GetMaxRepaymentAmt(), "Maxium Repayment is incorrect"); // click on Buton Submit _loanSetUpDetails.ClickSubmitBtn(); // Scrolling the Loan Contract _loanSetUpDetails.Loancontract(); // Confirming accepting contract _loanSetUpDetails.ConfirmAcceptingContract(); // click on I Agree button _loanSetUpDetails.ClickOnAgreeBtn(); // click on No thanks Button _loanSetUpDetails.ClickNothanksBtn(); if (GetPlatform(_driver)) { // Click on To Loan Dashboard Button _loanSetUpDetails.ClickMobileLoanDashboardBtn(); // click on More Button from Bottom Menu _loanSetUpDetails.ClickMoreBtn(); //Logout _loanSetUpDetails.Logout(); } else { // Click on Loan Dashboard Button _loanSetUpDetails.ClickLoanDashboard(); //Logout _loanSetUpDetails.Logout(); } } catch (Exception ex) { strMessage += ex.Message; Assert.Fail(ex.Message); } }
public void TC177_Verify_Incorrect_SMS_PIN__NL(int loanamout, string strmobiledevice) { strUserType = "NL"; try { _driver = TestSetup(strmobiledevice); _homeDetails = new HomeDetails(_driver, "NL"); _loanPurposeDetails = new LoanPurposeDetails(_driver, "NL"); _personalDetails = new PersonalDetails(_driver, "NL"); _bankDetails = new BankDetails(_driver, "NL"); _loanSetUpDetails = new LoanSetUpDetails(_driver, "NL"); // Click on Apply Button _homeDetails.ClickApplyBtn(); // Click on Start Your Application Button _homeDetails.ClickStartApplictionBtn(); bool hideshow = _homeDetails.CheckHideShow(); if (hideshow == true) { if (GetPlatform(_driver)) { _loanPurposeDetails.RequestLoanAmountMobile(loanamout, TestData.POL.TravelHoliday.Airline); } else { _loanPurposeDetails.RequestLoanAmount(loanamout, TestData.POL.TravelHoliday.Airline); } } else { // Select Loan Value from Slide bar _loanPurposeDetails.SelectLoanValue(loanamout); //Click on First POL to select _loanPurposeDetails.ClickSelectFirstPurposeBtn(); if (GetPlatform(_driver)) { // Select Purpose of loan _loanPurposeDetails.SelectLoanPurposeMobile(TestData.POL.TravelHoliday.Airline); } else { // Select Purpose of loan _loanPurposeDetails.SelectLoanPurpose(TestData.POL.TravelHoliday.Airline); } // Enter FirstPOLLoan Amount _loanPurposeDetails.EnterFirstPOLAmountTxt(loanamout.ToString()); // Click on Continue Button _loanPurposeDetails.ClickLoanPOLContinueBtn(); } // entering personal details with overwrite values _personalDetails.PopulatePersonalDetails(); // Click on checks out Continue Button _personalDetails.ClickCheckoutContinueBtn(); // select Bank Name _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(); if (loanamout > 2000) { // enter sms input as OTP if (_bankDetails.VerifySMSOTP()) { _bankDetails.EnterOTPDetailsTxt(TestData.InvalidSMSCode); } } //verify Incorrect PIN error message string expectedErrorMsgMobile = "Incorrect PIN. Please try again."; string expectedErrorMsgDesktop = "Incorrect PIN. Please try again"; Thread.Sleep(1000); if (GetPlatform(_driver)) { Assert.AreEqual(_loanSetUpDetails.VerifyIncorrectSMSPin(), expectedErrorMsgMobile); } else { Assert.AreEqual(_loanSetUpDetails.VerifyIncorrectSMSPin(), expectedErrorMsgDesktop); } //Reenter valid SMS PIN _bankDetails.EnterOTPDetailsTxt(TestData.SMSCode); // verify final review enabled and process setup functionality _loanSetUpDetails.loanSetupFunction(loanamout, strUserType); } catch (Exception ex) { strMessage += ex.Message; Assert.Fail(ex.Message); } }
public void TC063_VerifyOOC_Quaterly_II_NooldJob_NL(int loanamout, string strmobiledevice) { strUserType = "NL"; try { _driver = _testengine.TestSetup(strmobiledevice, "NL"); _homeDetails = new HomeDetails(_driver, "NL"); _loanPurposeDetails = new LoanPurposeDetails(_driver, "NL"); _personalDetails = new PersonalDetails(_driver, "NL"); _bankDetails = new BankDetails(_driver, "NL"); _loanSetUpDetails = new LoanSetUpDetails(_driver, "NL"); //Go to the homepage and click the start application button _homeDetails.HomeDetailsPage(); //Select the loan amount and purpose and click on continue button _loanPurposeDetails.LoanPurposeFunction(loanamout, TestData.POL.Households); // entering personal details with overwrite values _personalDetails.PopulatePersonalDetails(); // Click on checks out Continue Button _personalDetails.ClickCheckoutContinueBtn(); // select Bank Name _bankDetails.SelectBankLst(TestData.BankDetails.Dagbank); // Click on Continue Button _bankDetails.BankSelectContinueBtn(); // Entering Username and Password _bankDetails.EnterBankCredentialsTxt(TestData.BankDetails.OOC_II_FNT.Yodlee.UID, TestData.BankDetails.OOC_II_FNT.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, "1"); //Verify Just Checking Option is visisble Assert.IsTrue(_bankDetails.VerifyOOCQuestionText("We've identified that the following transaction is out of cycle."), "OOC income question did not triggered"); //Verify if its is OOC question triggered for the right amount Assert.AreEqual("$1,000.00", _bankDetails.GetOOCTransactionAmountTxt()); //Verify if its is OOC question triggered for the right Date Assert.AreEqual("Salary ABC holdings", _bankDetails.GetOOCTransactionDescriptionTxt()); //Select reason _bankDetails.SelectReasonforOOCquestion("Quarterly bonus"); //Verify II income _bankDetails.SelectJustCheckingDeposit1(TestData.ConfirmIncomeConsistency.No); // Select Category _bankDetails.SelectIncomecategory(TestData.IncomeCategory.PrimaryIncome, "0"); // click on Confirm Income Button _bankDetails.ClickConfirmIncomeBtn(); // 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(); if (loanamout > 2000) { // enter sms input as OTP if (_bankDetails.VerifySMSOTP()) { _bankDetails.EnterOTPDetailsTxt(TestData.SMSCode); } } //Wait for the Loan setup Page //_loanSetUpDetails.WaitForLoanSetUpPage(); bool val = _loanSetUpDetails.loanSetupFunction(loanamout, strUserType); Assert.IsTrue(val, "Requested, Apporved and Funded Amount are not the Same"); } catch (Exception ex) { strMessage += ex.Message; Assert.Fail(ex.Message); } }
public void TC063_VerifyOOC_Quaterly_II_NooldJob_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"); //Go to the homepage and click the start application button and then the Request money button _homeDetails.homeFunctions_RL(TestData.RandomPassword, loanamout, TestData.ClientType.NewProduct, TestData.Feature.NewProductAdvancePaidClean); //Select the loan amount and purpose and click on continue button _loanPurposeDetails.LoanPurposeFunction_RL(loanamout, TestData.POL.Households); //Edit the personal details and change the Rmsrv Code _personalDetails.PersonalDetailsFunction_RL(TestData.YourEmployementStatus.FullTime, TestData.ReturnerLoaner, TestData.OverrideCodes.PassAll_RL); // select Bank Name _bankDetails.SelectBankLst(TestData.BankDetails.Dagbank); // Click on Continue Button _bankDetails.BankSelectContinueBtn(); // Entering Username and Password _bankDetails.EnterBankCredentialsTxt(TestData.BankDetails.OOC_II_FNT.Yodlee.UID, TestData.BankDetails.OOC_II_FNT.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, "1"); //Verify Just Checking Option is visisble Assert.IsTrue(_bankDetails.VerifyOOCQuestionText("We've identified that the following transaction is out of cycle."), "OOC income question did not triggered"); //Verify if its is OOC question triggered for the right amount Assert.AreEqual("$1,000.00", _bankDetails.GetOOCTransactionAmountTxt()); //Verify if its is OOC question triggered for the right Date Assert.AreEqual("Salary ABC holdings", _bankDetails.GetOOCTransactionDescriptionTxt()); //Select reason _bankDetails.SelectReasonforOOCquestion("Quarterly bonus"); //Verify II income _bankDetails.SelectJustCheckingDeposit1(TestData.ConfirmIncomeConsistency.No); // Select Category _bankDetails.SelectIncomecategory(TestData.IncomeCategory.PrimaryIncome, "0"); // click on Confirm Income Button _bankDetails.ClickConfirmIncomeBtn(); // 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(); #region commented old scenario //// Verify ApprovedAmount //Assert.IsTrue(_loanSetUpDetails.VerifyApprovedLoan(loanamout), "Expected Requested Amount : " + loanamout + ". Observed Approved Amount : " + _loanSetUpDetails.GetApprovedamount()); //if (GetPlatform(_driver)) //{ // // click on Button Submit // _bankDetails.ClickSubmitBtn(); // // Click on Bank Account to transfer // _bankDetails.ClicksixtyMinuteButton(); // // click on sublit-payment Button // _bankDetails.ClickSubmitPaymentButton(); //} //else //{ // // Click on Bank Account to transfer // _bankDetails.ClicksixtyMinuteButton(); // // click on Buton Submit // _bankDetails.ClickSubmitBtn(); //} #endregion _loanSetUpDetails.loanSetupFunction(loanamout, strUserType); } catch (Exception ex) { strMessage += ex.Message; Assert.Fail(ex.Message); } }
public void TC122_VerifyingHasSACCNo_RePayNo_UptoDateYes_NimblePay_No_NL(int loanamout, string strmobiledevice) { strUserType = "NL"; try { _driver = _testengine.TestSetup(strmobiledevice); _homeDetails = new HomeDetails(_driver, "NL"); _loanPurposeDetails = new LoanPurposeDetails(_driver, "NL"); _personalDetails = new PersonalDetails(_driver, "NL"); _bankDetails = new BankDetails(_driver, "NL"); _loanSetUpDetails = new LoanSetUpDetails(_driver, "NL"); // Click on Apply Button _homeDetails.ClickApplyBtn(); // Click on Start Your Application Button _homeDetails.ClickStartApplictionBtn(); bool hideshow = _homeDetails.CheckHideShow(); if (hideshow == true) { if (GetPlatform(_driver)) { _loanPurposeDetails.RequestLoanAmountMobile(loanamout, TestData.POL.Eventcosts.Anniversary); } else { _loanPurposeDetails.RequestLoanAmount(loanamout, TestData.POL.Eventcosts.Anniversary); } } else { // Select Loan Value from Slide bar _loanPurposeDetails.SelectLoanValue(loanamout); //Click on First POL to select _loanPurposeDetails.ClickSelectFirstPurposeBtn(); if (GetPlatform(_driver)) { // Select Purpose of loan _loanPurposeDetails.SelectLoanPurposeMobile(TestData.POL.Eventcosts.Anniversary); } else { // Select Purpose of loan _loanPurposeDetails.SelectLoanPurpose(TestData.POL.Eventcosts.Anniversary); } // Enter FirstPOLLoan Amount _loanPurposeDetails.EnterFirstPOLAmountTxt(loanamout.ToString()); // Click on Continue Button _loanPurposeDetails.ClickLoanPOLContinueBtn(); } // entering personal details with overwrite values PersonalDetailsDataObj _obj = new PersonalDetailsDataObj(); _obj.Have2SACCLoan = "No"; //_personalDetails.PopulatePersonalDetails(); _personalDetails.PopulatePersonalDetails(_obj); // Click on checks out Continue Button _personalDetails.ClickCheckoutContinueBtn(); // select Bank Name _bankDetails.SelectBankLst(TestData.BankDetails.Dagbank); // Click on Continue Button _bankDetails.BankSelectContinueBtn(); // Entering Username and Password _bankDetails.EnterBankCredentialsTxt(TestData.BankDetails.TwoOrmoreSACCLoans.Yodlee.UID, TestData.BankDetails.TwoOrmoreSACCLoans.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(); // Verify Other short-term loans and select POL's _bankDetails.SelectPOLExistingSACC(TestData.POL.Households, TestData.POL.EducationFees); // Select Have you fully repaid previos loan - "No" _bankDetails.SelectFullyRepaidLoanbtn(false); //Select are you uptodate with repayment- "Yes" _bankDetails.SelectAreyouUpdatewithLoanBtn(true); //Select To use any of this Nimble loan to make these repayments - "NO" _bankDetails.SelectUseNimbletoRepayLoanBtn(false); // click on Confirm SACC continue button _bankDetails.ClickConfirmSACCNamesBtn(); // 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(); if (loanamout > 2000) { // enter sms input as OTP if (_bankDetails.VerifySMSOTP()) { _bankDetails.EnterOTPDetailsTxt(TestData.SMSCode); } } // if (loanamout > 2000 && FinalReviewEnabled == "true") if ((loanamout > 2000 && FinalReviewEnabled == "true") && (strUserType == FinalReviewLoanType || FinalReviewLoanType == "ALL")) { if (GetPlatform(_driver)) { //ClickOn Loan Dashboard...Manual Approval _loanSetUpDetails.ClickLoanDashboardManual(); // click on More Button from Bottom Menu _loanSetUpDetails.ClickMoreBtn(); // click on Approve button _loanSetUpDetails.ClickApproveBtn(); //Click Setup Button _bankDetails.ClickSetup(); // click on Buton Submit _loanSetUpDetails.ClickSubmitBtn(); } else { //ClickOn Loan Dashboard...Manual Approval _loanSetUpDetails.ClickLoanDashboardManual(); //click on Final Approve _loanSetUpDetails.FinalApprove(); //Click Setup Button _bankDetails.ClickSetup(); // click on Buton Submit _loanSetUpDetails.ClickSubmitBtn(); } } else { // click on Buton Submit _loanSetUpDetails.ClickSubmitBtn(); } // Select Reason for Spend Less bool ReasonPageExists = _loanSetUpDetails.FindandselectSpendless(); if (ReasonPageExists == true) { _loanSetUpDetails.SelectReasontospendLess(TestData.ReasonforspeandLess.cheaperproduct); } // Scrolling the Loan Contract _loanSetUpDetails.Loancontract(); // Confirming accepting contract _loanSetUpDetails.ConfirmAcceptingContract(); // click on I Agree button _loanSetUpDetails.ClickOnAgreeBtn(); // click on No thanks Button _loanSetUpDetails.ClickNothanksBtn(); if (GetPlatform(_driver)) { // Click on To Loan Dashboard Button _loanSetUpDetails.ClickMobileLoanDashboardBtn(); // click on More Button from Bottom Menu _loanSetUpDetails.ClickMoreBtn(); //Logout _loanSetUpDetails.Logout(); } else { // Click on Loan Dashboard Button _loanSetUpDetails.ClickLoanDashboard(); //Logout _loanSetUpDetails.Logout(); } } catch (Exception ex) { strMessage += ex.Message; Assert.Fail(ex.Message); } }
public void TC122_VerifyingHasSACCNo_RePayNo_UptoDateYes_NimblePay_No_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 with existing user _homeDetails.LoginExistingUser(TestData.RandomPassword, loanamout, TestData.ClientType.NewProduct, TestData.Feature.NewProductAdvancePaidClean); // Click on Request Money Button _homeDetails.ClickRequestMoneyBtn(); //Click on Start Application Button _homeDetails.ClickExistinguserStartApplictionBtn(); //Click on Select First POL Lst _loanPurposeDetails.ClickSelectFirstPurposeBtn(); // Select Purpose of loan _loanPurposeDetails.SelectLoanPurposeRL(TestData.POL.Eventcosts.Birthdayparty); // Select Loan Value from Slide bar _loanPurposeDetails.SelectLoanValueRL(loanamout); // Enter FirstPOLLoan Amount _loanPurposeDetails.EnterFirstPOLAmountTxt(loanamout.ToString()); // Click on Continue Button _loanPurposeDetails.ClickLoanPOLContinueBtnRL(); // select Employement Status _personalDetails.SelectEmploymentStatusLst(TestData.YourEmployementStatus.FullTime); // select short term loans value as NO _personalDetails.ClickNoShortTermLoanStatusBtn(); // Check Read Privacy and Electronic Authorisation _personalDetails.CheckReadPrivacyBtn(TestData.ReturnerLoaner); // Check Read Credit Guide _personalDetails.CheckReadCreditBtn(TestData.ReturnerLoaner); if (GetPlatform(_driver)) { // Click on Personal Details Continue Button _personalDetails.ClickPersonaldetailsContinueBtnRLMobile(); } else { // Click on Personal Details Continue Button _personalDetails.ClickPersonaldetailsRequestBtnRLDesktop(); // Click on checks out Continue Button _personalDetails.ClickAutomaticVerificationBtn(); } // select Bank Name _bankDetails.SelectBankLst(TestData.BankDetails.Dagbank); // Click on Continue Button _bankDetails.BankSelectContinueBtn(); // Entering Username and Password _bankDetails.EnterBankCredentialsTxt(TestData.BankDetails.TwoOrmoreSACCLoans.Yodlee.UID, TestData.BankDetails.TwoOrmoreSACCLoans.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(); // Verify Other short-term loans and select POL's _bankDetails.SelectPOLExistingSACC(TestData.POL.Households, TestData.POL.EducationFees); // Select Have you fully repaid previos loan - "No" _bankDetails.SelectFullyRepaidLoanbtn(false); //Select are you uptodate with repayment- "Yes" _bankDetails.SelectAreyouUpdatewithLoanBtn(true); //Select To use any of this Nimble loan to make these repayments - "NO" _bankDetails.SelectUseNimbletoRepayLoanBtn(false); // click on Confirm SACC continue button _bankDetails.ClickConfirmSACCNamesBtn(); // 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(); if ((loanamout > 2000 && FinalReviewEnabled == "true") && (strUserType == FinalReviewLoanType || FinalReviewLoanType == "ALL")) { if (GetPlatform(_driver)) { //ClickOn Loan Dashboard...Manual Approval _loanSetUpDetails.ClickLoanDashboardManual(); // click on More Button from Bottom Menu _loanSetUpDetails.ClickMoreBtn(); // click on Approve button _loanSetUpDetails.ClickApproveBtn(); //Click Setup Button _bankDetails.ClickSetup(); // click on Buton Submit _loanSetUpDetails.ClickSubmitBtn(); } else { //ClickOn Loan Dashboard...Manual Approval _loanSetUpDetails.ClickLoanDashboardManual(); //click on Final Approve _loanSetUpDetails.FinalApprove(); //Click Setup Button _bankDetails.ClickSetup(); // click on Buton Submit _loanSetUpDetails.ClickSubmitBtn(); } } else { // click on Buton Submit _loanSetUpDetails.ClickSubmitBtn(); } // Select Reason for Spend Less bool ReasonPageExists = _loanSetUpDetails.FindandselectSpendless(); if (ReasonPageExists == true) { _loanSetUpDetails.SelectReasontospendLess(TestData.ReasonforspeandLess.cheaperproduct); } // Scrolling the Loan Contract _loanSetUpDetails.Loancontract(); // Confirming accepting contract _loanSetUpDetails.ConfirmAcceptingContract(); // click on I Agree button _loanSetUpDetails.ClickOnAgreeBtn(); // click on No thanks Button _loanSetUpDetails.ClickNothanksBtn(); if (GetPlatform(_driver)) { // Click on To Loan Dashboard Button _loanSetUpDetails.ClickMobileLoanDashboardBtn(); // click on More Button from Bottom Menu _loanSetUpDetails.ClickMoreBtn(); //Logout _loanSetUpDetails.Logout(); } else { // Click on Loan Dashboard Button _loanSetUpDetails.ClickLoanDashboard(); //Logout _loanSetUpDetails.Logout(); } } catch (Exception ex) { strMessage += ex.Message; Assert.Fail(ex.Message); } }
public void TC140_YourExpenses_NoRent_LivingWithFamily_NL(int loanamout, string strmobiledevice) { strUserType = "NL"; try { _driver = _testengine.TestSetup(strmobiledevice); _homeDetails = new HomeDetails(_driver, "NL"); _loanPurposeDetails = new LoanPurposeDetails(_driver, "NL"); _personalDetails = new PersonalDetails(_driver, "NL"); _bankDetails = new BankDetails(_driver, "NL"); _loanSetUpDetails = new LoanSetUpDetails(_driver, "NL"); // Home page _homeDetails.HomeDetailsPage(); // Purpose of Loan page _loanPurposeDetails.LoanPurposeFunction(loanamout, TestData.POL.Households); // Personal Details page _personalDetails.PersonalDetailsFunction(); // Bank 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 - set rent to $0, select Living With Family/Friends as a response _bankDetails.SelectOtherDebtRepaymentsOptionBtn(); _bankDetails.SelectDependantsLst(TestData.Dependents.Zero); _bankDetails.EnterExpenseMortgageTxt("0"); _bankDetails.SelectExpenseNoRentLst("Living with a family/friend"); _bankDetails.ClickConfirmExpensesBtn(); // Your Summary page _bankDetails.ClickNoGovtBenefitsbtn(); _bankDetails.ClickAgreeAppSubmitBtn(); _bankDetails.ClickConfirmSummaryBtn(); // SMS Pin page (if applicable) if (loanamout > 2000) { // enter sms input as OTP if (_bankDetails.VerifySMSOTP()) { _bankDetails.EnterOTPDetailsTxt(TestData.SMSCode); } } // verify final review enabled and process setup functionality _loanSetUpDetails.loanSetupFunction(loanamout, strUserType); } catch (Exception ex) { strMessage += ex.Message; Assert.Fail(ex.Message); } }
public void TC118_Verify_Repay_RL(int loanamout, string strmobiledevice, string minrepay, string maxrepay) { strUserType = "RL"; _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"); try { //Go to the homepage and click the start application button and then the Request money button _homeDetails.homeFunctions_RL(TestData.RandomPassword, loanamout, TestData.ClientType.NewProduct, TestData.Feature.NewProductAdvancePaidClean); //Select the loan amount and purpose and click on continue button _loanPurposeDetails.LoanPurposeFunction_RL(loanamout, TestData.POL.Insurance); //Edit the personal details and change the Rmsrv Code _personalDetails.PersonalDetailsFunction_RL(TestData.YourEmployementStatus.FullTime, TestData.ReturnerLoaner, TestData.OverrideCodes.PassAll_RL); // select Bank Name _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(); _loanSetUpDetails.VerifySetUpPageDetails(7, loanamout, loanamout, strUserType); ////Check the mim repayment amount //Assert.AreEqual(minrepay, _loanSetUpDetails.GetMinRepaymentAmt(), "Minium Repayment is incorrect"); ////Check the mim repayment amount //Assert.AreEqual(maxrepay, _loanSetUpDetails.GetMaxRepaymentAmt(), "Maxium Repayment is incorrect"); if (GetPlatform(_driver)) { // click on Button Submit _loanSetUpDetails.ClickSubmitBtn(); // Click on Bank Account to transfer _bankDetails.ClicksixtyMinuteButton(); // click on sublit-payment Button _bankDetails.ClickSubmitPaymentButton(); } else { // Click on Bank Account to transfer _bankDetails.ClicksixtyMinuteButton(); // click on Buton Submit _loanSetUpDetails.ClickSubmitBtn(); } // Scrolling the Loan Contract _loanSetUpDetails.Loancontract(); // Confirming accepting contract _loanSetUpDetails.ConfirmAcceptingContract(); // click on I Agree button _loanSetUpDetails.ClickOnAgreeBtn(); // click on No thanks Button _loanSetUpDetails.ClickNothanksBtn(); if (GetPlatform(_driver)) { // Click on To Loan Dashboard Button _loanSetUpDetails.ClickMobileLoanDashboardBtn(); // click on More Button from Bottom Menu _loanSetUpDetails.ClickMoreBtn(); //Logout _loanSetUpDetails.Logout(); } else { // Click on Loan Dashboard Button _loanSetUpDetails.ClickLoanDashboard(); //Logout _loanSetUpDetails.Logout(); } } catch (Exception ex) { strMessage += ex.Message; Assert.Fail(ex.Message); } }
public void TC075_VerifyHighIncome_LowEx_RL(int loanamout, string strmobiledevice) { strUserType = "RL"; try { _driver = 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"); //Go to the homepage and click the start application button and then the Request money button _homeDetails.homeFunctions_RL(TestData.RandomPassword, loanamout, TestData.ClientType.NewProduct, TestData.Feature.NewProductAdvancePaidClean); //Select the loan amount and purpose and click on continue button _loanPurposeDetails.LoanPurposeFunction_RL(loanamout, TestData.POL.Households); //Edit the personal details and change the Rmsrv Code _personalDetails.PersonalDetailsFunction_RL(TestData.YourEmployementStatus.FullTime, TestData.ReturnerLoaner, TestData.OverrideCodes.PassAll_RL); // select Bank Name _bankDetails.SelectBankLst(TestData.BankDetails.Dagbank); // Click on Continue Button _bankDetails.BankSelectContinueBtn(); // Entering Username and Password _bankDetails.EnterBankCredentialsTxt(TestData.BankDetails.HighIncome.Yodlee.UID, TestData.BankDetails.HighIncome.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"); // 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(); //Note:Due to high income and low expenses,the application goes to manual approval. if (GetPlatform(_driver)) { //ClickOn Loan Dashboard...Manual Approval bool flag = _loanSetUpDetails.ClickLoanDashboardManual(); Assert.IsTrue(flag, "Application unable to move to manual approval"); } else { //ClickOn Loan Dashboard...Manual Approval bool flag = _loanSetUpDetails.ClickLoanDashboardManual(); Assert.IsTrue(flag, "Application unable to move to manual approval"); } } catch (Exception ex) { strMessage += ex.Message; Assert.Fail(ex.Message); } }
public void TC067_VerifyReqAmt_GreaterThn_Approved_RL(int loanamout, string strmobiledevice) { strUserType = "RL"; try { _driver = 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"); //Go to the homepage and click the start application button and then the Request money button _homeDetails.homeFunctions_RL(TestData.RandomPassword, loanamout, TestData.ClientType.NewProduct, TestData.Feature.ReturnerDagBankstaging); //Select the loan amount and purpose and click on continue button _loanPurposeDetails.LoanPurposeFunction_RL(loanamout, TestData.POL.Utilitybills.Onebill); //MoreInformation _loanPurposeDetails.MoreInformation(); //Edit the personal details and change the Rmsrv Code _personalDetails.PersonalDetailsFunction_Skipbanklogin(TestData.YourEmployementStatus.FullTime, TestData.ReturnerLoaner, TestData.OverrideCodes.PassAll_NL); // select Bank Name _bankDetails.SelectBankLst(TestData.BankDetails.Dagbank); // Click on Continue Button _bankDetails.BankSelectContinueBtn(); if (bsAutoRefresh) { // 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(); // Choose reason for no transactions //bool notrans = _bankDetails.NoTransaction(TestData.NoTransactionReasons.Usingcash); //Assert.IsTrue(notrans, "Notransaction page not appeared"); // Select Category _bankDetails.SelectIncomecategory(TestData.IncomeCategory.PrimaryIncome, "0"); // 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(); //Note: As the scenario does not get lower than requested, hence verifying if the application to manual - Kenan if (GetPlatform(_driver)) { //ClickOn Loan Dashboard...Manual Approval bool flag = _loanSetUpDetails.ClickLoanDashboardManual(); Assert.IsTrue(flag, "Approved amount not less than the requested amount"); } else { //ClickOn Loan Dashboard...Manual Approval bool flag = _loanSetUpDetails.ClickLoanDashboardManual(); Assert.IsTrue(flag, "Approved amount not less than the requested amount"); } #region old code // Set Up Loan page //if ((loanamout > 2000 && FinalReviewEnabled == "true") && (strUserType == FinalReviewLoanType || FinalReviewLoanType == "ALL")) //{ // if (GetPlatform(_driver)) // { // //ClickOn Loan Dashboard...Manual Approval // _loanSetUpDetails.ClickLoanDashboardManual(); // // click on More Button from Bottom Menu // _loanSetUpDetails.ClickMoreBtn(); // // click on Approve button // _loanSetUpDetails.ClickApproveBtn(); // //Click Setup Button // _loanSetUpDetails.ClickSetup(); // } // else // { // //ClickOn Loan Dashboard...Manual Approval // _loanSetUpDetails.ClickLoanDashboardManual(); // //ClickLoanDashboard(); // //click on Final Approve // _loanSetUpDetails.FinalApprove(); // //Click Setup Button // _loanSetUpDetails.ClickSetup(); // } //} ////Get the approved loan amount value //int approvedAmount = _loanSetUpDetails.GetApprovedamount(); //// Verify ApprovedAmount //Assert.Greater(loanamout, _loanSetUpDetails.GetApprovedamount(), "Approved amount not less than requested amount"); ////Reduce the approved loan value //_loanSetUpDetails.MoveLoanValueSlider(); //if (GetPlatform(_driver)) //{ // // click on Button Submit // _loanSetUpDetails.ClickSubmitBtn(); // // Click on Bank Account to transfer // _bankDetails.ClicksixtyMinuteButton(); // // click on sublit-payment Button // _bankDetails.ClickSubmitPaymentButton(); //} //else //{ // // Click on Bank Account to transfer // _bankDetails.ClicksixtyMinuteButton(); // // click on Buton Submit // _loanSetUpDetails.ClickSubmitBtn(); //} //// Select Reason for Spend Less //bool ReasonPageExists = _loanSetUpDetails.FindandselectSpendless(); //if (ReasonPageExists == true) //{ // _loanSetUpDetails.SelectReasontospendLess(TestData.ReasonforspeandLess.cheaperservice); //} //// Scrolling the Loan Contract //_loanSetUpDetails.Loancontract(); //// Confirming accepting contract //_loanSetUpDetails.ConfirmAcceptingContract(); //// click on I Agree button //_loanSetUpDetails.ClickOnAgreeBtn(); //// click on No thanks Button //_loanSetUpDetails.ClickNothanksBtn(); //// Verify Funded Amount ////Assert.IsTrue(_loanSetUpDetails.VerifyApprovedGreaterThanFunded(approvedAmount, _loanSetUpDetails.VerifyFundedAmount()), "Expected approved Amount : " + approvedAmount + ". Observed Funded Amount : " + _loanSetUpDetails.VerifyFundedAmount()); //Assert.Greater(approvedAmount, _loanSetUpDetails.VerifyFundedAmount(), "Aprroved amount not greater than funded amount"); //if (GetPlatform(_driver)) //{ // // Click on To Loan Dashboard Button // _loanSetUpDetails.ClickMobileLoanDashboardBtn(); // // click on More Button from Bottom Menu // _loanSetUpDetails.ClickMoreBtn(); // //Logout // _loanSetUpDetails.Logout(); //} //else //{ // // Click on Loan Dashboard Button // _loanSetUpDetails.ClickLoanDashboard(); // //Logout // _loanSetUpDetails.Logout(); //} #endregion } catch (Exception ex) { strMessage += ex.Message; Assert.Fail(ex.Message); } }
public void TC_169_Verify_Monthly_BankStatement(int loanamout, string strmobiledevice) { strUserType = "NL"; try { _driver = _testengine.TestSetup(strmobiledevice); _homeDetails = new HomeDetails(_driver, "NL"); _loanPurposeDetails = new LoanPurposeDetails(_driver, "NL"); _personalDetails = new PersonalDetails(_driver, "NL"); _bankDetails = new BankDetails(_driver, "NL"); _loanSetUpDetails = new LoanSetUpDetails(_driver, "NL"); //Go to the homepage and click the start application button _homeDetails.HomeDetailsPage(); //Select the loan amount and purpose and click on continue button _loanPurposeDetails.LoanPurposeFunction(loanamout, TestData.POL.Households); PersonalDetailsDataObj _obj = new PersonalDetailsDataObj(); _obj.StreetName = "At:N Cr:A Id:100 Rr1:A Rr2:A Rr3:A Bsp:Y Rmsrv:1"; //populate the personal details and proceed _personalDetails.PopulatePersonalDetails(_obj); // Click on checks out Continue Button _personalDetails.ClickCheckoutContinueBtn(); // select Bank Name _bankDetails.SelectBankLst(TestData.BankDetails.Dagbank); // Click on Continue Button _bankDetails.BankSelectContinueBtn(); // Entering Username and Password _bankDetails.EnterBankCredentialsTxt(TestData.BankDetails.Monthly.Yodlee.UID, TestData.BankDetails.Monthly.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(); if (loanamout > 2000) { // enter sms input as OTP if (_bankDetails.VerifySMSOTP()) { _bankDetails.EnterOTPDetailsTxt(TestData.SMSCode); } } // verify final review enabled and process setup functionality _loanSetUpDetails.loanSetupFunction(loanamout, strUserType); } catch (Exception ex) { Assert.Fail(ex.Message); strMessage += ex.Message; } }
public void TC_129_NoTransactionInsufficientFunds_RL(int loanamout, string strmobiledevice) { strUserType = "RL"; try { _driver = 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"); //Go to the homepage and click the start application button and then the Request money button _homeDetails.homeFunctions_RL(TestData.RandomPassword, loanamout, TestData.ClientType.NewProduct, TestData.Feature.NewProductAdvancePaidClean); //Select the loan amount and purpose and click on continue button _loanPurposeDetails.LoanPurposeFunction_RL(loanamout, TestData.POL.Households); //Edit the personal details and change the Rmsrv Code _personalDetails.PersonalDetailsFunction_RL(TestData.YourEmployementStatus.FullTime, TestData.ReturnerLoaner, TestData.OverrideCodes.PassAll_RL); // select Bank Name _bankDetails.SelectBankLst(TestData.BankDetails.Dagbank); // Click on Continue Button _bankDetails.BankSelectContinueBtn(); // Entering Username and Password _bankDetails.EnterBankCredentialsTxt(TestData.BankDetails.NoTranstFourDays.Yodlee.UID, TestData.BankDetails.NoTranstFourDays.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(); // Choose reason for no transactions bool notrans = _bankDetails.NoTransaction(TestData.NoTransactionReasons.Insufficient); Assert.IsTrue(notrans, "Notransaction page not appeared"); // 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(); // verify final review enabled and process setup functionality _loanSetUpDetails.loanSetupFunction(loanamout, strUserType); #region oldcode ////_loanSetUpDetails.WaitForLoanSetUpPage(); //if (GetPlatform(_driver)) //{ // // click on Button Submit // _loanSetUpDetails.ClickSubmitBtn(); // // Click on Bank Account to transfer // _bankDetails.ClicksixtyMinuteButton(); // // click on sublit-payment Button // _bankDetails.ClickSubmitPaymentButton(); //} //else //{ // // Click on Bank Account to transfer // _bankDetails.ClicksixtyMinuteButton(); // // click on Buton Submit // _loanSetUpDetails.ClickSubmitBtn(); //} //// Scrolling the Loan Contract //_loanSetUpDetails.Loancontract(); //// Confirming accepting contract //_loanSetUpDetails.ConfirmAcceptingContract(); //// click on I Agree button //_loanSetUpDetails.ClickOnAgreeBtn(); //// click on No thanks Button //_loanSetUpDetails.ClickNothanksBtn(); //if (GetPlatform(_driver)) //{ // // Click on To Loan Dashboard Button // _loanSetUpDetails.ClickMobileLoanDashboardBtn(); // // click on More Button from Bottom Menu // _loanSetUpDetails.ClickMoreBtn(); // //Logout // _loanSetUpDetails.Logout(); //} //else //{ // // Click on Loan Dashboard Button // _loanSetUpDetails.ClickLoanDashboard(); // //Logout // _loanSetUpDetails.Logout(); //} #endregion } catch (Exception ex) { strMessage += ex.Message; Assert.Fail(ex.Message); } }
public void TC088_VerifyLoanWith7IncomeCatg_EditExpense_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"); //Go to the homepage and click the start application button and then the Request money button _homeDetails.homeFunctions_RL(TestData.RandomPassword, loanamout, TestData.ClientType.NewProduct, TestData.Feature.NewProductAdvancePaidClean); //Select the loan amount and purpose and click on continue button _loanPurposeDetails.LoanPurposeFunction_RL(loanamout, TestData.POL.Households); string streetname = "At:N Cr:A Id:100 Rr1:A Rr2:A Rr3:A Rr:A Rt:8 Rmsrv:0.9999"; //Edit the personal details and change the Rmsrv Code _personalDetails.PersonalDetailsFunction_RL(TestData.YourEmployementStatus.FullTime, TestData.ReturnerLoaner, streetname); // select Bank Name _bankDetails.SelectBankLst(TestData.BankDetails.Dagbank); // Click on Continue Button _bankDetails.BankSelectContinueBtn(); // Entering Username and Password _bankDetails.EnterBankCredentialsTxt(TestData.BankDetails.Seven7IncomeCategories.Yodlee.UID, TestData.BankDetails.Seven7IncomeCategories.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.SelectSevenIncome(TestData.IncomeCategory.PrimaryIncome, TestData.IncomeCategory.NotIncome, TestData.IncomeCategory.OtherEmployment, TestData.IncomeCategory.PartnerSalary, TestData.IncomeCategory.SharedRentUtilities, TestData.IncomeCategory.ChildSupport, TestData.IncomeCategory.InvestmentIncome); _bankDetails.SelectIncomecategory(TestData.IncomeCategory.PrimaryIncome, "6"); _bankDetails.SelectIncomecategory(TestData.IncomeCategory.NotIncome, "5"); _bankDetails.SelectIncomecategory(TestData.IncomeCategory.OtherEmployment, "4"); _bankDetails.SelectIncomecategory(TestData.IncomeCategory.PartnerSalary, "3"); _bankDetails.SelectIncomecategory(TestData.IncomeCategory.SharedRentUtilities, "2"); _bankDetails.SelectIncomecategory(TestData.IncomeCategory.ChildSupport, "1"); _bankDetails.SelectIncomecategory(TestData.IncomeCategory.InvestmentIncome, "0"); // 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(); //click on Edit Expenses button _bankDetails.ClickEditExpenses(); //Edit Expenses _bankDetails.EditExpenses(); // 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(); // verify final review enabled and process setup functionality _loanSetUpDetails.loanSetupFunction(loanamout, strUserType); } catch (Exception ex) { strMessage += ex.Message; Assert.Fail(ex.Message); } }
public void TC005_RequestedApprovedFundedAmount_RL(int loanamout, string strmobiledevice) { strUserType = "RL"; try { _driver = 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 with existing user _homeDetails.LoginExistingUser(TestData.RandomPassword, loanamout, TestData.ClientType.NewProduct, TestData.Feature.NewProductAdvancePaidClean); // Click on Request Money Button _homeDetails.ClickRequestMoneyBtn(); //Click on Start Application Button _homeDetails.ClickExistinguserStartApplictionBtn(); // Select Loan Value from Slide bar _loanPurposeDetails.SelectLoanValueRL(loanamout); //Click on Select First POL Lst _loanPurposeDetails.ClickSelectFirstPurposeBtn(); // Select Purpose of loan _loanPurposeDetails.SelectLoanPurposeRL(TestData.POL.Eventcosts.Birthdayparty); // Enter FirstPOLLoan Amount _loanPurposeDetails.EnterFirstPOLAmountTxt(loanamout.ToString()); // Click on Continue Button _loanPurposeDetails.ClickLoanPOLContinueBtnRL(); // select Employement Status _personalDetails.SelectEmploymentStatusLst(TestData.YourEmployementStatus.FullTime); // select short term loans value as NO _personalDetails.ClickNoShortTermLoanStatusBtn(); // Check Read Privacy and Electronic Authorisation _personalDetails.CheckReadPrivacyBtn(TestData.ReturnerLoaner); // Check Read Credit Guide _personalDetails.CheckReadCreditBtn(TestData.ReturnerLoaner); if (GetPlatform(_driver)) { // Click on Personal Details Continue Button _personalDetails.ClickPersonaldetailsContinueBtnRLMobile(); } else { // Click on Personal Details Continue Button _personalDetails.ClickPersonaldetailsRequestBtnRLDesktop(); // Click on checks out Continue Button _personalDetails.ClickAutomaticVerificationBtn(); } // select Bank Name _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(); // Verify ApprovedAmount _loanSetUpDetails.VerifySetUpPageDetails(7, loanamout, loanamout, strUserType); // click on Buton Submit _loanSetUpDetails.ClickSubmitBtn(); // Scrolling the Loan Contract _loanSetUpDetails.Loancontract(); // Confirming accepting contract _loanSetUpDetails.ConfirmAcceptingContract(); // click on I Agree button _loanSetUpDetails.ClickOnAgreeBtn(); // click on No thanks Button _loanSetUpDetails.ClickNothanksBtn(); // Verify Funded Amount Assert.IsTrue(_loanSetUpDetails.VerifyFundedAmount(loanamout), "Expected Requested Amount : " + loanamout + ". Observed Funded Amount : " + _loanSetUpDetails.VerifyFundedAmount()); if (GetPlatform(_driver)) { // Click on To Loan Dashboard Button _loanSetUpDetails.ClickMobileLoanDashboardBtn(); // click on More Button from Bottom Menu _loanSetUpDetails.ClickMoreBtn(); //Logout _loanSetUpDetails.Logout(); } else { // Click on Loan Dashboard Button _loanSetUpDetails.ClickLoanDashboard(); //Logout _loanSetUpDetails.Logout(); } } catch (Exception ex) { strMessage += ex.Message; Assert.Fail(ex.Message); } }
public void TC088_VerifyLoanWith7IncomeCatg_EditExpense_NL(int loanamout, string strmobiledevice) { strUserType = "NL"; try { _driver = _testengine.TestSetup(strmobiledevice); _homeDetails = new HomeDetails(_driver, "NL"); _loanPurposeDetails = new LoanPurposeDetails(_driver, "NL"); _personalDetails = new PersonalDetails(_driver, "NL"); _bankDetails = new BankDetails(_driver, "NL"); _loanSetUpDetails = new LoanSetUpDetails(_driver, "NL"); //Go to the homepage and click the start application button _homeDetails.HomeDetailsPage(); //Select the loan amount and purpose and click on continue button _loanPurposeDetails.LoanPurposeFunction(loanamout, TestData.POL.Households); //populate the personal details and proceed _personalDetails.PersonalDetailsFunction(); // select Bank Name _bankDetails.SelectBankLst(TestData.BankDetails.Dagbank); // Click on Continue Button _bankDetails.BankSelectContinueBtn(); // Entering Username and Password _bankDetails.EnterBankCredentialsTxt(TestData.BankDetails.Seven7IncomeCategories.Yodlee.UID, TestData.BankDetails.Seven7IncomeCategories.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.SelectSevenIncome(TestData.IncomeCategory.PrimaryIncome, TestData.IncomeCategory.NotIncome, TestData.IncomeCategory.OtherEmployment, TestData.IncomeCategory.PartnerSalary, TestData.IncomeCategory.SharedRentUtilities, TestData.IncomeCategory.ChildSupport, TestData.IncomeCategory.InvestmentIncome); _bankDetails.SelectIncomecategory(TestData.IncomeCategory.PrimaryIncome, "6"); _bankDetails.SelectIncomecategory(TestData.IncomeCategory.NotIncome, "5"); _bankDetails.SelectIncomecategory(TestData.IncomeCategory.OtherEmployment, "4"); _bankDetails.SelectIncomecategory(TestData.IncomeCategory.PartnerSalary, "3"); _bankDetails.SelectIncomecategory(TestData.IncomeCategory.SharedRentUtilities, "2"); _bankDetails.SelectIncomecategory(TestData.IncomeCategory.ChildSupport, "1"); _bankDetails.SelectIncomecategory(TestData.IncomeCategory.InvestmentIncome, "0"); // 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(); //click on Edit Expenses button _bankDetails.ClickEditExpenses(); //Edit Expenses _bankDetails.EditExpenses(); // 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(); if (loanamout > 2000) { // enter sms input as OTP _bankDetails.EnterOTPDetailsTxt(TestData.SMSCode); } // verify final review enabled and process setup functionality _loanSetUpDetails.loanSetupFunction(loanamout, strUserType); } catch (Exception ex) { strMessage += ex.Message; Assert.Fail(ex.Message); } }
public void TC_164_VerifyGovtIncome30_OneSAAC_RL(int loanamout, int expectedapprovedamt, string strmobiledevice) { try { strUserType = "RL"; _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 with existing user _homeDetails.LoginExistingUser(TestData.RandomPassword, loanamout, TestData.ClientType.NewProduct, TestData.Feature.NewProductAdvancePaidClean); // Click on Request Money Button _homeDetails.ClickRequestMoneyBtn(); //Click on Start Application Button _homeDetails.ClickExistinguserStartApplictionBtn(); // Select Loan Value from Slide bar _loanPurposeDetails.SelectLoanValueRL(loanamout); //Click on Select First POL Lst _loanPurposeDetails.ClickSelectFirstPurposeBtn(); // Select Purpose of loan _loanPurposeDetails.SelectLoanPurposeRL(TestData.POL.Households); // Enter FirstPOLLoan Amount _loanPurposeDetails.EnterFirstPOLAmountTxt(loanamout.ToString()); // Click on Continue Button _loanPurposeDetails.ClickLoanPOLContinueBtnRL(); //MoreInformation _loanPurposeDetails.MoreInformation(); //Edit the personal details and change the Rmsrv Code _personalDetails.PersonalDetailsFunction_RL(TestData.YourEmployementStatus.FullTime, TestData.ReturnerLoaner, TestData.OverrideCodes.PassAll_RL); // select Bank Name _bankDetails.SelectBankLst(TestData.BankDetails.Dagbank); // Click on Continue Button _bankDetails.BankSelectContinueBtn(); // Entering Username and Password _bankDetails.EnterBankCredentialsTxt(TestData.BankDetails.OneSAACGovtInc25.Yodlee.UID, TestData.BankDetails.OneSAACGovtInc25.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(); // Verify Other short-term loans and select POL's _bankDetails.SelectPOLExistingSACC(TestData.POL.Households); // Select Have you fully repaid previos loan - "Yes" _bankDetails.SelectFullyRepaidLoanbtn(true); // click on Confirm SACC continue button _bankDetails.ClickConfirmSACCNamesBtn(); // Select Category _bankDetails.SelectIncomeCategoryLst(TestData.IncomeCategory.PrimaryIncome); // 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("0"); // 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(); // verify final review enabled and process setup functionality _loanSetUpDetails.loanSetupFunction(loanamout, strUserType); #region old code ////Get the approved loan amount value //int approvedAmount = _loanSetUpDetails.GetApprovedamount(); //// Verify ApprovedAmount //Assert.AreEqual(expectedapprovedamt, approvedAmount, "Incorrect values" + expectedapprovedamt + " - " + approvedAmount); //if (GetPlatform(_driver)) //{ // // click on Button Submit // _loanSetUpDetails.ClickSubmitBtn(); // // Click on Bank Account to transfer // _bankDetails.ClicksixtyMinuteButton(); // // click on sublit-payment Button // _bankDetails.ClickSubmitPaymentButton(); //} //else //{ // // Click on Bank Account to transfer // _bankDetails.ClicksixtyMinuteButton(); // // click on Buton Submit // _loanSetUpDetails.ClickSubmitBtn(); //} //if (loanamout > 3000) //{ // _loanSetUpDetails.SelectReasontospendLess(TestData.ReasonforspeandLess.cheaperservice); //} //// Scrolling the Loan Contract //_loanSetUpDetails.Loancontract(); //// Confirming accepting contract //_loanSetUpDetails.ConfirmAcceptingContract(); //// click on I Agree button //_loanSetUpDetails.ClickOnAgreeBtn(); //// click on No thanks Button //_loanSetUpDetails.ClickNothanksBtn(); //Assert.AreEqual(approvedAmount, _loanSetUpDetails.VerifyFundedAmount(), "Aprroved amount greater than funded amount"); //if (GetPlatform(_driver)) //{ // // Click on To Loan Dashboard Button // _loanSetUpDetails.ClickMobileLoanDashboardBtn(); // // click on More Button from Bottom Menu // _loanSetUpDetails.ClickMoreBtn(); // //Logout // _loanSetUpDetails.Logout(); //} //else //{ // // Click on Loan Dashboard Button // _loanSetUpDetails.ClickLoanDashboard(); // //Logout // _loanSetUpDetails.Logout(); //} #endregion } catch (Exception ex) { strMessage += ex.Message; Assert.Fail(ex.Message); } }
public void TC036_ApplyLoanwithEmploymentStausUnemployed_RL(int loanamout, string strmobiledevice, string UnEmpDesc) { strUserType = "RL"; _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"); try { //Go to the homepage and click the start application button and then the Request money button _homeDetails.homeFunctions_RL(TestData.RandomPassword, loanamout, TestData.ClientType.NewProduct, TestData.Feature.ReturnerDagBankstaging); //Select the loan amount and purpose and click on continue button _loanPurposeDetails.LoanPurposeFunction_RL(loanamout, TestData.POL.Households); // select Employement Status string Employmentstatus = TestData.YourEmployementStatus.Unemployed; _personalDetails.SelectEmploymentStatusLst(Employmentstatus); if (Employmentstatus == "Unemployed") { _personalDetails.SelectUnEmploymentDescLst(UnEmpDesc); } // select short term loans value as NO _personalDetails.ClickNoShortTermLoanStatusBtn(); // Check Read Privacy and Electronic Authorisation _personalDetails.CheckReadPrivacyBtn(TestData.ReturnerLoaner); // Check Read Credit Guide _personalDetails.CheckReadCreditBtn(TestData.ReturnerLoaner); if (GetPlatform(_driver)) { // Click on Personal Details Continue Button _personalDetails.ClickPersonaldetailsContinueBtnRLMobile(); } else { // Click on Personal Details Continue Button _personalDetails.ClickPersonaldetailsRequestBtnRLDesktop(); // Click on checks out Continue Button //_personalDetails.ClickAutomaticVerificationBtn(); } // select Bank Name _bankDetails.SelectBankLst(TestData.BankDetails.Dagbank); // Click on Continue Button _bankDetails.BankSelectContinueBtn(); if (bsAutoRefresh) { // 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(); // Verify unsuccessful message string UnsuccessMsg = "Application unsuccessful"; Assert.IsTrue(_personalDetails.GetUnsuccessMessage().Contains(UnsuccessMsg)); //verify DNQ Message string ActualDNQMessage = "You currently don't qualify for a Nimble loan"; Assert.IsTrue(_personalDetails.GetDNQMessage().Contains(ActualDNQMessage)); } catch (Exception ex) { strMessage += ex.Message; Assert.Fail(ex.Message); } }
public void TC009_VerifyPOLEventCost_RL(int loanamout, string strmobiledevice) { strUserType = "RL"; try { _driver = 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"); //Go to the homepage and click the start application button and then the Request money button _homeDetails.homeFunctions_RL(TestData.RandomPassword, loanamout, TestData.ClientType.NewProduct, TestData.Feature.ReturnerDagBankstaging); //Select the loan amount and purpose and click on continue button _loanPurposeDetails.LoanPurposeFunction_RL(loanamout, TestData.POL.Eventcosts.Anniversary); //Edit the personal details and change the Rmsrv Code _personalDetails.PersonalDetailsFunction_Skipbanklogin(TestData.YourEmployementStatus.FullTime, TestData.ReturnerLoaner, TestData.OverrideCodes.PassAll_RL); // select Bank Name _bankDetails.SelectBankLst(TestData.BankDetails.Dagbank); // Click on Continue Button _bankDetails.BankSelectContinueBtn(); if (bsAutoRefresh) { // 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(); //// Choose reason for no transactions //bool notrans = _bankDetails.NoTransaction(TestData.NoTransactionReasons.Usingcash); //Assert.IsTrue(notrans, "No transaction page not appeared"); // 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(); if (loanamout > 2000) { // enter sms input as OTP if (_bankDetails.VerifySMSOTP()) { _bankDetails.EnterOTPDetailsTxt(TestData.SMSCode); } } // Verify ApprovedAmount _loanSetUpDetails.VerifySetUpPageDetails(7, loanamout, loanamout, strUserType); // click on Buton Submit _loanSetUpDetails.ClickSubmitBtn(); // Scrolling the Loan Contract _loanSetUpDetails.Loancontract(); // Confirming accepting contract _loanSetUpDetails.ConfirmAcceptingContract(); // click on I Agree button _loanSetUpDetails.ClickOnAgreeBtn(); // click on No thanks Button _loanSetUpDetails.ClickNothanksBtn(); if (GetPlatform(_driver)) { // Click on To Loan Dashboard Button _loanSetUpDetails.ClickMobileLoanDashboardBtn(); // click on More Button from Bottom Menu _loanSetUpDetails.ClickMoreBtn(); //Logout _loanSetUpDetails.Logout(); } else { // Click on Loan Dashboard Button _loanSetUpDetails.ClickLoanDashboard(); //Logout _loanSetUpDetails.Logout(); } } catch (Exception ex) { strMessage += ex.Message; Assert.Fail(ex.Message); } }
public void TC036_ApplyLoanwithEmploymentStausUnemployed_NL(int loanamout, string strmobiledevice, string UnEmpDesc) { strUserType = "NL"; _driver = _testengine.TestSetup(strmobiledevice); _homeDetails = new HomeDetails(_driver, "NL"); _loanPurposeDetails = new LoanPurposeDetails(_driver, "NL"); _personalDetails = new PersonalDetails(_driver, "NL"); _bankDetails = new BankDetails(_driver, "NL"); _loanSetUpDetails = new LoanSetUpDetails(_driver, "NL"); try { //Go to the homepage and click the start application button _homeDetails.HomeDetailsPage(); //Select the loan amount and purpose and click on continue button _loanPurposeDetails.LoanPurposeFunction(loanamout, TestData.POL.Households); // entering personal details with overwrite values PersonalDetailsDataObj obj = new PersonalDetailsDataObj(); obj.EmploymentStatus = TestData.YourEmployementStatus.Unemployed; obj.UnemploymentDesc = UnEmpDesc; //_personalDetails.PopulatePersonalDetails(); _personalDetails.PopulatePersonalDetails(obj); // Click on checks out Continue Button _personalDetails.ClickCheckoutContinueBtn(); // select Bank Name _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"); // 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(); // Verify unsuccessful message string UnsuccessMsg = "Application unsuccessful"; Assert.IsTrue(_personalDetails.GetUnsuccessMessage().Contains(UnsuccessMsg)); //verify DNQ Message string ActualDNQMessage = "You currently don't qualify for a Nimble loan"; Assert.IsTrue(_personalDetails.GetDNQMessage().Contains(ActualDNQMessage)); } catch (Exception ex) { strMessage += ex.Message; Assert.Fail(ex.Message); } }
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); } }
public void TC140_YourExpenses_NoRent_LivingWithFamily_RL(int loanamout, string strmobiledevice) { strUserType = "RL"; _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"); try { /// Generate debug client and log in _homeDetails.homeFunctions_RL(TestData.RandomPassword, loanamout, TestData.ClientType.NewProduct, TestData.Feature.NewProductAdvancePaidClean); // Purpose of Loan page _loanPurposeDetails.LoanPurposeFunction_RL(loanamout, TestData.POL.Insurance); // Edit the personal details and change the Rmsrv Code _personalDetails.PersonalDetailsFunction_RL(TestData.YourEmployementStatus.FullTime, TestData.ReturnerLoaner, TestData.OverrideCodes.PassAll_RL); // Bank 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 - set rent to $0, select Living With Family/Friends as a response _bankDetails.SelectOtherDebtRepaymentsOptionBtn(); _bankDetails.SelectDependantsLst(TestData.Dependents.Zero); _bankDetails.EnterExpenseMortgageTxt("0"); _bankDetails.SelectExpenseNoRentLst("Living with a family/friend"); _bankDetails.ClickConfirmExpensesBtn(); // Your Summary page _bankDetails.ClickNoGovtBenefitsbtn(); _bankDetails.ClickAgreeAppSubmitBtn(); _bankDetails.ClickConfirmSummaryBtn(); if ((loanamout > 2000 && FinalReviewEnabled == "true") && (strUserType == FinalReviewLoanType || FinalReviewLoanType == "ALL")) { if (GetPlatform(_driver)) { //ClickOn Loan Dashboard...Manual Approval _loanSetUpDetails.ClickLoanDashboardManual(); // click on More Button from Bottom Menu _loanSetUpDetails.ClickMoreBtn(); // click on Approve button _loanSetUpDetails.ClickApproveBtn(); //Click Setup Button _loanSetUpDetails.ClickSetup(); } else { //ClickOn Loan Dashboard...Manual Approval _loanSetUpDetails.ClickLoanDashboardManual(); //ClickLoanDashboard(); //click on Final Approve _loanSetUpDetails.FinalApprove(); //Click Setup Button _loanSetUpDetails.ClickSetup(); } } // Set Up Loan page if (GetPlatform(_driver)) { _loanSetUpDetails.ClickSubmitBtn(); _bankDetails.ClicksixtyMinuteButton(); _bankDetails.ClickSubmitPaymentButton(); } else { _bankDetails.ClicksixtyMinuteButton(); _loanSetUpDetails.ClickSubmitBtn(); } // Loan Contract page _loanSetUpDetails.Loancontract(); _loanSetUpDetails.ConfirmAcceptingContract(); _loanSetUpDetails.ClickOnAgreeBtn(); if (GetPlatform(_driver)) { // Click on To Loan Dashboard Button _loanSetUpDetails.ClickMobileLoanDashboardBtn(); // click on More Button from Bottom Menu _loanSetUpDetails.ClickMoreBtn(); //Logout _loanSetUpDetails.Logout(); } else { // Click on Loan Dashboard Button _loanSetUpDetails.ClickLoanDashboard(); //Logout _loanSetUpDetails.Logout(); } } catch (Exception ex) { strMessage += ex.Message; Assert.Fail(ex.Message); } }