Search in sources :

Example 61 with AdminPage

use of org.mifos.test.acceptance.framework.admin.AdminPage in project head by mifos.

the class GroupTest method verifyAcceptedPaymentTypesForGroup.

@SuppressWarnings("PMD.SignatureDeclareThrowsException")
// http://mifosforge.jira.com/browse/MIFOSTEST-247
@Test(singleThreaded = true, groups = { "group", "acceptance", "ui", "no_db_unit" })
public void verifyAcceptedPaymentTypesForGroup() throws Exception {
    //When
    GroupTestHelper groupTestHelper = new GroupTestHelper(selenium);
    CreateGroupSubmitParameters groupParams = new CreateGroupSubmitParameters();
    groupParams.setGroupName("TestGroup123456");
    groupTestHelper.createNewGroup("Default Center", groupParams);
    AdminPage adminPage = navigationHelper.navigateToAdminPage();
    DefineAcceptedPaymentTypesPage defineAcceptedPaymentTypesPage = adminPage.navigateToDefineAcceptedPaymentType();
    defineAcceptedPaymentTypesPage.addLoanFeesPaymentType(DefineAcceptedPaymentTypesPage.CHEQUE);
    adminPage = navigationHelper.navigateToAdminPage();
    defineAcceptedPaymentTypesPage = adminPage.navigateToDefineAcceptedPaymentType();
    defineAcceptedPaymentTypesPage.addLoanFeesPaymentType(DefineAcceptedPaymentTypesPage.VOUCHER);
    ApplyPaymentPage applyPaymentPage = navigationHelper.navigateToGroupViewDetailsPage("TestGroup123456").navigateToViewGroupChargesDetailPage().navigateToApplyPayments();
    //Then
    applyPaymentPage.verifyModeOfPayments();
}
Also used : GroupTestHelper(org.mifos.test.acceptance.framework.testhelpers.GroupTestHelper) QuestionGroupTestHelper(org.mifos.test.acceptance.framework.testhelpers.QuestionGroupTestHelper) ApplyPaymentPage(org.mifos.test.acceptance.framework.loan.ApplyPaymentPage) CreateGroupSubmitParameters(org.mifos.test.acceptance.framework.group.CreateGroupEntryPage.CreateGroupSubmitParameters) AdminPage(org.mifos.test.acceptance.framework.admin.AdminPage) DefineAcceptedPaymentTypesPage(org.mifos.test.acceptance.framework.admin.DefineAcceptedPaymentTypesPage) Test(org.testng.annotations.Test)

Example 62 with AdminPage

use of org.mifos.test.acceptance.framework.admin.AdminPage in project head by mifos.

the class NavigationHelper method navigateToCreateUserPage.

public ChooseOfficePage navigateToCreateUserPage() {
    AdminPage adminPage = navigateToAdminPage();
    ChooseOfficePage createUserPage = adminPage.navigateToCreateUserPage();
    createUserPage.verifyPage();
    return createUserPage;
}
Also used : AdminPage(org.mifos.test.acceptance.framework.admin.AdminPage) CreateCenterChooseOfficePage(org.mifos.test.acceptance.framework.center.CreateCenterChooseOfficePage) ChooseOfficePage(org.mifos.test.acceptance.framework.office.ChooseOfficePage)

Example 63 with AdminPage

use of org.mifos.test.acceptance.framework.admin.AdminPage in project head by mifos.

the class NavigationHelper method navigateToLoanProductsPage.

public ViewLoanProductsPage navigateToLoanProductsPage() {
    AdminPage adminPage = navigateToAdminPage();
    ViewLoanProductsPage loanProductsPage = adminPage.navigateToViewLoanProducts();
    loanProductsPage.verifyPage();
    return loanProductsPage;
}
Also used : ViewLoanProductsPage(org.mifos.test.acceptance.framework.loanproduct.ViewLoanProductsPage) AdminPage(org.mifos.test.acceptance.framework.admin.AdminPage)

Example 64 with AdminPage

use of org.mifos.test.acceptance.framework.admin.AdminPage in project head by mifos.

the class OfficeHelper method navigateToQuestionResponsePage.

public QuestionResponsePage navigateToQuestionResponsePage(OfficeParameters officeParameters) {
    AdminPage adminPage = navigationHelper.navigateToAdminPage();
    CreateOfficeEnterDataPage officeEnterDataPage = adminPage.navigateToCreateOfficeEnterDataPage();
    officeEnterDataPage.verifyPage();
    QuestionResponsePage questionResponsePage = officeEnterDataPage.submitAndGotoQuestionResponsePage(officeParameters);
    questionResponsePage.verifyPage();
    return questionResponsePage;
}
Also used : AdminPage(org.mifos.test.acceptance.framework.admin.AdminPage) QuestionResponsePage(org.mifos.test.acceptance.framework.questionnaire.QuestionResponsePage) CreateOfficeEnterDataPage(org.mifos.test.acceptance.framework.office.CreateOfficeEnterDataPage)

Example 65 with AdminPage

use of org.mifos.test.acceptance.framework.admin.AdminPage in project head by mifos.

the class OfficeHelper method viewOffice.

public void viewOffice(String[] expectedData) {
    AdminPage adminPage = navigationHelper.navigateToAdminPage();
    ViewOfficesPage viewOfficesPage = adminPage.navigateToViewOfficesPage();
    viewOfficesPage.verifyPage();
    viewOfficesPage.verifyOfficeList(expectedData);
}
Also used : AdminPage(org.mifos.test.acceptance.framework.admin.AdminPage) ViewOfficesPage(org.mifos.test.acceptance.framework.admin.ViewOfficesPage)

Aggregations

AdminPage (org.mifos.test.acceptance.framework.admin.AdminPage)87 Test (org.testng.annotations.Test)33 HomePage (org.mifos.test.acceptance.framework.HomePage)9 CreateQuestionGroupPage (org.mifos.test.acceptance.framework.questionnaire.CreateQuestionGroupPage)8 CreateQuestionGroupParameters (org.mifos.test.acceptance.framework.questionnaire.CreateQuestionGroupParameters)7 CreateUserParameters (org.mifos.test.acceptance.framework.user.CreateUserParameters)7 DateTime (org.joda.time.DateTime)6 ImportTransactionsPage (org.mifos.test.acceptance.framework.admin.ImportTransactionsPage)6 LoanAccountPage (org.mifos.test.acceptance.framework.loan.LoanAccountPage)6 CreateQuestionPage (org.mifos.test.acceptance.framework.questionnaire.CreateQuestionPage)6 NavigationHelper (org.mifos.test.acceptance.framework.testhelpers.NavigationHelper)6 DefineAcceptedPaymentTypesPage (org.mifos.test.acceptance.framework.admin.DefineAcceptedPaymentTypesPage)5 DefineHiddenMandatoryFieldsPage (org.mifos.test.acceptance.framework.admin.DefineHiddenMandatoryFieldsPage)5 DefineNewLoanProductPage (org.mifos.test.acceptance.framework.loanproduct.DefineNewLoanProductPage)5 DateTimeUpdaterRemoteTestingService (org.mifos.test.acceptance.remote.DateTimeUpdaterRemoteTestingService)5 CreateLoanAccountSearchParameters (org.mifos.test.acceptance.framework.loan.CreateLoanAccountSearchParameters)4 EditLoanProductPage (org.mifos.test.acceptance.framework.loanproduct.EditLoanProductPage)4 EditLoanProductPreviewPage (org.mifos.test.acceptance.framework.loanproduct.EditLoanProductPreviewPage)4 LoanProductDetailsPage (org.mifos.test.acceptance.framework.loanproduct.LoanProductDetailsPage)4 ViewLoanProductsPage (org.mifos.test.acceptance.framework.loanproduct.ViewLoanProductsPage)4