Search in sources :

Example 31 with ClientViewDetailsPage

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

the class LoanTestHelper method verifyLoansAreNotOnClientsLoanLists.

public void verifyLoansAreNotOnClientsLoanLists(String[] clients, String productName) {
    ClientsAndAccountsHomepage clientsAndAccountsHomepage = navigationHelper.navigateToClientsAndAccountsPage();
    for (String client : clients) {
        ClientViewDetailsPage clientViewDetailsPage = clientsAndAccountsHomepage.searchForClient(client).navigateToSearchResult(client);
        clientViewDetailsPage.verifyLoanDoesntExist(productName);
        clientsAndAccountsHomepage = clientViewDetailsPage.navigateToClientsAndAccountsPageUsingHeaderTab();
    }
}
Also used : ClientViewDetailsPage(org.mifos.test.acceptance.framework.client.ClientViewDetailsPage) ClientsAndAccountsHomepage(org.mifos.test.acceptance.framework.ClientsAndAccountsHomepage)

Example 32 with ClientViewDetailsPage

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

the class ViewClosedAccountsTest method navigateToClientDetailsFromClosedAccounts.

@SuppressWarnings("PMD.SignatureDeclareThrowsException")
public void navigateToClientDetailsFromClosedAccounts() throws Exception {
    LoginPage loginPage = appLauncher.launchMifos();
    HomePage homePage = loginPage.loginSuccessfullyUsingDefaultCredentials();
    homePage.verifyPage();
    SearchResultsPage searchResultsPage = homePage.search("Client1233266063395");
    searchResultsPage.verifyPage();
    ClientViewDetailsPage clientViewDetailsPage = searchResultsPage.navigateToClientViewDetailsPage("link=Stu*");
    ClosedAccountsPage closedAccountsPage = clientViewDetailsPage.navigateToClosedAccountsPage();
    closedAccountsPage.verifyPage();
    closedAccountsPage.returnToClientViewDetailsPage();
}
Also used : SearchResultsPage(org.mifos.test.acceptance.framework.search.SearchResultsPage) HomePage(org.mifos.test.acceptance.framework.HomePage) ClientViewDetailsPage(org.mifos.test.acceptance.framework.client.ClientViewDetailsPage) ClosedAccountsPage(org.mifos.test.acceptance.framework.loan.ClosedAccountsPage) LoginPage(org.mifos.test.acceptance.framework.login.LoginPage)

Example 33 with ClientViewDetailsPage

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

the class ClientTest method moveClientToGroupWithDifferentMeetingFrequencyTest.

@Test(enabled = true)
public void moveClientToGroupWithDifferentMeetingFrequencyTest() {
    //Given
    String startGroupName = "GroupWeekly";
    String destinationGroupName = "MonthlyGroup";
    //client
    CreateClientEnterPersonalDataPage.SubmitFormParameters clientParams = clientParams();
    clientParams.setFirstName("John");
    clientParams.setLastName("DoeTest");
    ClientViewDetailsPage clientPage = clientTestHelper.createNewClient(startGroupName, clientParams);
    //When     
    clientPage.navigateToEditRemoveGroupMembership().searchGroup(destinationGroupName).selectGroupToAdd(destinationGroupName).submitAddGroup();
    //Then
    clientPage.verifyGroupMembership(destinationGroupName);
}
Also used : CreateClientEnterPersonalDataPage(org.mifos.test.acceptance.framework.client.CreateClientEnterPersonalDataPage) ClientViewDetailsPage(org.mifos.test.acceptance.framework.client.ClientViewDetailsPage) Test(org.testng.annotations.Test)

Example 34 with ClientViewDetailsPage

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

the class ClientTest method addingMemeberOnHoldStatusToGroupWithDiffrentStatuses.

@SuppressWarnings("PMD.SignatureDeclareThrowsException")
//TODO http://mifosforge.jira.com/browse/MIFOS-5081
@Test(enabled = false)
public void addingMemeberOnHoldStatusToGroupWithDiffrentStatuses() throws Exception {
    String groupName = "testGroup";
    String clientName = "test";
    CreateGroupSubmitParameters groupParams = new CreateGroupSubmitParameters();
    groupParams.setGroupName(groupName);
    EditCustomerStatusParameters editCustomerStatusParameters = new EditCustomerStatusParameters();
    editCustomerStatusParameters.setNote("change status");
    // When
    ClientViewDetailsPage clientDetailsPage = clientTestHelper.createClientAndVerify("loan officer", "MyOfficeDHMFT");
    clientTestHelper.changeCustomerStatus(clientDetailsPage, ClientStatus.ACTIVE);
    clientTestHelper.changeCustomerStatus(clientDetailsPage, ClientStatus.ON_HOLD);
    groupTestHelper.createNewGroupPartialApplication("Default Center", groupParams);
    // Then
    clientTestHelper.addClientToGroupWithErrorGroupLowerStatus(clientName, groupName);
    // When
    editCustomerStatusParameters.setGroupStatus(GroupStatus.PENDING_APPROVAL);
    groupTestHelper.changeGroupStatus(groupName, editCustomerStatusParameters);
    // Then
    clientTestHelper.addClientToGroupWithErrorGroupLowerStatus(clientName, groupName);
    // When
    editCustomerStatusParameters.setGroupStatus(GroupStatus.ACTIVE);
    groupTestHelper.changeGroupStatus(groupName, editCustomerStatusParameters);
    // Then
    clientTestHelper.addClientToGroup(clientName, groupName);
}
Also used : CreateGroupSubmitParameters(org.mifos.test.acceptance.framework.group.CreateGroupEntryPage.CreateGroupSubmitParameters) ClientViewDetailsPage(org.mifos.test.acceptance.framework.client.ClientViewDetailsPage) EditCustomerStatusParameters(org.mifos.test.acceptance.framework.group.EditCustomerStatusParameters) Test(org.testng.annotations.Test)

Example 35 with ClientViewDetailsPage

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

the class ClientTest method verifySequenceOfClientNamesInPropertiesFile.

/**
     * Verify that sequence of client names in the properties file is used for displaying the order of client names in
     * the UI http://mifosforge.jira.com/browse/MIFOSTEST-205
     *
     * @throws Exception
     */
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
@Test(enabled = true)
public void verifySequenceOfClientNamesInPropertiesFile() throws Exception {
    String groupName = "group";
    CreateClientEnterPersonalDataPage.SubmitFormParameters clientParams = new CreateClientEnterPersonalDataPage.SubmitFormParameters();
    clientParams.setSalutation(CreateClientEnterPersonalDataPage.SubmitFormParameters.MRS);
    clientParams.setFirstName("firstName");
    clientParams.setMiddleName("middleName");
    clientParams.setLastName("lastName");
    clientParams.setSecondLastName("secondLastName");
    clientParams.setDateOfBirthDD("22");
    clientParams.setDateOfBirthMM("05");
    clientParams.setDateOfBirthYYYY("1987");
    clientParams.setGender(CreateClientEnterPersonalDataPage.SubmitFormParameters.FEMALE);
    clientParams.setPovertyStatus(CreateClientEnterPersonalDataPage.SubmitFormParameters.POOR);
    clientParams.setSpouseNameType(CreateClientEnterPersonalDataPage.SubmitFormParameters.FATHER);
    clientParams.setSpouseFirstName("fatherName");
    clientParams.setSpouseLastName("fatherLastName");
    ClientViewDetailsPage clientViewDetailsPage = clientTestHelper.createNewClient(groupName, clientParams);
    clientViewDetailsPage.verifyHeading("firstName middleName lastName secondLastName");
    propertiesHelper.setClientsNameSequence("last_name,second_last_name,middle_name,first_name");
    clientParams.setFirstName("firstName2");
    clientViewDetailsPage = clientTestHelper.createNewClient(groupName, clientParams);
    clientViewDetailsPage.verifyHeading("lastName secondLastName middleName firstName2");
    propertiesHelper.setClientsNameSequence("first_name,middle_name,last_name,second_last_name");
    clientParams.setFirstName("firstName3");
    clientViewDetailsPage = clientTestHelper.createNewClient(groupName, clientParams);
    clientViewDetailsPage.verifyHeading("firstName3 middleName lastName secondLastName");
}
Also used : CreateClientEnterPersonalDataPage(org.mifos.test.acceptance.framework.client.CreateClientEnterPersonalDataPage) ClientViewDetailsPage(org.mifos.test.acceptance.framework.client.ClientViewDetailsPage) SubmitFormParameters(org.mifos.test.acceptance.framework.admin.FeesCreatePage.SubmitFormParameters) Test(org.testng.annotations.Test)

Aggregations

ClientViewDetailsPage (org.mifos.test.acceptance.framework.client.ClientViewDetailsPage)47 Test (org.testng.annotations.Test)17 EditCustomerStatusParameters (org.mifos.test.acceptance.framework.group.EditCustomerStatusParameters)11 CreateClientEnterPersonalDataPage (org.mifos.test.acceptance.framework.client.CreateClientEnterPersonalDataPage)10 CustomerChangeStatusPage (org.mifos.test.acceptance.framework.customer.CustomerChangeStatusPage)8 CustomerChangeStatusPreviewPage (org.mifos.test.acceptance.framework.customer.CustomerChangeStatusPreviewPage)6 QuestionnairePage (org.mifos.test.acceptance.framework.questionnaire.QuestionnairePage)6 SubmitFormParameters (org.mifos.test.acceptance.framework.admin.FeesCreatePage.SubmitFormParameters)4 HomePage (org.mifos.test.acceptance.framework.HomePage)3 ClientSearchResultsPage (org.mifos.test.acceptance.framework.client.ClientSearchResultsPage)3 QuestionGroupResponsePage (org.mifos.test.acceptance.framework.questionnaire.QuestionGroupResponsePage)3 QuestionResponsePage (org.mifos.test.acceptance.framework.questionnaire.QuestionResponsePage)3 ArrayList (java.util.ArrayList)2 HashMap (java.util.HashMap)2 DateTime (org.joda.time.DateTime)2 ClientsAndAccountsHomepage (org.mifos.test.acceptance.framework.ClientsAndAccountsHomepage)2 MifosPage (org.mifos.test.acceptance.framework.MifosPage)2 ClientViewChangeLogPage (org.mifos.test.acceptance.framework.client.ClientViewChangeLogPage)2 CreateClientEnterFamilyDetailsPage (org.mifos.test.acceptance.framework.client.CreateClientEnterFamilyDetailsPage)2 CreateClientEnterMfiDataPage (org.mifos.test.acceptance.framework.client.CreateClientEnterMfiDataPage)2