use of org.mifos.test.acceptance.framework.testhelpers.NavigationHelper in project head by mifos.
the class DefineNewLoanProductTest method createWeeklyLoanProduct.
// one of the dependent methods throws Exception
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
public void createWeeklyLoanProduct() throws Exception {
SubmitFormParameters formParameters = FormParametersHelper.getWeeklyLoanProductParameters();
new NavigationHelper(selenium).navigateToAdminPage().verifyPage().defineLoanProduct(formParameters);
}
use of org.mifos.test.acceptance.framework.testhelpers.NavigationHelper in project head by mifos.
the class RedoLoanDisbursalTest method dataSetUpForVariableInstallmentLoan.
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
private void dataSetUpForVariableInstallmentLoan() throws Exception {
navigationHelper = new NavigationHelper(selenium);
loanTestHelper = new LoanTestHelper(selenium);
loanProductTestHelper = new LoanProductTestHelper(selenium);
systemDateTime = new DateTime(2010, 10, 11, 10, 0, 0, 0);
TestDataSetup dataSetup = new TestDataSetup(selenium, applicationDatabaseOperation);
loanTestHelper.setApplicationTime(systemDateTime);
dataSetup.addDecliningPrincipalBalance();
}
use of org.mifos.test.acceptance.framework.testhelpers.NavigationHelper in project head by mifos.
the class LoanProcessWithDifferentCurrencyTest method setUp.
@Override
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
// one of the dependent methods throws Exception
@BeforeMethod(alwaysRun = true)
public void setUp() throws Exception {
super.setUp();
navigationHelper = new NavigationHelper(selenium);
propertiesHelper = new CustomPropertiesHelper(selenium);
}
use of org.mifos.test.acceptance.framework.testhelpers.NavigationHelper in project head by mifos.
the class CashFlowTest method verifyRepaymentCapacityOnValidate.
private void verifyRepaymentCapacityOnValidate(DefineNewLoanProductPage.SubmitFormParameters formParameters, String minRc, String expectedRc) {
//next week tuesday
DateTime disbursalDate = systemDateTime.plusDays(1);
int installment = 5;
int cashFlowIncremental = 5685;
new NavigationHelper(selenium).navigateToHomePage();
loanTestHelper.navigateToCreateLoanAccountEntryPageWithoutLogout(clientName, formParameters.getOfferingName()).setDisbursalDate(disbursalDate).setInstallments(installment).clickContinueToNavigateToCashFlowPage().enterValidData("100", cashFlowIncremental - 2, 100, "7003", "1000").clickContinue().verifyRepaymentCapacityOnValidate(expectedRc, minRc);
}
use of org.mifos.test.acceptance.framework.testhelpers.NavigationHelper in project head by mifos.
the class CashFlowTest method verifyRepaymentCapacityOnPreview.
private void verifyRepaymentCapacityOnPreview(DateTime disbursalDate, int installment, double cashFlowIncremental, String loanProductName, String expectedRc, String minRc) {
new NavigationHelper(selenium).navigateToHomePage();
loanTestHelper.navigateToCreateLoanAccountEntryPageWithoutLogout(clientName, loanProductName).setDisbursalDate(disbursalDate).setInstallments(installment).clickContinueToNavigateToCashFlowPage().enterValidData("100", cashFlowIncremental + 10, 100, "7003", "1000").clickContinue().verifyRepaymentCapacityOnPreview(expectedRc, minRc);
}
Aggregations