Search in sources :

Example 1 with ClientDataImportReviewPage

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);
}
Also used : ClientDataImportReviewPage(org.mifos.test.acceptance.framework.admin.ClientDataImportReviewPage) ClientDataImportSaveSummaryPage(org.mifos.test.acceptance.framework.admin.ClientDataImportSaveSummaryPage) Test(org.testng.annotations.Test)

Example 2 with ClientDataImportReviewPage

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;
}
Also used : ClientDataImportReviewPage(org.mifos.test.acceptance.framework.admin.ClientDataImportReviewPage) AdminPage(org.mifos.test.acceptance.framework.admin.AdminPage) ClientDataImportPage(org.mifos.test.acceptance.framework.admin.ClientDataImportPage)

Aggregations

ClientDataImportReviewPage (org.mifos.test.acceptance.framework.admin.ClientDataImportReviewPage)2 AdminPage (org.mifos.test.acceptance.framework.admin.AdminPage)1 ClientDataImportPage (org.mifos.test.acceptance.framework.admin.ClientDataImportPage)1 ClientDataImportSaveSummaryPage (org.mifos.test.acceptance.framework.admin.ClientDataImportSaveSummaryPage)1 Test (org.testng.annotations.Test)1