Search in sources :

Example 1 with ViewReportCategoriesPage

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

the class StandardReportsTest method reportCategoriesTest.

/**
     * Report categories can be added, edited and deleted
     * http://mifosforge.jira.com/browse/MIFOSTEST-181
     *
     * @throws Exception
     */
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
public void reportCategoriesTest() throws Exception {
    //When
    ViewReportCategoriesPage viewReportCategoriesPage = reportTestHelper.navigateToViewReportCategories();
    //Then
    viewReportCategoriesPage.verifyReportCategoriesExist(DEFAULT_CATEGORIES);
    //When
    viewReportCategoriesPage = reportTestHelper.addNewCategory(viewReportCategoriesPage, NEWCAT);
    //Then
    viewReportCategoriesPage.verifyReportCategoriesExist(NEWCAT);
    //When
    viewReportCategoriesPage = reportTestHelper.addNewCategory(viewReportCategoriesPage, NEWCAT1);
    //Then
    viewReportCategoriesPage.verifyReportCategoriesExist(NEWCAT1);
    //When
    viewReportCategoriesPage = reportTestHelper.editCategory(viewReportCategoriesPage, NEWCAT2, "8");
    //Then
    viewReportCategoriesPage.verifyReportCategoriesExist(NEWCAT2);
    viewReportCategoriesPage.verifyReportCategoriesNotExist(NEWCAT, 9);
    //When
    viewReportCategoriesPage = reportTestHelper.deleteCategory(viewReportCategoriesPage, "9");
    //Then
    viewReportCategoriesPage.verifyReportCategoriesNotExist(NEWCAT1, 8);
}
Also used : ViewReportCategoriesPage(org.mifos.test.acceptance.framework.admin.ViewReportCategoriesPage)

Example 2 with ViewReportCategoriesPage

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

the class ViewReportCategoriesTest method verifyReportCategoriesExist.

/**
     * Verify that expected Report Categories exist on the page
     */
public void verifyReportCategoriesExist() {
    AdminPage adminPage = loginAndGoToAdminPage();
    ViewReportCategoriesPage page = adminPage.navigateToViewReportCategories();
    page.verifyPage();
    String[] expectedData = new String[] { "Client Detail", "Performance", "Center", "Loan Product Detail", "Status", "Analysis", "Miscellaneous" };
    page.verifyReportCategoriesExist(expectedData);
}
Also used : AdminPage(org.mifos.test.acceptance.framework.admin.AdminPage) ViewReportCategoriesPage(org.mifos.test.acceptance.framework.admin.ViewReportCategoriesPage)

Aggregations

ViewReportCategoriesPage (org.mifos.test.acceptance.framework.admin.ViewReportCategoriesPage)2 AdminPage (org.mifos.test.acceptance.framework.admin.AdminPage)1