Search in sources :

Example 11 with CreateClientEnterMfiDataPage

use of org.mifos.test.acceptance.framework.client.CreateClientEnterMfiDataPage in project head by mifos.

the class AddFamilyDetailsTest method addFamilyWithAllNamesTest.

@SuppressWarnings("PMD.SignatureDeclareThrowsException")
public void addFamilyWithAllNamesTest() throws Exception {
    propertiesHelper.setMaximumNumberOfFamilyMemebers(10);
    CreateClientEnterPersonalDataPage clientPersonalDataPage = clientTestHelper.createClientForFamilyInfo("MyOfficeDHMFT", "11", "12", "1988");
    CreateClientEnterFamilyDetailsPage clientFamilyDataPage = clientPersonalDataPage.submitAndGotoCreateClientEnterFamilyDetailsPage();
    clientFamilyDataPage = clientTestHelper.createFamilyWithAllName("fname", "lname", "mname", "slname", "11", "01", "1987", clientFamilyDataPage);
    CreateClientEnterMfiDataPage nextPage = clientFamilyDataPage.submitAndGotoCreateClientEnterMfiDataPage();
    CreateClientPreviewDataPage clientPreviewDataPage = clientTestHelper.createClientMFIInformationAndGoToPreviewPage("loan officer", nextPage);
    CreateClientEnterFamilyDetailsPage editPage = clientPreviewDataPage.edit();
    editPage.verifyPage("CreateClientFamilyInfo");
}
Also used : CreateClientEnterPersonalDataPage(org.mifos.test.acceptance.framework.client.CreateClientEnterPersonalDataPage) CreateClientPreviewDataPage(org.mifos.test.acceptance.framework.client.CreateClientPreviewDataPage) CreateClientEnterFamilyDetailsPage(org.mifos.test.acceptance.framework.client.CreateClientEnterFamilyDetailsPage) CreateClientEnterMfiDataPage(org.mifos.test.acceptance.framework.client.CreateClientEnterMfiDataPage)

Example 12 with CreateClientEnterMfiDataPage

use of org.mifos.test.acceptance.framework.client.CreateClientEnterMfiDataPage in project head by mifos.

the class AddFamilyDetailsTest method canGoTosubmitAfterPreviewPageTest.

@SuppressWarnings("PMD.SignatureDeclareThrowsException")
public void canGoTosubmitAfterPreviewPageTest() throws Exception {
    propertiesHelper.setMaximumNumberOfFamilyMemebers(10);
    CreateClientEnterPersonalDataPage clientPersonalDataPage = clientTestHelper.createClientForFamilyInfo("MyOfficeDHMFT", "11", "12", "1988");
    CreateClientEnterFamilyDetailsPage clientFamilyDataPage = clientPersonalDataPage.submitAndGotoCreateClientEnterFamilyDetailsPage();
    clientFamilyDataPage = clientTestHelper.createFamily("fname", "lname", "11", "01", "1987", clientFamilyDataPage);
    CreateClientEnterMfiDataPage nextPage = clientFamilyDataPage.submitAndGotoCreateClientEnterMfiDataPage();
    CreateClientPreviewDataPage clientPreviewDataPage = clientTestHelper.createClientMFIInformationAndGoToPreviewPage("loan officer", nextPage);
    clientPreviewDataPage.submit();
    selenium.click("client_creationConfirmation.link.viewClientDetailsLink");
    selenium.waitForPageToLoad("30000");
    new ClientViewDetailsPage(selenium);
}
Also used : CreateClientEnterPersonalDataPage(org.mifos.test.acceptance.framework.client.CreateClientEnterPersonalDataPage) CreateClientPreviewDataPage(org.mifos.test.acceptance.framework.client.CreateClientPreviewDataPage) CreateClientEnterFamilyDetailsPage(org.mifos.test.acceptance.framework.client.CreateClientEnterFamilyDetailsPage) ClientViewDetailsPage(org.mifos.test.acceptance.framework.client.ClientViewDetailsPage) CreateClientEnterMfiDataPage(org.mifos.test.acceptance.framework.client.CreateClientEnterMfiDataPage)

Example 13 with CreateClientEnterMfiDataPage

use of org.mifos.test.acceptance.framework.client.CreateClientEnterMfiDataPage in project head by mifos.

the class AddFamilyDetailsTest method goToPreviewPageTest.

@SuppressWarnings("PMD.SignatureDeclareThrowsException")
public void goToPreviewPageTest() throws Exception {
    propertiesHelper.setMaximumNumberOfFamilyMemebers(10);
    CreateClientEnterPersonalDataPage clientPersonalDataPage = clientTestHelper.createClientForFamilyInfo("MyOfficeDHMFT", "11", "12", "1988");
    CreateClientEnterFamilyDetailsPage clientFamilyDataPage = clientPersonalDataPage.submitAndGotoCreateClientEnterFamilyDetailsPage();
    clientFamilyDataPage = clientTestHelper.createFamily("fname", "lname", "11", "01", "1987", clientFamilyDataPage);
    CreateClientEnterMfiDataPage nextPage = clientFamilyDataPage.submitAndGotoCreateClientEnterMfiDataPage();
    clientTestHelper.createClientMFIInformationAndGoToPreviewPage("loan officer", nextPage);
    Assert.assertEquals(selenium.getText("displayName"), "fname lname");
}
Also used : CreateClientEnterPersonalDataPage(org.mifos.test.acceptance.framework.client.CreateClientEnterPersonalDataPage) CreateClientEnterFamilyDetailsPage(org.mifos.test.acceptance.framework.client.CreateClientEnterFamilyDetailsPage) CreateClientEnterMfiDataPage(org.mifos.test.acceptance.framework.client.CreateClientEnterMfiDataPage)

Example 14 with CreateClientEnterMfiDataPage

use of org.mifos.test.acceptance.framework.client.CreateClientEnterMfiDataPage 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)

Aggregations

CreateClientEnterMfiDataPage (org.mifos.test.acceptance.framework.client.CreateClientEnterMfiDataPage)14 CreateClientEnterPersonalDataPage (org.mifos.test.acceptance.framework.client.CreateClientEnterPersonalDataPage)10 CreateClientPreviewDataPage (org.mifos.test.acceptance.framework.client.CreateClientPreviewDataPage)9 CreateClientEnterFamilyDetailsPage (org.mifos.test.acceptance.framework.client.CreateClientEnterFamilyDetailsPage)7 MeetingParameters (org.mifos.test.acceptance.framework.center.MeetingParameters)4 CreateClientConfirmationPage (org.mifos.test.acceptance.framework.client.CreateClientConfirmationPage)3 Test (org.testng.annotations.Test)3 ClientViewDetailsPage (org.mifos.test.acceptance.framework.client.ClientViewDetailsPage)2 SubmitFormParameters (org.mifos.test.acceptance.framework.admin.FeesCreatePage.SubmitFormParameters)1 CreateCenterEnterDataPage (org.mifos.test.acceptance.framework.center.CreateCenterEnterDataPage)1 CreateMeetingPage (org.mifos.test.acceptance.framework.center.CreateMeetingPage)1 ClientEditFamilyPage (org.mifos.test.acceptance.framework.client.ClientEditFamilyPage)1 ClientEditFamilyParameters (org.mifos.test.acceptance.framework.client.ClientEditFamilyParameters)1 ClientFamilyEditPreviewPage (org.mifos.test.acceptance.framework.client.ClientFamilyEditPreviewPage)1 CreateGroupSubmitParameters (org.mifos.test.acceptance.framework.group.CreateGroupEntryPage.CreateGroupSubmitParameters)1 SubmitFormParameters (org.mifos.test.acceptance.framework.loanproduct.DefineNewLoanProductPage.SubmitFormParameters)1 QuestionResponsePage (org.mifos.test.acceptance.framework.questionnaire.QuestionResponsePage)1 GroupTestHelper (org.mifos.test.acceptance.framework.testhelpers.GroupTestHelper)1