Search in sources :

Example 6 with AdminPage

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

the class NavigationHelper method navigateToFindUserPage.

public ViewSystemUsersPage navigateToFindUserPage() {
    AdminPage adminPage = navigateToAdminPage();
    ViewSystemUsersPage findUserPage = adminPage.navigateToViewSystemUsersPage();
    return findUserPage;
}
Also used : AdminPage(org.mifos.test.acceptance.framework.admin.AdminPage) ViewSystemUsersPage(org.mifos.test.acceptance.framework.admin.ViewSystemUsersPage)

Example 7 with AdminPage

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

the class NavigationHelper method navigateToAdminPage.

public AdminPage navigateToAdminPage() {
    HomePage homePage = navigateToHomePage();
    AdminPage adminPage = homePage.navigateToAdminPage();
    adminPage.verifyPage();
    return adminPage;
}
Also used : HomePage(org.mifos.test.acceptance.framework.HomePage) AdminPage(org.mifos.test.acceptance.framework.admin.AdminPage)

Example 8 with AdminPage

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

the class OfficeHelper method defineOffice.

public void defineOffice(String officeName, String shortName, String officeType, String parentOffice) {
    AdminPage adminPage = navigationHelper.navigateToAdminPage();
    DefineNewOfficePage defineNewOfficePage = adminPage.navigateToDefineANewOfficePage();
    defineNewOfficePage.setOfficeName(officeName);
    defineNewOfficePage.setOfficeShortName(shortName);
    defineNewOfficePage.setOfficeType(officeType);
    defineNewOfficePage.setParentOffice(parentOffice);
    defineNewOfficePage.preview();
    defineNewOfficePage.submit();
}
Also used : AdminPage(org.mifos.test.acceptance.framework.admin.AdminPage) DefineNewOfficePage(org.mifos.test.acceptance.framework.admin.DefineNewOfficePage)

Example 9 with AdminPage

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

the class OfficeHelper method createOffice.

/**
     * Creates an office.
     * @param officeParameters The office parameters.
     * @return The admin page.
     */
public AdminPage createOffice(OfficeParameters officeParameters) {
    AdminPage adminPage = navigationHelper.navigateToAdminPage();
    CreateOfficeEnterDataPage officeEnterDataPage = adminPage.navigateToCreateOfficeEnterDataPage();
    officeEnterDataPage.verifyPage();
    CreateOfficePreviewDataPage previewDataPage = officeEnterDataPage.submitAndGotoCreateOfficePreviewDataPage(officeParameters);
    previewDataPage.verifyPage();
    CreateOfficeConfirmationPage confirmationPage = previewDataPage.submit();
    confirmationPage.verifyPage();
    OfficeViewDetailsPage detailsPage = confirmationPage.navigateToOfficeViewDetailsPage();
    detailsPage.verifyPage();
    return detailsPage.navigateToAdminPage();
}
Also used : AdminPage(org.mifos.test.acceptance.framework.admin.AdminPage) CreateOfficePreviewDataPage(org.mifos.test.acceptance.framework.office.CreateOfficePreviewDataPage) OfficeViewDetailsPage(org.mifos.test.acceptance.framework.office.OfficeViewDetailsPage) CreateOfficeEnterDataPage(org.mifos.test.acceptance.framework.office.CreateOfficeEnterDataPage) CreateOfficeConfirmationPage(org.mifos.test.acceptance.framework.office.CreateOfficeConfirmationPage)

Example 10 with AdminPage

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

the class LoanProductTestHelper method editLoanProductWithParameters.

public EditLoanProductPreviewPage editLoanProductWithParameters(String loanProduct, DefineNewLoanProductPage.SubmitFormParameters productParams) {
    AdminPage adminPage = navigationHelper.navigateToAdminPage();
    adminPage.navigateToViewLoanProducts().viewLoanProductDetails(loanProduct);
    new DefineNewLoanProductPage().fillLoanParameters(productParams).submitPage();
    return new EditLoanProductPreviewPage(selenium);
}
Also used : AdminPage(org.mifos.test.acceptance.framework.admin.AdminPage) EditLoanProductPreviewPage(org.mifos.test.acceptance.framework.loanproduct.EditLoanProductPreviewPage) DefineNewLoanProductPage(org.mifos.test.acceptance.framework.loanproduct.DefineNewLoanProductPage)

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