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);
}
Aggregations