Search in sources :

Example 1 with ReportsPage

use of org.mifos.test.acceptance.framework.reports.ReportsPage in project head by mifos.

the class StandardReportsTest method generateCollectionSheetEntryReport.

// one of the dependent methods throws Exception
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
public void generateCollectionSheetEntryReport() throws Exception {
    SubmitFormParameters formParameters = new SubmitFormParameters();
    formParameters.setBranch("MyOfficeDHMFT");
    formParameters.setLoanOfficer("ALL");
    formParameters.setCenter("Default Center");
    formParameters.setTransactionDay("23");
    formParameters.setTransactionMonth("04");
    formParameters.setTransactionYear("2009");
    LoginPage loginPage = appLauncher.launchMifos();
    HomePage homePage = loginPage.loginSuccessfullyUsingDefaultCredentials();
    ReportsPage reportsPage = homePage.navigateToReportsPage();
    CollectionSheetReportParametersPage collSheetReportParametersPage = reportsPage.selectCollectionSheetEntryReport();
    collSheetReportParametersPage.generateCollectionSheetEntryReport(formParameters);
// TODO: No validation for now.  This will simply demonstrate the problem if
// PDF generation is messed up (as it was when the itext library was removed)
// An attempt was made to validate by using the BIRT url to generate the PDF
// but following that url includes parameter dropdown screens before whatever
// call actually generates the PDF
}
Also used : HomePage(org.mifos.test.acceptance.framework.HomePage) CollectionSheetReportParametersPage(org.mifos.test.acceptance.framework.reports.CollectionSheetReportParametersPage) SubmitFormParameters(org.mifos.test.acceptance.framework.collectionsheet.CollectionSheetEntrySelectPage.SubmitFormParameters) LoginPage(org.mifos.test.acceptance.framework.login.LoginPage) ReportsPage(org.mifos.test.acceptance.framework.reports.ReportsPage)

Aggregations

HomePage (org.mifos.test.acceptance.framework.HomePage)1 SubmitFormParameters (org.mifos.test.acceptance.framework.collectionsheet.CollectionSheetEntrySelectPage.SubmitFormParameters)1 LoginPage (org.mifos.test.acceptance.framework.login.LoginPage)1 CollectionSheetReportParametersPage (org.mifos.test.acceptance.framework.reports.CollectionSheetReportParametersPage)1 ReportsPage (org.mifos.test.acceptance.framework.reports.ReportsPage)1