Search in sources :

Example 16 with SearchResultsPage

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

the class WaiveLoanFeeTest method waiveFeeOnLastInstallment.

// one of the dependent methods throws Exception
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
public void waiveFeeOnLastInstallment() throws Exception {
    LoginPage loginPage = appLauncher.launchMifos();
    HomePage homePage = loginPage.loginSuccessfullyUsingDefaultCredentials();
    SearchResultsPage searchResultsPage = homePage.search("000100000000012");
    searchResultsPage.verifyPage();
    LoanAccountPage loanAccountPage = searchResultsPage.navigateToLoanAccountDetailPage("000100000000012");
    ViewNextInstallmentDetailsPage viewInstallmentDetailsPage = loanAccountPage.navigateToViewNextInstallmentDetails();
    viewInstallmentDetailsPage.verifyInstallmentAmount(11, 2, "10");
    viewInstallmentDetailsPage.waiveOverdueInstallmentFee();
    viewInstallmentDetailsPage.verifyInstallmentAmount(11, 2, "0");
}
Also used : SearchResultsPage(org.mifos.test.acceptance.framework.search.SearchResultsPage) HomePage(org.mifos.test.acceptance.framework.HomePage) LoanAccountPage(org.mifos.test.acceptance.framework.loan.LoanAccountPage) LoginPage(org.mifos.test.acceptance.framework.login.LoginPage) ViewNextInstallmentDetailsPage(org.mifos.test.acceptance.framework.loan.ViewNextInstallmentDetailsPage)

Example 17 with SearchResultsPage

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

the class SearchAccountTest method searchAccountTest.

/**
     * Enters an account number <b>ACCT_SEARCH_STRING</b> in the search box
     * and verifies that the expected text with that account number
     * is present on the results page
     */
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
@Test(singleThreaded = true, groups = { "smoke", "search", "acceptance", "no_db_unit" })
public void searchAccountTest() throws Exception {
    SearchResultsPage page = searchFor(appLauncher, ACCT_SEARCH_STRING);
    int count = page.countSearchResults();
    //Check that only one row for this account number is returned
    Assert.assertEquals(count, 1);
    //Check the displayed text
    Assert.assertTrue(selenium.isTextPresent(ACCT_SEARCH_STRING));
}
Also used : SearchResultsPage(org.mifos.test.acceptance.framework.search.SearchResultsPage) Test(org.testng.annotations.Test)

Example 18 with SearchResultsPage

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

the class SearchCenterTest method searchCenterSpecificTest.

// http://mifosforge.jira.com/browse/MIFOSTEST-473
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
public void searchCenterSpecificTest() throws Exception {
    String searchPhrase = "Default Center";
    SearchResultsPage page = searchFor(appLauncher, searchPhrase);
    page.verifySearchResults(1, "0002-000000001");
}
Also used : SearchResultsPage(org.mifos.test.acceptance.framework.search.SearchResultsPage)

Example 19 with SearchResultsPage

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

the class SearchCustomerTest method searchCustomerTest.

@SuppressWarnings("PMD.SignatureDeclareThrowsException")
public void searchCustomerTest() throws Exception {
    String searchPhrase = "Client Veronica Abisya";
    SearchResultsPage page = searchFor(appLauncher, searchPhrase);
    page.verifySearchResults(1, "Client - Veronica Abisya");
}
Also used : SearchResultsPage(org.mifos.test.acceptance.framework.search.SearchResultsPage)

Example 20 with SearchResultsPage

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

the class SearchGroupTest method searchGroupListTest.

@SuppressWarnings("PMD.SignatureDeclareThrowsException")
public void searchGroupListTest() throws Exception {
    String searchPhrase = "group";
    SearchResultsPage page = searchFor(appLauncher, searchPhrase);
    Assert.assertTrue(page.countSearchResults() >= 8);
}
Also used : SearchResultsPage(org.mifos.test.acceptance.framework.search.SearchResultsPage)

Aggregations

SearchResultsPage (org.mifos.test.acceptance.framework.search.SearchResultsPage)21 HomePage (org.mifos.test.acceptance.framework.HomePage)14 LoginPage (org.mifos.test.acceptance.framework.login.LoginPage)6 ClientSearchResultsPage (org.mifos.test.acceptance.framework.client.ClientSearchResultsPage)5 Test (org.testng.annotations.Test)4 ClientViewDetailsPage (org.mifos.test.acceptance.framework.client.ClientViewDetailsPage)3 ClosedAccountsPage (org.mifos.test.acceptance.framework.loan.ClosedAccountsPage)3 LoanAccountPage (org.mifos.test.acceptance.framework.loan.LoanAccountPage)3 CenterViewDetailsPage (org.mifos.test.acceptance.framework.center.CenterViewDetailsPage)2 CreateClientEnterPersonalDataPage (org.mifos.test.acceptance.framework.client.CreateClientEnterPersonalDataPage)2 CustomerChangeStatusPage (org.mifos.test.acceptance.framework.customer.CustomerChangeStatusPage)2 EditCustomerStatusParameters (org.mifos.test.acceptance.framework.group.EditCustomerStatusParameters)2 GroupViewDetailsPage (org.mifos.test.acceptance.framework.group.GroupViewDetailsPage)2 RedoLoanDisbursalSearchResultsPage (org.mifos.test.acceptance.framework.loan.RedoLoanDisbursalSearchResultsPage)2 AppLauncher (org.mifos.test.acceptance.framework.AppLauncher)1 DefineHiddenMandatoryFieldsPage (org.mifos.test.acceptance.framework.admin.DefineHiddenMandatoryFieldsPage)1 SubmitFormParameters (org.mifos.test.acceptance.framework.admin.FeesCreatePage.SubmitFormParameters)1 ManageRolePage (org.mifos.test.acceptance.framework.admin.ManageRolePage)1 ClientEditPersonalInfoPage (org.mifos.test.acceptance.framework.client.ClientEditPersonalInfoPage)1 ClientNotesPage (org.mifos.test.acceptance.framework.client.ClientNotesPage)1