use of org.mifos.test.acceptance.framework.testhelpers.CollectionSheetEntryTestHelper in project head by mifos.
the class CollectionSheetEntryAttendanceTest method setUp.
@Override
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
@BeforeMethod(alwaysRun = true)
public void setUp() throws Exception {
super.setUp();
DateTimeUpdaterRemoteTestingService dateTimeUpdaterRemoteTestingService = new DateTimeUpdaterRemoteTestingService(selenium);
DateTime targetTime = new DateTime(2009, 7, 23, 1, 0, 0, 0);
dateTimeUpdaterRemoteTestingService.setDateTime(targetTime);
collectionSheetEntryTestHelper = new CollectionSheetEntryTestHelper(selenium);
navigationHelper = new NavigationHelper(selenium);
}
use of org.mifos.test.acceptance.framework.testhelpers.CollectionSheetEntryTestHelper in project head by mifos.
the class CollectionSheetEntryCustomerAccountTest method enterAndSubmitCustomerAccountData.
private CollectionSheetEntryConfirmationPage enterAndSubmitCustomerAccountData(SubmitFormParameters formParameters, double[] customerAcctValues) {
CollectionSheetEntrySelectPage selectPage = new CollectionSheetEntryTestHelper(selenium).loginAndNavigateToCollectionSheetEntrySelectPage();
selectPage.verifyPage();
CollectionSheetEntryEnterDataPage enterDataPage = selectCenterAndContinue(formParameters, selectPage);
enterFirstGroupCustomerAccountValues(enterDataPage, customerAcctValues);
enterGenericCustomerAccountValues(enterDataPage);
CollectionSheetEntryPreviewDataPage previewPage = enterDataPage.submitAndGotoCollectionSheetEntryPreviewDataPage();
previewPage.verifyPage(formParameters);
CollectionSheetEntryConfirmationPage confirmationPage = previewPage.submitAndGotoCollectionSheetEntryConfirmationPage();
confirmationPage.verifyPage();
return confirmationPage;
}
use of org.mifos.test.acceptance.framework.testhelpers.CollectionSheetEntryTestHelper in project head by mifos.
the class CollectionSheetEntryInputErrorsTest method clickingContinueInBulkEntryPageAndOnlyEnteringBranchShouldResultInErrorMessage.
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
public // one of the dependent methods throws Exception
void clickingContinueInBulkEntryPageAndOnlyEnteringBranchShouldResultInErrorMessage() throws Exception {
initRemote.dataLoadAndCacheRefresh(dbUnitUtilities, "acceptance_small_003_dbunit.xml", dataSource, selenium);
CollectionSheetEntrySelectPage selectPage = new CollectionSheetEntryTestHelper(selenium).loginAndNavigateToCollectionSheetEntrySelectPage();
selectPage.verifyPage();
SubmitFormParameters formParameters = setFormParametersForTestOffice("MyOffice1233265929385", null, null, null);
selectPage.fillOutDropDownMenusWithGivenInput(formParameters);
selectPage.submit();
selectPage.verifyPage();
Assert.assertTrue(selectPage.isErrorMessageDisplayed());
}
Aggregations