Search in sources :

Example 6 with GroupTestHelper

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

the class GroupTest method verifyAcceptedPaymentTypesForGroup.

@SuppressWarnings("PMD.SignatureDeclareThrowsException")
// http://mifosforge.jira.com/browse/MIFOSTEST-247
@Test(singleThreaded = true, groups = { "group", "acceptance", "ui", "no_db_unit" })
public void verifyAcceptedPaymentTypesForGroup() throws Exception {
    //When
    GroupTestHelper groupTestHelper = new GroupTestHelper(selenium);
    CreateGroupSubmitParameters groupParams = new CreateGroupSubmitParameters();
    groupParams.setGroupName("TestGroup123456");
    groupTestHelper.createNewGroup("Default Center", groupParams);
    AdminPage adminPage = navigationHelper.navigateToAdminPage();
    DefineAcceptedPaymentTypesPage defineAcceptedPaymentTypesPage = adminPage.navigateToDefineAcceptedPaymentType();
    defineAcceptedPaymentTypesPage.addLoanFeesPaymentType(DefineAcceptedPaymentTypesPage.CHEQUE);
    adminPage = navigationHelper.navigateToAdminPage();
    defineAcceptedPaymentTypesPage = adminPage.navigateToDefineAcceptedPaymentType();
    defineAcceptedPaymentTypesPage.addLoanFeesPaymentType(DefineAcceptedPaymentTypesPage.VOUCHER);
    ApplyPaymentPage applyPaymentPage = navigationHelper.navigateToGroupViewDetailsPage("TestGroup123456").navigateToViewGroupChargesDetailPage().navigateToApplyPayments();
    //Then
    applyPaymentPage.verifyModeOfPayments();
}
Also used : GroupTestHelper(org.mifos.test.acceptance.framework.testhelpers.GroupTestHelper) QuestionGroupTestHelper(org.mifos.test.acceptance.framework.testhelpers.QuestionGroupTestHelper) ApplyPaymentPage(org.mifos.test.acceptance.framework.loan.ApplyPaymentPage) CreateGroupSubmitParameters(org.mifos.test.acceptance.framework.group.CreateGroupEntryPage.CreateGroupSubmitParameters) AdminPage(org.mifos.test.acceptance.framework.admin.AdminPage) DefineAcceptedPaymentTypesPage(org.mifos.test.acceptance.framework.admin.DefineAcceptedPaymentTypesPage) Test(org.testng.annotations.Test)

Example 7 with GroupTestHelper

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

the class UpdateCustomPropertiesTest method removeThursdayFromWorkingDays.

//http://mifosforge.jira.com/browse/MIFOSTEST-204
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
@Test
public void removeThursdayFromWorkingDays() throws Exception {
    String workingDays = "Monday,Tuesday,Wednesday,Thursday,Friday,Saturday";
    propertiesHelper.setWorkingDays(workingDays);
    //When
    CreateCenterEnterDataPage createCenterEnterDataPage = navigationHelper.navigateToCreateCenterEnterDataPage("MyOfficeDHMFT");
    CreateMeetingPage createMeetingPage = createCenterEnterDataPage.navigateToCreateMeetingPage();
    createMeetingPage.verifyWorkingDays(workingDays);
    CreateClientEnterMfiDataPage createClientEnterMfiDataPage = navigationHelper.navigateToCreateClientEnterMfiDataPage("MyOfficeDHMFT");
    createMeetingPage = createClientEnterMfiDataPage.navigateToCreateMeetingPage();
    createMeetingPage.verifyWorkingDays(workingDays);
    workingDays = "Monday,Tuesday,Wednesday,Friday,Saturday";
    propertiesHelper.setWorkingDays(workingDays);
    //Then
    createCenterEnterDataPage = navigationHelper.navigateToCreateCenterEnterDataPage("MyOfficeDHMFT");
    createMeetingPage = createCenterEnterDataPage.navigateToCreateMeetingPage();
    createMeetingPage.verifyWorkingDays(workingDays);
    createClientEnterMfiDataPage = navigationHelper.navigateToCreateClientEnterMfiDataPage("MyOfficeDHMFT");
    createMeetingPage = createClientEnterMfiDataPage.navigateToCreateMeetingPage();
    createMeetingPage.verifyWorkingDays(workingDays);
    String groupName = "testGroup";
    CreateCenterEnterDataPage.SubmitFormParameters formParameters = new CreateCenterEnterDataPage.SubmitFormParameters();
    formParameters = setCenterParameters();
    centerTestHelper.createCenter(formParameters, "MyOfficeDHMFT");
    CreateGroupSubmitParameters groupParams = new CreateGroupSubmitParameters();
    groupParams.setGroupName(groupName);
    GroupTestHelper groupTestHelper = new GroupTestHelper(selenium);
    groupTestHelper.createNewGroupPartialApplication("Default Center", groupParams);
    clientTestHelper.createClientAndVerify("loan officer", "MyOfficeDHMFT");
    // restore original configuration
    propertiesHelper.setWorkingDays("Monday,Tuesday,Wednesday,Thursday,Friday,Saturday");
}
Also used : CreateCenterEnterDataPage(org.mifos.test.acceptance.framework.center.CreateCenterEnterDataPage) GroupTestHelper(org.mifos.test.acceptance.framework.testhelpers.GroupTestHelper) CreateGroupSubmitParameters(org.mifos.test.acceptance.framework.group.CreateGroupEntryPage.CreateGroupSubmitParameters) CreateMeetingPage(org.mifos.test.acceptance.framework.center.CreateMeetingPage) SubmitFormParameters(org.mifos.test.acceptance.framework.loanproduct.DefineNewLoanProductPage.SubmitFormParameters) CreateClientEnterMfiDataPage(org.mifos.test.acceptance.framework.client.CreateClientEnterMfiDataPage) Test(org.testng.annotations.Test)

Example 8 with GroupTestHelper

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

the class UpdateCustomPropertiesTest method verifyPropertyGroupPendingApprovalStateEnabled.

@SuppressWarnings("PMD.SignatureDeclareThrowsException")
//http://mifosforge.jira.com/browse/MIFOSTEST-211
@Test(enabled = true)
public void verifyPropertyGroupPendingApprovalStateEnabled() throws Exception {
    //Given
    propertiesHelper.setGroupPendingApprovalStateEnabled("false");
    //When
    GroupTestHelper groupTestHelper = new GroupTestHelper(selenium);
    CreateGroupSubmitParameters groupParams = new CreateGroupSubmitParameters();
    groupParams.setGroupName("testGroup123123123123");
    GroupViewDetailsPage groupViewDetailsPage = groupTestHelper.createNewGroupWithoutPendingForApproval("Default Center", groupParams);
    //Then
    groupViewDetailsPage.verifyStatus("Active");
    propertiesHelper.setGroupPendingApprovalStateEnabled("true");
}
Also used : GroupTestHelper(org.mifos.test.acceptance.framework.testhelpers.GroupTestHelper) CreateGroupSubmitParameters(org.mifos.test.acceptance.framework.group.CreateGroupEntryPage.CreateGroupSubmitParameters) GroupViewDetailsPage(org.mifos.test.acceptance.framework.group.GroupViewDetailsPage) Test(org.testng.annotations.Test)

Aggregations

GroupTestHelper (org.mifos.test.acceptance.framework.testhelpers.GroupTestHelper)8 NavigationHelper (org.mifos.test.acceptance.framework.testhelpers.NavigationHelper)4 QuestionGroupTestHelper (org.mifos.test.acceptance.framework.testhelpers.QuestionGroupTestHelper)4 BeforeMethod (org.testng.annotations.BeforeMethod)4 CreateGroupSubmitParameters (org.mifos.test.acceptance.framework.group.CreateGroupEntryPage.CreateGroupSubmitParameters)3 ClientTestHelper (org.mifos.test.acceptance.framework.testhelpers.ClientTestHelper)3 Test (org.testng.annotations.Test)3 AppLauncher (org.mifos.test.acceptance.framework.AppLauncher)2 CenterTestHelper (org.mifos.test.acceptance.framework.testhelpers.CenterTestHelper)2 LoanTestHelper (org.mifos.test.acceptance.framework.testhelpers.LoanTestHelper)2 DateTimeUpdaterRemoteTestingService (org.mifos.test.acceptance.remote.DateTimeUpdaterRemoteTestingService)2 Random (java.util.Random)1 DateTime (org.joda.time.DateTime)1 FeeTestHelper (org.mifos.test.acceptance.admin.FeeTestHelper)1 AdminPage (org.mifos.test.acceptance.framework.admin.AdminPage)1 DefineAcceptedPaymentTypesPage (org.mifos.test.acceptance.framework.admin.DefineAcceptedPaymentTypesPage)1 CreateCenterEnterDataPage (org.mifos.test.acceptance.framework.center.CreateCenterEnterDataPage)1 CreateMeetingPage (org.mifos.test.acceptance.framework.center.CreateMeetingPage)1 CreateClientEnterMfiDataPage (org.mifos.test.acceptance.framework.client.CreateClientEnterMfiDataPage)1 CreateGroupEntryPage (org.mifos.test.acceptance.framework.group.CreateGroupEntryPage)1