Search in sources :

Example 1 with EditCustomerStatusParameters

use of org.mifos.test.acceptance.framework.group.EditCustomerStatusParameters in project head by mifos.

the class TestDataSetup method setApprovalStatus.

private EditCustomerStatusParameters setApprovalStatus() {
    EditCustomerStatusParameters parameters = new EditCustomerStatusParameters();
    parameters.setClientStatus(ClientStatus.ACTIVE);
    parameters.setNote("For Test");
    return parameters;
}
Also used : EditCustomerStatusParameters(org.mifos.test.acceptance.framework.group.EditCustomerStatusParameters)

Example 2 with EditCustomerStatusParameters

use of org.mifos.test.acceptance.framework.group.EditCustomerStatusParameters in project head by mifos.

the class ClientTestHelper method navigateToQuestionResponsePageWhenCloseClientAccount.

public QuestionResponsePage navigateToQuestionResponsePageWhenCloseClientAccount(String clientName) {
    EditCustomerStatusParameters editCustomerStatusParameters = new EditCustomerStatusParameters();
    editCustomerStatusParameters.setClientStatus(ClientStatus.CLOSED);
    editCustomerStatusParameters.setClientCloseReason(ClientCloseReason.LEFT_PROGRAM);
    editCustomerStatusParameters.setNote("Close client account");
    ClientViewDetailsPage clientDetailsPage = navigationHelper.navigateToClientViewDetailsPage(clientName);
    CustomerChangeStatusPage statusChangePage = clientDetailsPage.navigateToCustomerChangeStatusPage();
    return statusChangePage.changeStatusAndNavigateToQuestionResponsePage(editCustomerStatusParameters);
}
Also used : ClientViewDetailsPage(org.mifos.test.acceptance.framework.client.ClientViewDetailsPage) EditCustomerStatusParameters(org.mifos.test.acceptance.framework.group.EditCustomerStatusParameters) CustomerChangeStatusPage(org.mifos.test.acceptance.framework.customer.CustomerChangeStatusPage)

Example 3 with EditCustomerStatusParameters

use of org.mifos.test.acceptance.framework.group.EditCustomerStatusParameters in project head by mifos.

the class ClientTestHelper method closeClientWithQG.

public ClientViewDetailsPage closeClientWithQG(String clientName, QuestionResponseParameters responseParamsAfterModyfication) {
    EditCustomerStatusParameters editCustomerStatusParameters = new EditCustomerStatusParameters();
    editCustomerStatusParameters.setClientStatus(ClientStatus.CLOSED);
    editCustomerStatusParameters.setClientCloseReason(ClientCloseReason.LEFT_PROGRAM);
    editCustomerStatusParameters.setNote("Close client account");
    ClientViewDetailsPage clientDetailsPage = navigationHelper.navigateToClientViewDetailsPage(clientName);
    CustomerChangeStatusPage statusChangePage = clientDetailsPage.navigateToCustomerChangeStatusPage();
    QuestionResponsePage questionResponsePage = statusChangePage.changeStatusAndNavigateToQuestionResponsePage(editCustomerStatusParameters);
    questionResponsePage.populateAnswers(responseParamsAfterModyfication);
    questionResponsePage.navigateToNextPage();
    new CustomerChangeStatusPreviewPage(selenium).submitAndGotoClientViewDetailsPage();
    return new ClientViewDetailsPage(selenium);
}
Also used : QuestionResponsePage(org.mifos.test.acceptance.framework.questionnaire.QuestionResponsePage) ClientViewDetailsPage(org.mifos.test.acceptance.framework.client.ClientViewDetailsPage) EditCustomerStatusParameters(org.mifos.test.acceptance.framework.group.EditCustomerStatusParameters) CustomerChangeStatusPage(org.mifos.test.acceptance.framework.customer.CustomerChangeStatusPage) CustomerChangeStatusPreviewPage(org.mifos.test.acceptance.framework.customer.CustomerChangeStatusPreviewPage)

Example 4 with EditCustomerStatusParameters

use of org.mifos.test.acceptance.framework.group.EditCustomerStatusParameters in project head by mifos.

the class CreateMultipleLoanAccountTest method verifyInactiveBranchesOfficersCentersDoesntAppearOnSearch.

/**
     * Verify that only "Active" branches, centers and loan officers are available
     * on the Search field and "Loan Instances" field populates with the names
     * of loan instances matching the frequency of the center selected.
     * http://mifosforge.jira.com/browse/MIFOSTEST-59
     *
     * @throws Exception
     */
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
public void verifyInactiveBranchesOfficersCentersDoesntAppearOnSearch() throws Exception {
    EditCustomerStatusParameters customerStatusParams = new EditCustomerStatusParameters();
    customerStatusParams.setCenterStatus(CenterStatus.INACTIVE);
    customerStatusParams.setNote("note");
    CreateLoanAccountsSearchPage multipleAccPage = navigateToCreateMultipleLoanAccountsSearchPage();
    multipleAccPage.selectBranchOfficerAndCenter("branch2", "loanofficerbranch2 loanofficerbranch2", "branch2 center");
    userHelper.changeUserStatus("loanofficerbranch2 loanofficerbranch2", EditUserDataPage.STATUS_INACTIVE);
    centerTestHelper.changeCenterStatus("branch2 center", customerStatusParams);
    officeHelper.changeOfficeStatus("branch2", OfficeEditInformationPage.STATUS_INACTIVE);
    multipleAccPage = navigateToCreateMultipleLoanAccountsSearchPage();
    multipleAccPage.verifyBranchNotInSelectOptions("branch2");
    officeHelper.changeOfficeStatus("branch2", OfficeEditInformationPage.STATUS_ACTIVE);
    multipleAccPage = navigateToCreateMultipleLoanAccountsSearchPage();
    multipleAccPage.verifyOfficerNotInSelectOptions("branch2", "loanofficerbranch2 loanofficerbranch2");
    multipleAccPage.verifyCenterIsNotInSelectOptions("branch2", "branch2 center");
}
Also used : EditCustomerStatusParameters(org.mifos.test.acceptance.framework.group.EditCustomerStatusParameters) CreateLoanAccountsSearchPage(org.mifos.test.acceptance.framework.loan.CreateLoanAccountsSearchPage)

Example 5 with EditCustomerStatusParameters

use of org.mifos.test.acceptance.framework.group.EditCustomerStatusParameters in project head by mifos.

the class ClientTest method changeClientStatusToCancelWithReason.

private ClientViewDetailsPage changeClientStatusToCancelWithReason(String note, CancelReason reason, ClientViewDetailsPage clientDetailsPage) {
    String STATUS_CANCELLED = "Cancelled";
    //prepare parameters
    EditCustomerStatusParameters statusParameters = new EditCustomerStatusParameters();
    statusParameters.setClientStatus(ClientStatus.CANCELLED);
    statusParameters.setNote(note);
    statusParameters.setCancelReason(reason);
    //change status
    ClientViewDetailsPage newClientDetailsPage = clientTestHelper.changeCustomerStatus(clientDetailsPage.getHeading(), statusParameters);
    //verify that status has changed
    newClientDetailsPage.verifyStatus(STATUS_CANCELLED);
    return clientDetailsPage;
}
Also used : ClientViewDetailsPage(org.mifos.test.acceptance.framework.client.ClientViewDetailsPage) EditCustomerStatusParameters(org.mifos.test.acceptance.framework.group.EditCustomerStatusParameters)

Aggregations

EditCustomerStatusParameters (org.mifos.test.acceptance.framework.group.EditCustomerStatusParameters)20 ClientViewDetailsPage (org.mifos.test.acceptance.framework.client.ClientViewDetailsPage)11 Test (org.testng.annotations.Test)10 CustomerChangeStatusPage (org.mifos.test.acceptance.framework.customer.CustomerChangeStatusPage)9 CreateGroupSubmitParameters (org.mifos.test.acceptance.framework.group.CreateGroupEntryPage.CreateGroupSubmitParameters)7 CustomerChangeStatusPreviewPage (org.mifos.test.acceptance.framework.customer.CustomerChangeStatusPreviewPage)6 GroupViewDetailsPage (org.mifos.test.acceptance.framework.group.GroupViewDetailsPage)4 HomePage (org.mifos.test.acceptance.framework.HomePage)2 ClientSearchResultsPage (org.mifos.test.acceptance.framework.client.ClientSearchResultsPage)2 CreateClientEnterPersonalDataPage (org.mifos.test.acceptance.framework.client.CreateClientEnterPersonalDataPage)2 CreateGroupConfirmationPage (org.mifos.test.acceptance.framework.group.CreateGroupConfirmationPage)2 CreateGroupEntryPage (org.mifos.test.acceptance.framework.group.CreateGroupEntryPage)2 QuestionResponsePage (org.mifos.test.acceptance.framework.questionnaire.QuestionResponsePage)2 SearchResultsPage (org.mifos.test.acceptance.framework.search.SearchResultsPage)2 ArrayList (java.util.ArrayList)1 HashMap (java.util.HashMap)1 List (java.util.List)1 DefineHiddenMandatoryFieldsPage (org.mifos.test.acceptance.framework.admin.DefineHiddenMandatoryFieldsPage)1 SubmitFormParameters (org.mifos.test.acceptance.framework.admin.FeesCreatePage.SubmitFormParameters)1 ManageRolePage (org.mifos.test.acceptance.framework.admin.ManageRolePage)1