Search in sources :

Example 21 with CreateClientEnterPersonalDataPage

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

the class ClientTestHelper method createClient.

public CreateClientEnterPersonalDataPage createClient(String officeName, String dd, String mm, String yy) {
    CreateClientEnterPersonalDataPage clientPersonalDataPage = navigateToPersonalDataPage(officeName);
    CreateClientEnterPersonalDataPage.SubmitFormParameters formParameters = new CreateClientEnterPersonalDataPage.SubmitFormParameters();
    formParameters.setSalutation(CreateClientEnterPersonalDataPage.SubmitFormParameters.MRS);
    formParameters.setFirstName("test");
    formParameters.setLastName("Customer" + StringUtil.getRandomString(8));
    formParameters.setDateOfBirthDD(dd);
    formParameters.setDateOfBirthMM(mm);
    formParameters.setDateOfBirthYYYY(yy);
    formParameters.setGender(CreateClientEnterPersonalDataPage.SubmitFormParameters.FEMALE);
    formParameters.setPovertyStatus(CreateClientEnterPersonalDataPage.SubmitFormParameters.POOR);
    formParameters.setHandicapped("Yes");
    formParameters.setSpouseNameType(CreateClientEnterPersonalDataPage.SubmitFormParameters.FATHER);
    formParameters.setSpouseFirstName("father");
    formParameters.setSpouseLastName("lastname" + StringUtil.getRandomString(8));
    return clientPersonalDataPage.create(formParameters);
}
Also used : CreateClientEnterPersonalDataPage(org.mifos.test.acceptance.framework.client.CreateClientEnterPersonalDataPage)

Aggregations

CreateClientEnterPersonalDataPage (org.mifos.test.acceptance.framework.client.CreateClientEnterPersonalDataPage)21 CreateClientEnterMfiDataPage (org.mifos.test.acceptance.framework.client.CreateClientEnterMfiDataPage)10 CreateClientEnterFamilyDetailsPage (org.mifos.test.acceptance.framework.client.CreateClientEnterFamilyDetailsPage)8 CreateClientPreviewDataPage (org.mifos.test.acceptance.framework.client.CreateClientPreviewDataPage)8 Test (org.testng.annotations.Test)8 ClientsAndAccountsHomepage (org.mifos.test.acceptance.framework.ClientsAndAccountsHomepage)3 AdminPage (org.mifos.test.acceptance.framework.admin.AdminPage)3 DefineHiddenMandatoryFieldsPage (org.mifos.test.acceptance.framework.admin.DefineHiddenMandatoryFieldsPage)3 SubmitFormParameters (org.mifos.test.acceptance.framework.admin.FeesCreatePage.SubmitFormParameters)2 MeetingParameters (org.mifos.test.acceptance.framework.center.MeetingParameters)2 ClientViewDetailsPage (org.mifos.test.acceptance.framework.client.ClientViewDetailsPage)2 CreateClientConfirmationPage (org.mifos.test.acceptance.framework.client.CreateClientConfirmationPage)2 CreateGroupSearchPage (org.mifos.test.acceptance.framework.group.CreateGroupSearchPage)2 CreateLoanAccountSearchPage (org.mifos.test.acceptance.framework.loan.CreateLoanAccountSearchPage)2 CreateLoanAccountSearchParameters (org.mifos.test.acceptance.framework.loan.CreateLoanAccountSearchParameters)2 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 GroupViewDetailsPage (org.mifos.test.acceptance.framework.group.GroupViewDetailsPage)1 QuestionResponsePage (org.mifos.test.acceptance.framework.questionnaire.QuestionResponsePage)1