Search in sources :

Example 11 with SavingsProductParameters

use of org.mifos.test.acceptance.framework.savingsproduct.SavingsProductParameters in project head by mifos.

the class AdditionalSavingsAccountTest method getVoluntaryGroupsMonthCalculactionProductParameters.

private SavingsProductParameters getVoluntaryGroupsMonthCalculactionProductParameters(DateTime startDate) {
    SavingsProductParameters params = savingsProductHelper.getGenericSavingsProductParameters(startDate, SavingsProductParameters.VOLUNTARY, SavingsProductParameters.GROUPS);
    params.setMandatoryAmount("2000");
    params.setInterestRate("5");
    params.setDaysOrMonthsForInterestCalculation(params.MONTHS);
    params.setFrequencyOfInterestPostings("1");
    params.setNumberOfDaysOrMonthsForInterestCalculation("1");
    params.setAmountAppliesTo(SavingsProductParameters.WHOLE_GROUP);
    return params;
}
Also used : SavingsProductParameters(org.mifos.test.acceptance.framework.savingsproduct.SavingsProductParameters)

Example 12 with SavingsProductParameters

use of org.mifos.test.acceptance.framework.savingsproduct.SavingsProductParameters in project head by mifos.

the class DefineNewSavingsProductTest method validateDefineSavingsProductForm.

public void validateDefineSavingsProductForm() throws Exception {
    SavingsProductParameters params = savingsProductHelper.getInvalidSavingsProductParameters(new DateTime(), SavingsProductParameters.MANDATORY, SavingsProductParameters.GROUPS);
    params.setShortName("V140");
    DefineNewSavingsProductPage newSavingsProductPage = savingsProductHelper.getDefineSavingsProductPageWithValidationErrors(params);
    newSavingsProductPage.verifyValidationErrors("Please specify the Time period for Interest calculation.", "Please specify the Frequency of Interest posting to accounts.", "Please specify the Interest rate. Interest must be in range (0-100).", "Please specify a value greater than zero for Mandatory amount for deposit.", "Please select the Amount Applies to.");
}
Also used : SavingsProductParameters(org.mifos.test.acceptance.framework.savingsproduct.SavingsProductParameters) DefineNewSavingsProductPage(org.mifos.test.acceptance.framework.savingsproduct.DefineNewSavingsProductPage) DateTime(org.joda.time.DateTime)

Example 13 with SavingsProductParameters

use of org.mifos.test.acceptance.framework.savingsproduct.SavingsProductParameters in project head by mifos.

the class DefineNewSavingsProductTest method createVoluntarySavingsProductForCenters.

// http://mifosforge.jira.com/browse/MIFOSTEST-139
public void createVoluntarySavingsProductForCenters() throws Exception {
    SavingsProductParameters params = savingsProductHelper.getGenericSavingsProductParameters(new DateTime(), SavingsProductParameters.VOLUNTARY, SavingsProductParameters.CENTERS);
    params.setShortName("M139");
    DefineNewSavingsProductConfirmationPage confirmationPage = savingsProductHelper.createSavingsProduct(params);
    confirmationPage.navigateToSavingsProductDetails();
    createSavingAccountWithCreatedProduct("DefineNewSavingsProductTestCenter", params.getProductInstanceName(), "7777.8");
}
Also used : DefineNewSavingsProductConfirmationPage(org.mifos.test.acceptance.framework.savingsproduct.DefineNewSavingsProductConfirmationPage) SavingsProductParameters(org.mifos.test.acceptance.framework.savingsproduct.SavingsProductParameters) DateTime(org.joda.time.DateTime)

Example 14 with SavingsProductParameters

use of org.mifos.test.acceptance.framework.savingsproduct.SavingsProductParameters in project head by mifos.

the class DefineNewSavingsProductTest method createVoluntarySavingsProductForClients.

// http://mifosforge.jira.com/browse/MIFOSTEST-1093
public void createVoluntarySavingsProductForClients() throws Exception {
    SavingsProductParameters params = savingsProductHelper.getGenericSavingsProductParameters(new DateTime(), SavingsProductParameters.VOLUNTARY, SavingsProductParameters.CLIENTS);
    params.setShortName("1093");
    DefineNewSavingsProductConfirmationPage confirmationPage = savingsProductHelper.createSavingsProduct(params);
    confirmationPage.navigateToSavingsProductDetails();
    createSavingAccountWithCreatedProduct("DefineNewSavingsProduct TestClient", params.getProductInstanceName(), "200");
}
Also used : DefineNewSavingsProductConfirmationPage(org.mifos.test.acceptance.framework.savingsproduct.DefineNewSavingsProductConfirmationPage) SavingsProductParameters(org.mifos.test.acceptance.framework.savingsproduct.SavingsProductParameters) DateTime(org.joda.time.DateTime)

Example 15 with SavingsProductParameters

use of org.mifos.test.acceptance.framework.savingsproduct.SavingsProductParameters in project head by mifos.

the class DefineNewSavingsProductTest method createSavingsProductWithDailyInterestPosting.

public void createSavingsProductWithDailyInterestPosting() throws Exception {
    SavingsProductParameters params = savingsProductHelper.getMandatoryClientsMinimumBalanceSavingsProductParameters(new DateTime());
    String productName = StringUtil.getRandomString(4);
    params.setShortName(productName);
    params.setDailyPosting(true);
    DefineNewSavingsProductConfirmationPage confirmationPage = savingsProductHelper.createSavingsProduct(params);
    confirmationPage.navigateToSavingsProductDetails();
    createSavingAccountWithCreatedProduct("DefineNewSavingsProduct TestClient", params.getProductInstanceName(), "248");
}
Also used : DefineNewSavingsProductConfirmationPage(org.mifos.test.acceptance.framework.savingsproduct.DefineNewSavingsProductConfirmationPage) SavingsProductParameters(org.mifos.test.acceptance.framework.savingsproduct.SavingsProductParameters) DateTime(org.joda.time.DateTime)

Aggregations

SavingsProductParameters (org.mifos.test.acceptance.framework.savingsproduct.SavingsProductParameters)27 DateTime (org.joda.time.DateTime)20 DefineNewSavingsProductConfirmationPage (org.mifos.test.acceptance.framework.savingsproduct.DefineNewSavingsProductConfirmationPage)12 DateTimeUpdaterRemoteTestingService (org.mifos.test.acceptance.remote.DateTimeUpdaterRemoteTestingService)8 EditAccountStatusParameters (org.mifos.test.acceptance.framework.account.EditAccountStatusParameters)7 Test (org.testng.annotations.Test)7 DepositWithdrawalSavingsParameters (org.mifos.test.acceptance.framework.savings.DepositWithdrawalSavingsParameters)6 SavingsAccountDetailPage (org.mifos.test.acceptance.framework.savings.SavingsAccountDetailPage)5 CreateSavingsAccountSearchParameters (org.mifos.test.acceptance.framework.savings.CreateSavingsAccountSearchParameters)3 CreateSavingsAccountSubmitParameters (org.mifos.test.acceptance.framework.savings.CreateSavingsAccountSubmitParameters)3 DefineNewSavingsProductPage (org.mifos.test.acceptance.framework.savingsproduct.DefineNewSavingsProductPage)2 EditSavingsProductPage (org.mifos.test.acceptance.framework.savingsproduct.EditSavingsProductPage)2 EditSavingsProductPreviewPage (org.mifos.test.acceptance.framework.savingsproduct.EditSavingsProductPreviewPage)2 SavingsProductDetailsPage (org.mifos.test.acceptance.framework.savingsproduct.SavingsProductDetailsPage)2 AdminPage (org.mifos.test.acceptance.framework.admin.AdminPage)1 ImportSavingsReviewPage (org.mifos.test.acceptance.framework.admin.ImportSavingsReviewPage)1 ImportSavingsSaveSummaryPage (org.mifos.test.acceptance.framework.admin.ImportSavingsSaveSummaryPage)1 ManageRolePage (org.mifos.test.acceptance.framework.admin.ManageRolePage)1 ClientViewDetailsPage (org.mifos.test.acceptance.framework.client.ClientViewDetailsPage)1 CreateLoanAccountSearchParameters (org.mifos.test.acceptance.framework.loan.CreateLoanAccountSearchParameters)1