Search in sources :

Example 11 with SubmitFormParameters

use of org.mifos.test.acceptance.framework.collectionsheet.CollectionSheetEntrySelectPage.SubmitFormParameters in project head by mifos.

the class CollectionSheetEntrySimpleTest method getFormParameters.

private SubmitFormParameters getFormParameters(String receiptDay, String transactionDay) {
    SubmitFormParameters formParameters = new SubmitFormParameters();
    formParameters.setBranch("branch1");
    formParameters.setLoanOfficer("loanofficer branch1");
    formParameters.setCenter("branch1 center");
    formParameters.setPaymentMode("Cash");
    formParameters.setReceiptDay(receiptDay);
    formParameters.setReceiptMonth("11");
    formParameters.setReceiptYear("2009");
    formParameters.setTransactionDay(transactionDay);
    formParameters.setTransactionMonth("02");
    formParameters.setTransactionYear("2009");
    return formParameters;
}
Also used : SubmitFormParameters(org.mifos.test.acceptance.framework.collectionsheet.CollectionSheetEntrySelectPage.SubmitFormParameters)

Example 12 with SubmitFormParameters

use of org.mifos.test.acceptance.framework.collectionsheet.CollectionSheetEntrySelectPage.SubmitFormParameters in project head by mifos.

the class CollectionSheetEntryTest method twoLoansWithSameProductHasMergedLoanAmount.

// one of the dependent methods throws Exception
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
@Test(enabled = true)
public void twoLoansWithSameProductHasMergedLoanAmount() throws Exception {
    SubmitFormParameters formParameters = getFormParametersForTestOffice();
    initRemote.dataLoadAndCacheRefresh(dbUnitUtilities, "acceptance_small_003_dbunit.xml", dataSource, selenium);
    CollectionSheetEntryEnterDataPage enterDataPage = navigateToCollectionSheetEntryEnterData(formParameters);
    //check amount due for client who has two loan accounts on the same product
    enterDataPage.verifyLoanAmountValue(3, 0, 2088.0);
    enterDataPage.cancel();
}
Also used : SubmitFormParameters(org.mifos.test.acceptance.framework.collectionsheet.CollectionSheetEntrySelectPage.SubmitFormParameters) CollectionSheetEntryEnterDataPage(org.mifos.test.acceptance.framework.collectionsheet.CollectionSheetEntryEnterDataPage) Test(org.testng.annotations.Test)

Example 13 with SubmitFormParameters

use of org.mifos.test.acceptance.framework.collectionsheet.CollectionSheetEntrySelectPage.SubmitFormParameters 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)

Example 14 with SubmitFormParameters

use of org.mifos.test.acceptance.framework.collectionsheet.CollectionSheetEntrySelectPage.SubmitFormParameters in project head by mifos.

the class CollectionSheetEntryInputErrorsTest method setFormParametersForTestOffice.

private SubmitFormParameters setFormParametersForTestOffice(String branch, String loanOfficer, String center, String paymentMode) {
    SubmitFormParameters formParameters = new SubmitFormParameters();
    formParameters.setBranch(branch);
    formParameters.setLoanOfficer(loanOfficer);
    formParameters.setCenter(center);
    formParameters.setPaymentMode(paymentMode);
    return formParameters;
}
Also used : SubmitFormParameters(org.mifos.test.acceptance.framework.collectionsheet.CollectionSheetEntrySelectPage.SubmitFormParameters)

Example 15 with SubmitFormParameters

use of org.mifos.test.acceptance.framework.collectionsheet.CollectionSheetEntrySelectPage.SubmitFormParameters in project head by mifos.

the class CollectionSheetEntrySimpleTest method checkForValueObjectConversionErrorWhenEnteringInvalidDateIntoReceipt.

// one of the dependent methods throws Exception
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
public void checkForValueObjectConversionErrorWhenEnteringInvalidDateIntoReceipt() throws Exception {
    SubmitFormParameters invalidFormParameters = getFormParametersWithInvalidReceiptDay();
    SubmitFormParameters validFormParameters = getFormParameters();
    checkForValueObjectConversionErrorWhenEnteringInvalidDate(invalidFormParameters, validFormParameters);
}
Also used : SubmitFormParameters(org.mifos.test.acceptance.framework.collectionsheet.CollectionSheetEntrySelectPage.SubmitFormParameters)

Aggregations

SubmitFormParameters (org.mifos.test.acceptance.framework.collectionsheet.CollectionSheetEntrySelectPage.SubmitFormParameters)23 CollectionSheetEntryEnterDataPage (org.mifos.test.acceptance.framework.collectionsheet.CollectionSheetEntryEnterDataPage)8 CollectionSheetEntrySelectPage (org.mifos.test.acceptance.framework.collectionsheet.CollectionSheetEntrySelectPage)7 Test (org.testng.annotations.Test)6 CollectionSheetEntryConfirmationPage (org.mifos.test.acceptance.framework.collectionsheet.CollectionSheetEntryConfirmationPage)5 CollectionSheetEntryTestHelper (org.mifos.test.acceptance.framework.testhelpers.CollectionSheetEntryTestHelper)5 CollectionSheetEntryPreviewDataPage (org.mifos.test.acceptance.framework.collectionsheet.CollectionSheetEntryPreviewDataPage)4 HomePage (org.mifos.test.acceptance.framework.HomePage)3 ClientsAndAccountsHomepage (org.mifos.test.acceptance.framework.ClientsAndAccountsHomepage)2 LoanAccountPage (org.mifos.test.acceptance.framework.loan.LoanAccountPage)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