Search in sources :

Example 16 with MeetingParameters

use of org.mifos.test.acceptance.framework.center.MeetingParameters in project head by mifos.

the class UpdateCustomPropertiesTest method verifyPropertyClientRulesCenterHierarchyExistsTrue.

@SuppressWarnings("PMD.SignatureDeclareThrowsException")
//http://mifosforge.jira.com/browse/MIFOSTEST-231
@Test(enabled = true)
public void verifyPropertyClientRulesCenterHierarchyExistsTrue() throws Exception {
    //Given
    propertiesHelper.setCenterHierarchyExists("true");
    //When
    CreateCenterEnterDataPage.SubmitFormParameters formParameters = new CreateCenterEnterDataPage.SubmitFormParameters();
    formParameters.setCenterName("testCenterName12123");
    formParameters.setLoanOfficer("loan officer");
    MeetingParameters meeting = new MeetingParameters();
    meeting.setMeetingPlace("Bangalore");
    meeting.setWeekDay(MeetingParameters.WeekDay.WEDNESDAY);
    meeting.setWeekFrequency("1");
    formParameters.setMeeting(meeting);
    CenterViewDetailsPage centerViewDetailsPage = centerTestHelper.createCenter(formParameters, "MyOfficeDHMFT");
    //Then
    centerViewDetailsPage.verifyActiveCenter(formParameters);
}
Also used : CreateCenterEnterDataPage(org.mifos.test.acceptance.framework.center.CreateCenterEnterDataPage) MeetingParameters(org.mifos.test.acceptance.framework.center.MeetingParameters) CenterViewDetailsPage(org.mifos.test.acceptance.framework.center.CenterViewDetailsPage) SubmitFormParameters(org.mifos.test.acceptance.framework.loanproduct.DefineNewLoanProductPage.SubmitFormParameters) Test(org.testng.annotations.Test)

Example 17 with MeetingParameters

use of org.mifos.test.acceptance.framework.center.MeetingParameters in project head by mifos.

the class ClientTestHelper method navigateToConfirmationPage.

private CreateClientConfirmationPage navigateToConfirmationPage(String loanOfficer) {
    CreateClientEnterMfiDataPage.SubmitFormParameters mfiFormParameters = new CreateClientEnterMfiDataPage.SubmitFormParameters();
    mfiFormParameters.setLoanOfficerId(loanOfficer);
    MeetingParameters meetingFormParameters = new MeetingParameters();
    meetingFormParameters.setWeekFrequency("1");
    meetingFormParameters.setWeekDay(MeetingParameters.WeekDay.WEDNESDAY);
    meetingFormParameters.setMeetingPlace("Bangalore");
    mfiFormParameters.setMeeting(meetingFormParameters);
    CreateClientPreviewDataPage clientPreviewDataPage = new CreateClientEnterMfiDataPage(selenium).submitAndGotoCreateClientPreviewDataPage(mfiFormParameters);
    CreateClientConfirmationPage clientConfirmationPage = clientPreviewDataPage.submit();
    clientConfirmationPage.verifyPage();
    return clientConfirmationPage;
}
Also used : MeetingParameters(org.mifos.test.acceptance.framework.center.MeetingParameters) CreateClientPreviewDataPage(org.mifos.test.acceptance.framework.client.CreateClientPreviewDataPage) CreateClientEnterMfiDataPage(org.mifos.test.acceptance.framework.client.CreateClientEnterMfiDataPage) CreateClientConfirmationPage(org.mifos.test.acceptance.framework.client.CreateClientConfirmationPage)

Aggregations

MeetingParameters (org.mifos.test.acceptance.framework.center.MeetingParameters)17 DateTime (org.joda.time.DateTime)7 CreateLoanAccountEntryPage (org.mifos.test.acceptance.framework.loan.CreateLoanAccountEntryPage)6 LoanTestHelper (org.mifos.test.acceptance.framework.testhelpers.LoanTestHelper)6 CreateCenterEnterDataPage (org.mifos.test.acceptance.framework.center.CreateCenterEnterDataPage)5 Test (org.testng.annotations.Test)5 CreateClientEnterMfiDataPage (org.mifos.test.acceptance.framework.client.CreateClientEnterMfiDataPage)4 CreateClientConfirmationPage (org.mifos.test.acceptance.framework.client.CreateClientConfirmationPage)3 CreateClientPreviewDataPage (org.mifos.test.acceptance.framework.client.CreateClientPreviewDataPage)3 CreateClientEnterPersonalDataPage (org.mifos.test.acceptance.framework.client.CreateClientEnterPersonalDataPage)2 ApplyPaymentPage (org.mifos.test.acceptance.framework.loan.ApplyPaymentPage)2 SubmitFormParameters (org.mifos.test.acceptance.framework.loanproduct.DefineNewLoanProductPage.SubmitFormParameters)2 NavigationHelper (org.mifos.test.acceptance.framework.testhelpers.NavigationHelper)2 AdminPage (org.mifos.test.acceptance.framework.admin.AdminPage)1 DefineAcceptedPaymentTypesPage (org.mifos.test.acceptance.framework.admin.DefineAcceptedPaymentTypesPage)1 SubmitFormParameters (org.mifos.test.acceptance.framework.admin.FeesCreatePage.SubmitFormParameters)1 CenterViewDetailsPage (org.mifos.test.acceptance.framework.center.CenterViewDetailsPage)1 ViewCenterChargesDetailPage (org.mifos.test.acceptance.framework.center.ViewCenterChargesDetailPage)1 ApplyChargesPage (org.mifos.test.acceptance.framework.client.ApplyChargesPage)1 ApplyPaymentConfirmationPage (org.mifos.test.acceptance.framework.loan.ApplyPaymentConfirmationPage)1