Search in sources :

Example 1 with SubmitFormParameters

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

the class CollectionSheetEntryAttendanceTest method getFormParametersForCenter1.

private SubmitFormParameters getFormParametersForCenter1() {
    SubmitFormParameters formParameters = new SubmitFormParameters();
    formParameters.setBranch("Office1");
    formParameters.setLoanOfficer("Bagonza Wilson");
    formParameters.setCenter("Center1");
    formParameters.setPaymentMode("Cash");
    return formParameters;
}
Also used : SubmitFormParameters(org.mifos.test.acceptance.framework.collectionsheet.CollectionSheetEntrySelectPage.SubmitFormParameters)

Example 2 with SubmitFormParameters

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

the class CollectionSheetEntryAttendanceTest method getFormParametersForCenter2.

private SubmitFormParameters getFormParametersForCenter2() {
    SubmitFormParameters formParameters = new SubmitFormParameters();
    formParameters.setBranch("Office2");
    formParameters.setLoanOfficer("John Okoth");
    formParameters.setCenter("Center2");
    formParameters.setPaymentMode("Cash");
    return formParameters;
}
Also used : SubmitFormParameters(org.mifos.test.acceptance.framework.collectionsheet.CollectionSheetEntrySelectPage.SubmitFormParameters)

Example 3 with SubmitFormParameters

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

the class CollectionSheetEntryCustomerAccountTest method clientAccountFeesSavedToDatabase.

@SuppressWarnings("PMD.SignatureDeclareThrowsException")
// one of the dependent methods throws Exception
@Test(enabled = true, singleThreaded = true, groups = { "collectionsheet", "acceptance", "ui" })
public void clientAccountFeesSavedToDatabase() throws Exception {
    try {
        SubmitFormParameters formParameters = getFormParametersForTestOffice();
        initRemote.dataLoadAndCacheRefresh(dbUnitUtilities, "acceptance_small_003_dbunit.xml", dataSource, selenium);
        enterAndSubmitCustomerAccountData(formParameters, BASIC_CUSTOMER_ACCT_VALUES);
        verifyCollectionSheetData("ColSheetCustAcct_001_result_dbunit.xml");
    } catch (Error e) {
        dbUnitUtilities.dumpDatabaseToTimestampedFileInConfigurationDirectory(dataSource);
        throw e;
    }
}
Also used : SubmitFormParameters(org.mifos.test.acceptance.framework.collectionsheet.CollectionSheetEntrySelectPage.SubmitFormParameters) Test(org.testng.annotations.Test)

Example 4 with SubmitFormParameters

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

the class CollectionSheetEntryCustomerAccountTest method unpaidFeeDisplayedOnSecondCollectionSheetEntryAndSaved.

@SuppressWarnings("PMD.SignatureDeclareThrowsException")
// one of the dependent methods throws Exception
@Test(enabled = true)
public void unpaidFeeDisplayedOnSecondCollectionSheetEntryAndSaved() throws Exception {
    SubmitFormParameters formParameters = getFormParametersForTestOffice();
    initRemote.dataLoadAndCacheRefresh(dbUnitUtilities, "acceptance_small_003_dbunit.xml", dataSource, selenium);
    CollectionSheetEntryConfirmationPage confirmationPage = enterAndSubmitCustomerAccountDataOnSecondEditing(formParameters, TEST_ACCT_VALUES, FIRST_PARTIAL_CUSTOMER_ACCT_VALUES);
    // navigate back to collection sheet entry
    HomePage homePage = confirmationPage.navigateToHomePage();
    ClientsAndAccountsHomepage clientsAndAccountsPage = homePage.navigateToClientsAndAccountsUsingHeaderTab();
    CollectionSheetEntrySelectPage selectPage = clientsAndAccountsPage.navigateToEnterCollectionSheetDataUsingLeftMenu();
    selectPage.verifyPage();
    // enter same search data and inspect displayed client account (A/C
    // Collection) values
    CollectionSheetEntryEnterDataPage enterDataPage = selectCenterAndContinue(formParameters, selectPage);
    enterDataPage.verifyCustomerAccountValue(0, 6, 0.0);
    enterDataPage.verifyCustomerAccountValue(1, 6, 77.0);
    enterDataPage.verifyCustomerAccountValue(2, 6, 0.0);
    enterDataPage.verifyCustomerAccountValue(3, 6, 251.0);
    enterDataPage.verifyCustomerAccountValue(4, 6, 0.0);
    enterDataPage.cancel();
}
Also used : HomePage(org.mifos.test.acceptance.framework.HomePage) CollectionSheetEntrySelectPage(org.mifos.test.acceptance.framework.collectionsheet.CollectionSheetEntrySelectPage) CollectionSheetEntryConfirmationPage(org.mifos.test.acceptance.framework.collectionsheet.CollectionSheetEntryConfirmationPage) ClientsAndAccountsHomepage(org.mifos.test.acceptance.framework.ClientsAndAccountsHomepage) SubmitFormParameters(org.mifos.test.acceptance.framework.collectionsheet.CollectionSheetEntrySelectPage.SubmitFormParameters) CollectionSheetEntryEnterDataPage(org.mifos.test.acceptance.framework.collectionsheet.CollectionSheetEntryEnterDataPage) Test(org.testng.annotations.Test)

Example 5 with SubmitFormParameters

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

the class CollectionSheetEntryCustomerAccountTest method getFormParametersForTestOffice.

private SubmitFormParameters getFormParametersForTestOffice() {
    SubmitFormParameters formParameters = new SubmitFormParameters();
    formParameters.setBranch("MyOffice1233265929385");
    formParameters.setLoanOfficer("Joe1233265931256 Guy1233265931256");
    formParameters.setCenter("MyCenter1233265933427");
    formParameters.setPaymentMode("Cash");
    return formParameters;
}
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