use of org.mifos.test.acceptance.framework.testhelpers.NavigationHelper in project head by mifos.
the class DefineNewLoanProductTest method createWeeklyLoanProductWithQuestionGroups.
// one of the dependent methods throws Exception
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
public void createWeeklyLoanProductWithQuestionGroups() throws Exception {
String questionGroupTitle = "QG1" + random.nextInt(100);
String question1 = "DT_" + random.nextInt(100);
String question2 = "SS_" + random.nextInt(100);
questionGroupHelper.createQuestionGroup(questionGroupTitle, question1, question2, "Create Loan");
SubmitFormParameters formParameters = FormParametersHelper.getWeeklyLoanProductParametersWithQuestionGroups(questionGroupTitle);
new NavigationHelper(selenium).navigateToAdminPage().verifyPage().defineLoanProduct(formParameters);
}
use of org.mifos.test.acceptance.framework.testhelpers.NavigationHelper in project head by mifos.
the class DefineNewLoanProductTest method createMonthlyLoanProduct.
// one of the dependent methods throws Exception
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
public void createMonthlyLoanProduct() throws Exception {
SubmitFormParameters formParameters = FormParametersHelper.getMonthlyLoanProductParameters();
new NavigationHelper(selenium).navigateToAdminPage().verifyPage().defineLoanProduct(formParameters);
}
use of org.mifos.test.acceptance.framework.testhelpers.NavigationHelper in project head by mifos.
the class BackDateLoanProductTest method preparePageForTest.
private DefineNewLoanProductPage preparePageForTest() {
NavigationHelper navigationHelper = new NavigationHelper(selenium);
AdminPage adminPage = navigationHelper.navigateToAdminPage();
DefineNewLoanProductPage newLoanProductPage = adminPage.navigateToDefineLoanProduct();
SubmitFormParameters parameters = FormParametersHelper.getMonthlyLoanProductParameters();
return newLoanProductPage.fillLoanParameters(parameters);
}
use of org.mifos.test.acceptance.framework.testhelpers.NavigationHelper in project head by mifos.
the class CashFlowTest method verifyCashFlowForLoanAccount.
private void verifyCashFlowForLoanAccount(DateTime disbursalDate, int installment, double cashFlowIncremental, String loanProductName, int frequency) {
Integer loanAmount = Integer.valueOf(FormParametersHelper.getWeeklyLoanProductParameters().getDefaultLoanAmount());
new NavigationHelper(selenium).navigateToHomePage();
loanTestHelper.navigateToCreateLoanAccountEntryPageWithoutLogout(clientName, loanProductName).setDisbursalDate(disbursalDate).setInstallments(installment).clickContinueToNavigateToCashFlowPage().validateCashFlowMonths(disbursalDate, installment, frequency).verifyCashFlowFields().verifyInvalidIndebentRate("49.99", "7001", "1000").enterValidData("100", cashFlowIncremental, 100, "7003", "1000").clickContinue().verifyCashFlow(cashFlowIncremental, loanAmount).clickPreview();
}
use of org.mifos.test.acceptance.framework.testhelpers.NavigationHelper in project head by mifos.
the class VariableInstalmentLoanProductTest method setUp.
@Override
// one of the dependent methods throws Exception
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
@BeforeMethod
public void setUp() throws Exception {
super.setUp();
loanProductTestHelper = new LoanProductTestHelper(selenium);
loanTestHelper = new LoanTestHelper(selenium);
systemDateTime = new DateTime(2010, 10, 11, 10, 0, 0, 0);
loanTestHelper.setApplicationTime(systemDateTime);
TestDataSetup dataSetup = new TestDataSetup(selenium, applicationDatabaseOperation);
dataSetup.addDecliningPrincipalBalance();
feeTestHelper = new FeeTestHelper(dataSetup, new NavigationHelper(selenium));
}
Aggregations