Search in sources :

Example 11 with SearchResultsPage

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

the class NavigationHelper method navigateToLoanAccountPage.

public LoanAccountPage navigateToLoanAccountPage(String loanAccountID) {
    HomePage homePage = navigateToHomePage();
    SearchResultsPage searchResultsPage = homePage.search(loanAccountID);
    searchResultsPage.verifyPage();
    LoanAccountPage loanAccountPage = searchResultsPage.navigateToLoanAccountDetailPage(loanAccountID);
    return loanAccountPage;
}
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)

Example 12 with SearchResultsPage

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

the class LoanTestHelper method navigateToLoanAccountPage.

public LoanAccountPage navigateToLoanAccountPage(CreateLoanAccountSearchParameters searchParams) {
    String searchString = searchParams.getSearchString();
    LoginPage loginPage = new AppLauncher(selenium).launchMifos().logout();
    loginPage.verifyPage();
    HomePage homePage = loginPage.loginSuccessfullyUsingDefaultCredentials();
    homePage.verifyPage();
    SearchResultsPage searchResultsPage = homePage.search(searchString);
    return searchResultsPage.navigateToLoanAccountDetailPage(searchString);
}
Also used : RedoLoanDisbursalSearchResultsPage(org.mifos.test.acceptance.framework.loan.RedoLoanDisbursalSearchResultsPage) ClientSearchResultsPage(org.mifos.test.acceptance.framework.client.ClientSearchResultsPage) SearchResultsPage(org.mifos.test.acceptance.framework.search.SearchResultsPage) HomePage(org.mifos.test.acceptance.framework.HomePage) AppLauncher(org.mifos.test.acceptance.framework.AppLauncher) LoginPage(org.mifos.test.acceptance.framework.login.LoginPage)

Example 13 with SearchResultsPage

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

the class GroupTest method testHitGroupDashboard.

// one of the dependent methods throws Exception
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
@Test(singleThreaded = true, groups = { "group", "acceptance", "ui", "no_db_unit" })
public void testHitGroupDashboard() throws Exception {
    LoginPage loginPage = appLauncher.launchMifos();
    HomePage homePage = loginPage.loginSuccessfullyUsingDefaultCredentials();
    SearchResultsPage searchResultsPage = homePage.search("Default Group");
    searchResultsPage.verifyPage();
    // click on any search result leading to a group dashboard
    searchResultsPage.navigateToGroupViewDetailsPage("link=Default Group*");
}
Also used : SearchResultsPage(org.mifos.test.acceptance.framework.search.SearchResultsPage) HomePage(org.mifos.test.acceptance.framework.HomePage) LoginPage(org.mifos.test.acceptance.framework.login.LoginPage) Test(org.testng.annotations.Test)

Example 14 with SearchResultsPage

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

the class NavigationHelper method navigateToClientViewDetailsPage.

public ClientViewDetailsPage navigateToClientViewDetailsPage(String clientName) {
    HomePage homePage = navigateToHomePage();
    SearchResultsPage searchResultsPage = homePage.search(clientName);
    searchResultsPage.verifyPage();
    return searchResultsPage.navigateToClientViewDetailsPage("link=*" + clientName + "*");
}
Also used : SearchResultsPage(org.mifos.test.acceptance.framework.search.SearchResultsPage) HomePage(org.mifos.test.acceptance.framework.HomePage)

Example 15 with SearchResultsPage

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

the class ViewClosedAccountsTest method navigateToClientDetailsFromClosedAccounts.

@SuppressWarnings("PMD.SignatureDeclareThrowsException")
public void navigateToClientDetailsFromClosedAccounts() throws Exception {
    LoginPage loginPage = appLauncher.launchMifos();
    HomePage homePage = loginPage.loginSuccessfullyUsingDefaultCredentials();
    homePage.verifyPage();
    SearchResultsPage searchResultsPage = homePage.search("Client1233266063395");
    searchResultsPage.verifyPage();
    ClientViewDetailsPage clientViewDetailsPage = searchResultsPage.navigateToClientViewDetailsPage("link=Stu*");
    ClosedAccountsPage closedAccountsPage = clientViewDetailsPage.navigateToClosedAccountsPage();
    closedAccountsPage.verifyPage();
    closedAccountsPage.returnToClientViewDetailsPage();
}
Also used : SearchResultsPage(org.mifos.test.acceptance.framework.search.SearchResultsPage) HomePage(org.mifos.test.acceptance.framework.HomePage) ClientViewDetailsPage(org.mifos.test.acceptance.framework.client.ClientViewDetailsPage) ClosedAccountsPage(org.mifos.test.acceptance.framework.loan.ClosedAccountsPage) LoginPage(org.mifos.test.acceptance.framework.login.LoginPage)

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