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;
}
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;
}
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;
}
}
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();
}
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;
}
Aggregations