Search in sources :

Example 1 with MifosPage

use of org.mifos.test.acceptance.framework.MifosPage in project head by mifos.

the class SearchCustomerTest method tearDown.

@AfterMethod
public void tearDown() {
    (new MifosPage(selenium)).logout();
    new DateTimeUpdaterRemoteTestingService(selenium).resetDateTime();
}
Also used : MifosPage(org.mifos.test.acceptance.framework.MifosPage) DateTimeUpdaterRemoteTestingService(org.mifos.test.acceptance.remote.DateTimeUpdaterRemoteTestingService) AfterMethod(org.testng.annotations.AfterMethod)

Example 2 with MifosPage

use of org.mifos.test.acceptance.framework.MifosPage in project head by mifos.

the class LoanTestHelper method reverseLoanDisbursal.

/**
     *
     * Reverses the loan disbursal account
     * @param accountID the id of loan account that should be reversed
     */
public MifosPage reverseLoanDisbursal(String accountID, String clientID, boolean isGroup, String resultClickLink) {
    ClientSearchResultsPage clientSearchResultsPage = navigationHelper.navigateToAdminPage().navigateToUndoLoanDisbursal().searchAndNavigateToUndoLoanDisbursalPage(accountID).submitAndNavigateToUndoLoanDisbursalConfirmationPage("test reverse loan disembursal note").submitAndNavigateToAdminPage().navigateToClientsAndAccountsUsingHeaderTab().searchForClient(clientID);
    MifosPage searchResultsPage;
    if (isGroup) {
        searchResultsPage = clientSearchResultsPage.navigateToGroupSearchResult(resultClickLink);
    } else {
        searchResultsPage = clientSearchResultsPage.navigateToSearchResult(resultClickLink);
    }
    return searchResultsPage;
}
Also used : ClientSearchResultsPage(org.mifos.test.acceptance.framework.client.ClientSearchResultsPage) MifosPage(org.mifos.test.acceptance.framework.MifosPage)

Example 3 with MifosPage

use of org.mifos.test.acceptance.framework.MifosPage in project head by mifos.

the class CreateGroupLoanAccountTest method loginSuccessfully.

private HomePage loginSuccessfully() {
    (new MifosPage(selenium)).logout();
    LoginPage loginPage = new AppLauncher(selenium).launchMifos();
    loginPage.verifyPage();
    HomePage homePage = loginPage.loginSuccessfullyUsingDefaultCredentials();
    homePage.verifyPage();
    return homePage;
}
Also used : HomePage(org.mifos.test.acceptance.framework.HomePage) MifosPage(org.mifos.test.acceptance.framework.MifosPage) AppLauncher(org.mifos.test.acceptance.framework.AppLauncher) LoginPage(org.mifos.test.acceptance.framework.login.LoginPage)

Example 4 with MifosPage

use of org.mifos.test.acceptance.framework.MifosPage in project head by mifos.

the class ClientLoanDisbursalTest method logOut.

@AfterMethod(alwaysRun = true)
public void logOut() {
    new DateTimeService().resetToCurrentSystemDateTime();
    (new MifosPage(selenium)).logout();
}
Also used : DateTimeService(org.mifos.framework.util.DateTimeService) MifosPage(org.mifos.test.acceptance.framework.MifosPage) AfterMethod(org.testng.annotations.AfterMethod)

Example 5 with MifosPage

use of org.mifos.test.acceptance.framework.MifosPage in project head by mifos.

the class ClientTest method checkMandatoryQuestionValidation.

private QuestionnairePage checkMandatoryQuestionValidation(String questionGroupTitle, String question1, String question2, ClientViewDetailsPage viewDetailsPage) {
    QuestionnairePage questionnairePage = viewDetailsPage.getQuestionnairePage(questionGroupTitle);
    questionnairePage.setResponsesForMultiSelect(question2, 4, "Choice1", "Choice3", "Choice4");
    MifosPage mifosPage = questionnairePage.submit();
    Assert.assertTrue(mifosPage instanceof QuestionnairePage);
    questionnairePage = (QuestionnairePage) mifosPage;
    Assert.assertTrue(questionnairePage.isErrorPresent("Please specify " + question1));
    return questionnairePage;
}
Also used : QuestionnairePage(org.mifos.test.acceptance.framework.questionnaire.QuestionnairePage) MifosPage(org.mifos.test.acceptance.framework.MifosPage)

Aggregations

MifosPage (org.mifos.test.acceptance.framework.MifosPage)21 AfterMethod (org.testng.annotations.AfterMethod)10 DateTimeUpdaterRemoteTestingService (org.mifos.test.acceptance.remote.DateTimeUpdaterRemoteTestingService)8 HomePage (org.mifos.test.acceptance.framework.HomePage)4 LoginPage (org.mifos.test.acceptance.framework.login.LoginPage)4 QuestionnairePage (org.mifos.test.acceptance.framework.questionnaire.QuestionnairePage)3 AppLauncher (org.mifos.test.acceptance.framework.AppLauncher)2 AdminPage (org.mifos.test.acceptance.framework.admin.AdminPage)2 ClientViewDetailsPage (org.mifos.test.acceptance.framework.client.ClientViewDetailsPage)2 NavigationHelper (org.mifos.test.acceptance.framework.testhelpers.NavigationHelper)2 Test (org.testng.annotations.Test)2 ArrayList (java.util.ArrayList)1 HashMap (java.util.HashMap)1 Map (java.util.Map)1 DateTimeService (org.mifos.framework.util.DateTimeService)1 EditPenaltyPreviewPage (org.mifos.test.acceptance.framework.admin.EditPenaltyPreviewPage)1 ImportTransactionsPage (org.mifos.test.acceptance.framework.admin.ImportTransactionsPage)1 NewPenaltyPreviewPage (org.mifos.test.acceptance.framework.admin.NewPenaltyPreviewPage)1 ClientSearchResultsPage (org.mifos.test.acceptance.framework.client.ClientSearchResultsPage)1 ChangePasswordPage (org.mifos.test.acceptance.framework.login.ChangePasswordPage)1