Search in sources :

Example 31 with HomePage

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

the class AdditionalHolidayTest method navigateToCreateLoanAccountSearchPage.

private CreateLoanAccountSearchPage navigateToCreateLoanAccountSearchPage() {
    LoginPage loginPage = appLauncher.launchMifos();
    loginPage.verifyPage();
    HomePage homePage = loginPage.loginSuccessfullyUsingDefaultCredentials();
    ClientsAndAccountsHomepage clientsAndAccountsPage = homePage.navigateToClientsAndAccountsUsingHeaderTab();
    return clientsAndAccountsPage.navigateToCreateLoanAccountUsingLeftMenu();
}
Also used : HomePage(org.mifos.test.acceptance.framework.HomePage) ClientsAndAccountsHomepage(org.mifos.test.acceptance.framework.ClientsAndAccountsHomepage) LoginPage(org.mifos.test.acceptance.framework.login.LoginPage)

Example 32 with HomePage

use of org.mifos.test.acceptance.framework.HomePage 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 33 with HomePage

use of org.mifos.test.acceptance.framework.HomePage 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 34 with HomePage

use of org.mifos.test.acceptance.framework.HomePage 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 35 with HomePage

use of org.mifos.test.acceptance.framework.HomePage 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)

Aggregations

HomePage (org.mifos.test.acceptance.framework.HomePage)42 LoginPage (org.mifos.test.acceptance.framework.login.LoginPage)20 SearchResultsPage (org.mifos.test.acceptance.framework.search.SearchResultsPage)14 AppLauncher (org.mifos.test.acceptance.framework.AppLauncher)10 AdminPage (org.mifos.test.acceptance.framework.admin.AdminPage)10 ClientsAndAccountsHomepage (org.mifos.test.acceptance.framework.ClientsAndAccountsHomepage)6 Test (org.testng.annotations.Test)6 MifosPage (org.mifos.test.acceptance.framework.MifosPage)4 ClientSearchResultsPage (org.mifos.test.acceptance.framework.client.ClientSearchResultsPage)4 ClientViewDetailsPage (org.mifos.test.acceptance.framework.client.ClientViewDetailsPage)3 SubmitFormParameters (org.mifos.test.acceptance.framework.collectionsheet.CollectionSheetEntrySelectPage.SubmitFormParameters)3 ClosedAccountsPage (org.mifos.test.acceptance.framework.loan.ClosedAccountsPage)3 CreateUserParameters (org.mifos.test.acceptance.framework.user.CreateUserParameters)3 DateTime (org.joda.time.DateTime)2 CenterViewDetailsPage (org.mifos.test.acceptance.framework.center.CenterViewDetailsPage)2 CreateClientEnterPersonalDataPage (org.mifos.test.acceptance.framework.client.CreateClientEnterPersonalDataPage)2 CollectionSheetEntryConfirmationPage (org.mifos.test.acceptance.framework.collectionsheet.CollectionSheetEntryConfirmationPage)2 CollectionSheetEntryEnterDataPage (org.mifos.test.acceptance.framework.collectionsheet.CollectionSheetEntryEnterDataPage)2 CollectionSheetEntrySelectPage (org.mifos.test.acceptance.framework.collectionsheet.CollectionSheetEntrySelectPage)2 CustomerChangeStatusPage (org.mifos.test.acceptance.framework.customer.CustomerChangeStatusPage)2