Search in sources :

Example 11 with CustomPropertiesHelper

use of org.mifos.test.acceptance.framework.testhelpers.CustomPropertiesHelper in project head by mifos.

the class ModifyingGroupLoanTest method setUp.

@Override
@BeforeMethod(alwaysRun = true)
public void setUp() throws Exception {
    super.setUp();
    loanTestHelper = new LoanTestHelper(selenium);
    customPropertiesHelper = new CustomPropertiesHelper(selenium);
    customPropertiesHelper.setNewGroupLoanWithMembers(true);
}
Also used : CustomPropertiesHelper(org.mifos.test.acceptance.framework.testhelpers.CustomPropertiesHelper) LoanTestHelper(org.mifos.test.acceptance.framework.testhelpers.LoanTestHelper) BeforeMethod(org.testng.annotations.BeforeMethod)

Example 12 with CustomPropertiesHelper

use of org.mifos.test.acceptance.framework.testhelpers.CustomPropertiesHelper in project head by mifos.

the class RedoNewGlimLoanDisbursalTest method setUp.

@Override
@BeforeMethod(alwaysRun = true)
public void setUp() throws Exception {
    super.setUp();
    navigationHelper = new NavigationHelper(selenium);
    customPropertiesHelper = new CustomPropertiesHelper(selenium);
    customPropertiesHelper.setNewGroupLoanWithMembers(true);
    DateTimeUpdaterRemoteTestingService dateTimeUpdaterRemoteTestingService = new DateTimeUpdaterRemoteTestingService(selenium);
    DateTime targetTime = new DateTime(2011, 03, 15, 13, 0, 0, 0);
    dateTimeUpdaterRemoteTestingService.setDateTime(targetTime);
}
Also used : NavigationHelper(org.mifos.test.acceptance.framework.testhelpers.NavigationHelper) CustomPropertiesHelper(org.mifos.test.acceptance.framework.testhelpers.CustomPropertiesHelper) DateTimeUpdaterRemoteTestingService(org.mifos.test.acceptance.remote.DateTimeUpdaterRemoteTestingService) DateTime(org.joda.time.DateTime) BeforeMethod(org.testng.annotations.BeforeMethod)

Example 13 with CustomPropertiesHelper

use of org.mifos.test.acceptance.framework.testhelpers.CustomPropertiesHelper in project head by mifos.

the class ClientTest 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);
    clientTestHelper = new ClientTestHelper(selenium);
    questionGroupTestHelper = new QuestionGroupTestHelper(selenium);
    groupTestHelper = new GroupTestHelper(selenium);
    savingsAccountHelper = new SavingsAccountHelper(selenium);
    savingsProductHelper = new SavingsProductHelper(selenium);
    DateTimeUpdaterRemoteTestingService dateTimeUpdaterRemoteTestingService = new DateTimeUpdaterRemoteTestingService(selenium);
    targetTime = new DateTime(2009, 7, 11, 12, 0, 0, 0);
    dateTimeUpdaterRemoteTestingService.setDateTime(targetTime);
    TestDataSetup dataSetup = new TestDataSetup(selenium, applicationDatabaseOperation);
    feeTestHelper = new FeeTestHelper(dataSetup, navigationHelper);
    loanTestHelper = new LoanTestHelper(selenium);
}
Also used : QuestionGroupTestHelper(org.mifos.test.acceptance.framework.testhelpers.QuestionGroupTestHelper) TestDataSetup(org.mifos.test.acceptance.util.TestDataSetup) FeeTestHelper(org.mifos.test.acceptance.admin.FeeTestHelper) GroupTestHelper(org.mifos.test.acceptance.framework.testhelpers.GroupTestHelper) QuestionGroupTestHelper(org.mifos.test.acceptance.framework.testhelpers.QuestionGroupTestHelper) SavingsAccountHelper(org.mifos.test.acceptance.framework.testhelpers.SavingsAccountHelper) NavigationHelper(org.mifos.test.acceptance.framework.testhelpers.NavigationHelper) ClientTestHelper(org.mifos.test.acceptance.framework.testhelpers.ClientTestHelper) CustomPropertiesHelper(org.mifos.test.acceptance.framework.testhelpers.CustomPropertiesHelper) SavingsProductHelper(org.mifos.test.acceptance.framework.testhelpers.SavingsProductHelper) DateTimeUpdaterRemoteTestingService(org.mifos.test.acceptance.remote.DateTimeUpdaterRemoteTestingService) DateTime(org.joda.time.DateTime) LoanTestHelper(org.mifos.test.acceptance.framework.testhelpers.LoanTestHelper) BeforeMethod(org.testng.annotations.BeforeMethod)

Example 14 with CustomPropertiesHelper

use of org.mifos.test.acceptance.framework.testhelpers.CustomPropertiesHelper in project head by mifos.

the class ViewOrganizationSettingsTest method verifyViewOrganizationSettingsPage.

@Test
public //http://mifosforge.jira.com/browse/MIFOSTEST-259
void verifyViewOrganizationSettingsPage() {
    //When
    AdminPage adminPage = loginAndGoToAdminPage();
    ViewOrganizationSettingsPage viewOrganizationSettingsPage = adminPage.navigateToViewOrganizationSettingsPage();
    viewOrganizationSettingsPage.verifyPage();
    //Then
    viewOrganizationSettingsPage.verifyDefaultConfiguration();
    //When
    CustomPropertiesHelper customPropertiesHelper = new CustomPropertiesHelper(selenium);
    customPropertiesHelper.setDigitsAfterDecimal(3);
    customPropertiesHelper.setGroupCanApplyLoans("false");
    adminPage = loginAndGoToAdminPage();
    viewOrganizationSettingsPage = adminPage.navigateToViewOrganizationSettingsPage();
    //Then
    viewOrganizationSettingsPage.verifyClientRules(new String[] { "Groups allowed to apply for loans: No" });
    viewOrganizationSettingsPage.verifyCurrencies(new String[] { "Number of digits after decimal: 3" });
    customPropertiesHelper.setDigitsAfterDecimal(1);
    customPropertiesHelper.setGroupCanApplyLoans("true");
}
Also used : AdminPage(org.mifos.test.acceptance.framework.admin.AdminPage) ViewOrganizationSettingsPage(org.mifos.test.acceptance.framework.admin.ViewOrganizationSettingsPage) CustomPropertiesHelper(org.mifos.test.acceptance.framework.testhelpers.CustomPropertiesHelper) Test(org.testng.annotations.Test)

Example 15 with CustomPropertiesHelper

use of org.mifos.test.acceptance.framework.testhelpers.CustomPropertiesHelper in project head by mifos.

the class UpdateCustomPropertiesTest method setUp.

@Override
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
// one of the dependent methods throws Exception
@BeforeMethod(alwaysRun = true)
public void setUp() throws Exception {
    navigationHelper = new NavigationHelper(selenium);
    propertiesHelper = new CustomPropertiesHelper(selenium);
    savingsAccountHelper = new SavingsAccountHelper(selenium);
    centerTestHelper = new CenterTestHelper(selenium);
    clientTestHelper = new ClientTestHelper(selenium);
    super.setUp();
}
Also used : SavingsAccountHelper(org.mifos.test.acceptance.framework.testhelpers.SavingsAccountHelper) NavigationHelper(org.mifos.test.acceptance.framework.testhelpers.NavigationHelper) ClientTestHelper(org.mifos.test.acceptance.framework.testhelpers.ClientTestHelper) CustomPropertiesHelper(org.mifos.test.acceptance.framework.testhelpers.CustomPropertiesHelper) CenterTestHelper(org.mifos.test.acceptance.framework.testhelpers.CenterTestHelper) BeforeMethod(org.testng.annotations.BeforeMethod)

Aggregations

CustomPropertiesHelper (org.mifos.test.acceptance.framework.testhelpers.CustomPropertiesHelper)18 BeforeMethod (org.testng.annotations.BeforeMethod)17 LoanTestHelper (org.mifos.test.acceptance.framework.testhelpers.LoanTestHelper)10 NavigationHelper (org.mifos.test.acceptance.framework.testhelpers.NavigationHelper)9 DateTime (org.joda.time.DateTime)8 DateTimeUpdaterRemoteTestingService (org.mifos.test.acceptance.remote.DateTimeUpdaterRemoteTestingService)7 ClientTestHelper (org.mifos.test.acceptance.framework.testhelpers.ClientTestHelper)4 SavingsAccountHelper (org.mifos.test.acceptance.framework.testhelpers.SavingsAccountHelper)2 LoanProductTestHelper (org.mifos.test.acceptance.loanproduct.LoanProductTestHelper)2 TestDataSetup (org.mifos.test.acceptance.util.TestDataSetup)2 FeeTestHelper (org.mifos.test.acceptance.admin.FeeTestHelper)1 AdminPage (org.mifos.test.acceptance.framework.admin.AdminPage)1 ViewOrganizationSettingsPage (org.mifos.test.acceptance.framework.admin.ViewOrganizationSettingsPage)1 CenterTestHelper (org.mifos.test.acceptance.framework.testhelpers.CenterTestHelper)1 GroupTestHelper (org.mifos.test.acceptance.framework.testhelpers.GroupTestHelper)1 QuestionGroupTestHelper (org.mifos.test.acceptance.framework.testhelpers.QuestionGroupTestHelper)1 SavingsProductHelper (org.mifos.test.acceptance.framework.testhelpers.SavingsProductHelper)1 Test (org.testng.annotations.Test)1