use of org.mifos.test.acceptance.framework.admin.ClientDataImportReviewPage in project head by mifos.
the class ClientDataImportTest method importSavingAccountsToClientTest.
@Test(enabled = true)
public void importSavingAccountsToClientTest() {
String importFile = this.getClass().getResource("/ClientDataImportTest.xls").toString();
String succesNumber = "4";
String errorNumber = "4";
arrayOfErrors = buildArrayOfErrorsForImportSavingsTest();
ClientDataImportReviewPage reviewPage = adminTestHelper.loadClientDataImportFileAndSubmitForReview(importFile);
reviewPage.validateErrors(arrayOfErrors);
reviewPage.validateSuccesText(succesNumber);
ClientDataImportSaveSummaryPage summaryPage = reviewPage.saveSuccessfullRows();
summaryPage.verifySuccesString(succesNumber);
summaryPage.verifyErrorString(errorNumber);
}
use of org.mifos.test.acceptance.framework.admin.ClientDataImportReviewPage in project head by mifos.
the class AdminTestHelper method loadClientDataImportFileAndSubmitForReview.
public ClientDataImportReviewPage loadClientDataImportFileAndSubmitForReview(String importFile) {
AdminPage adminPage = navigationHelper.navigateToAdminPage();
ClientDataImportPage selectFilePage = adminPage.navigateToClientDataImportPage();
selectFilePage.verifyPage();
ClientDataImportReviewPage reviewPage = selectFilePage.submitToReview(importFile);
reviewPage.verifyPage();
return reviewPage;
}
Aggregations