Search in sources :

Example 1 with GroupViewDetailsPage

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

the class AttachSurveyLinkTest method attachSurveyToGroup.

@SuppressWarnings("PMD.SignatureDeclareThrowsException")
private void attachSurveyToGroup() throws Exception {
    GroupViewDetailsPage groupViewDetailsPage = navigationHelper.navigateToGroupViewDetailsPage("Default Group");
    AttachSurveyPage attachSurveyPage = groupViewDetailsPage.navigateToAttachSurveyPage();
    attachSurveyPage.verifyPage("selectQuestionnaire");
}
Also used : GroupViewDetailsPage(org.mifos.test.acceptance.framework.group.GroupViewDetailsPage) AttachSurveyPage(org.mifos.test.acceptance.framework.loan.AttachSurveyPage)

Example 2 with GroupViewDetailsPage

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

the class GroupTestHelper method changeGroupStatus.

public GroupViewDetailsPage changeGroupStatus(String groupName, EditCustomerStatusParameters editCustomerStatusParameters) {
    GroupViewDetailsPage groupViewDetailsPage = navigationHelper.navigateToGroupViewDetailsPage(groupName).navigateToEditGroupStatusPage().setChangeStatusParametersAndSubmit(editCustomerStatusParameters).navigateToGroupDetailsPage();
    groupViewDetailsPage.verifyStatus(editCustomerStatusParameters);
    return groupViewDetailsPage;
}
Also used : GroupViewDetailsPage(org.mifos.test.acceptance.framework.group.GroupViewDetailsPage)

Example 3 with GroupViewDetailsPage

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

the class NavigationHelper method navigateToGroupViewDetailsPage.

public GroupViewDetailsPage navigateToGroupViewDetailsPage(String groupName) {
    HomePage homePage = navigateToHomePage();
    SearchResultsPage searchResultsPage = homePage.search(groupName);
    searchResultsPage.verifyPage();
    GroupViewDetailsPage groupDetailsPage = searchResultsPage.navigateToGroupViewDetailsPage("link=" + groupName + "*");
    return groupDetailsPage;
}
Also used : SearchResultsPage(org.mifos.test.acceptance.framework.search.SearchResultsPage) HomePage(org.mifos.test.acceptance.framework.HomePage) GroupViewDetailsPage(org.mifos.test.acceptance.framework.group.GroupViewDetailsPage)

Example 4 with GroupViewDetailsPage

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

the class ViewClosedAccountsTest method navigateToGroupDetailsFromClosedAccounts.

@SuppressWarnings("PMD.SignatureDeclareThrowsException")
public void navigateToGroupDetailsFromClosedAccounts() throws Exception {
    LoginPage loginPage = appLauncher.launchMifos();
    HomePage homePage = loginPage.loginSuccessfullyUsingDefaultCredentials();
    homePage.verifyPage();
    SearchResultsPage searchResultsPage = homePage.search("groupWithoutLoan ");
    searchResultsPage.verifyPage();
    GroupViewDetailsPage groupViewDetailsPage = searchResultsPage.navigateToGroupViewDetailsPage("link=groupWithoutLoan*");
    ClosedAccountsPage closedAccountsPage = groupViewDetailsPage.navigateToClosedAccountsPage();
    closedAccountsPage.verifyPage();
    closedAccountsPage.returnToGroupViewDetailsPage();
}
Also used : SearchResultsPage(org.mifos.test.acceptance.framework.search.SearchResultsPage) HomePage(org.mifos.test.acceptance.framework.HomePage) GroupViewDetailsPage(org.mifos.test.acceptance.framework.group.GroupViewDetailsPage) ClosedAccountsPage(org.mifos.test.acceptance.framework.loan.ClosedAccountsPage) LoginPage(org.mifos.test.acceptance.framework.login.LoginPage)

Example 5 with GroupViewDetailsPage

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

the class UndoLoanDisbursalTest method reverseGroupLoanWhenAccInDiffStatus.

/**
     * Verify whether the user can reverse a Group loan when the Account is in different status
     * Group loan.
     * http://mifosforge.jira.com/browse/MIFOSTEST-26
     *
     * @throws Exception
     */
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
public void reverseGroupLoanWhenAccInDiffStatus() throws Exception {
    String groupID = "0002-000000004";
    String groupLoanID = "000100000000042";
    String resultClickLink = "group1: ID 0002-000000004";
    GroupViewDetailsPage groupViewDetailsPage = (GroupViewDetailsPage) loanTestHelper.reverseLoanDisbursal(groupLoanID, groupID, true, resultClickLink);
    groupViewDetailsPage.verifyLoanDoesntExist("Acct #" + groupLoanID);
    String loanID = "000100000000011";
    UndoLoanDisbursalSearchPage undoSearchPage = new NavigationHelper(selenium).navigateToAdminPage().navigateToUndoLoanDisbursal();
    undoSearchPage.verifyLoanCantBeReversed(loanID);
}
Also used : UndoLoanDisbursalSearchPage(org.mifos.test.acceptance.framework.loan.UndoLoanDisbursalSearchPage) NavigationHelper(org.mifos.test.acceptance.framework.testhelpers.NavigationHelper) GroupViewDetailsPage(org.mifos.test.acceptance.framework.group.GroupViewDetailsPage)

Aggregations

GroupViewDetailsPage (org.mifos.test.acceptance.framework.group.GroupViewDetailsPage)20 Test (org.testng.annotations.Test)10 CreateGroupSubmitParameters (org.mifos.test.acceptance.framework.group.CreateGroupEntryPage.CreateGroupSubmitParameters)9 CreateGroupConfirmationPage (org.mifos.test.acceptance.framework.group.CreateGroupConfirmationPage)4 CreateGroupEntryPage (org.mifos.test.acceptance.framework.group.CreateGroupEntryPage)4 EditCustomerStatusParameters (org.mifos.test.acceptance.framework.group.EditCustomerStatusParameters)4 HomePage (org.mifos.test.acceptance.framework.HomePage)2 CustomerChangeStatusPage (org.mifos.test.acceptance.framework.customer.CustomerChangeStatusPage)2 CustomerChangeStatusPreviewPage (org.mifos.test.acceptance.framework.customer.CustomerChangeStatusPreviewPage)2 QuestionResponsePage (org.mifos.test.acceptance.framework.questionnaire.QuestionResponsePage)2 ViewQuestionResponseDetailPage (org.mifos.test.acceptance.framework.questionnaire.ViewQuestionResponseDetailPage)2 SearchResultsPage (org.mifos.test.acceptance.framework.search.SearchResultsPage)2 QuestionGroupTestHelper (org.mifos.test.acceptance.framework.testhelpers.QuestionGroupTestHelper)2 ArrayList (java.util.ArrayList)1 ClientsAndAccountsHomepage (org.mifos.test.acceptance.framework.ClientsAndAccountsHomepage)1 SubmitFormParameters (org.mifos.test.acceptance.framework.admin.FeesCreatePage.SubmitFormParameters)1 ClientViewChangeLogPage (org.mifos.test.acceptance.framework.client.ClientViewChangeLogPage)1 ClientViewDetailsPage (org.mifos.test.acceptance.framework.client.ClientViewDetailsPage)1 CreateClientEnterPersonalDataPage (org.mifos.test.acceptance.framework.client.CreateClientEnterPersonalDataPage)1 CreateClientPreviewDataPage (org.mifos.test.acceptance.framework.client.CreateClientPreviewDataPage)1