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
}
Aggregations