Search in sources :

Example 16 with ClientsAndAccountsHomepage

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

the class NavigationHelper method navigateToCreateClientEnterPersonalDataPage.

public CreateClientEnterPersonalDataPage navigateToCreateClientEnterPersonalDataPage(String officeName) {
    ClientsAndAccountsHomepage clientsAccountsPage = navigateToClientsAndAccountsPage();
    GroupSearchPage groupSearchPage = clientsAccountsPage.navigateToCreateNewClientPage();
    org.mifos.test.acceptance.framework.client.ChooseOfficePage chooseOfficePage = groupSearchPage.navigateToCreateClientWithoutGroupPage();
    return chooseOfficePage.chooseOffice(officeName);
}
Also used : GroupSearchPage(org.mifos.test.acceptance.framework.group.GroupSearchPage) ClientsAndAccountsHomepage(org.mifos.test.acceptance.framework.ClientsAndAccountsHomepage)

Example 17 with ClientsAndAccountsHomepage

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

the class NavigationHelper method navigateToCreateCenterEnterDataPage.

public CreateCenterEnterDataPage navigateToCreateCenterEnterDataPage(String officeName) {
    ClientsAndAccountsHomepage clientsAccountsPage = navigateToClientsAndAccountsPage();
    CreateCenterChooseOfficePage chooseOfficePage = clientsAccountsPage.navigateToCreateNewCenterPage();
    return chooseOfficePage.selectOffice(officeName);
}
Also used : CreateCenterChooseOfficePage(org.mifos.test.acceptance.framework.center.CreateCenterChooseOfficePage) ClientsAndAccountsHomepage(org.mifos.test.acceptance.framework.ClientsAndAccountsHomepage)

Example 18 with ClientsAndAccountsHomepage

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

the class LoanTestHelper method navigateToCreateLoanAccountSearchPage.

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

Example 19 with ClientsAndAccountsHomepage

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

the class LoanTestHelper method verifyLoansAreNotOnClientsLoanLists.

public void verifyLoansAreNotOnClientsLoanLists(String[] clients, String productName) {
    ClientsAndAccountsHomepage clientsAndAccountsHomepage = navigationHelper.navigateToClientsAndAccountsPage();
    for (String client : clients) {
        ClientViewDetailsPage clientViewDetailsPage = clientsAndAccountsHomepage.searchForClient(client).navigateToSearchResult(client);
        clientViewDetailsPage.verifyLoanDoesntExist(productName);
        clientsAndAccountsHomepage = clientViewDetailsPage.navigateToClientsAndAccountsPageUsingHeaderTab();
    }
}
Also used : ClientViewDetailsPage(org.mifos.test.acceptance.framework.client.ClientViewDetailsPage) ClientsAndAccountsHomepage(org.mifos.test.acceptance.framework.ClientsAndAccountsHomepage)

Example 20 with ClientsAndAccountsHomepage

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

the class CreateGLIMLoanAccountWithOneTimeFeeTest method createLoan.

private LoanAccountPage createLoan() {
    ClientsAndAccountsHomepage clientsAndAccountsHomepage = navigationHelper.navigateToClientsAndAccountsPage();
    CreateLoanAccountSearchPage createLoanAccountSearchPage = clientsAndAccountsHomepage.navigateToCreateLoanAccountUsingLeftMenu();
    CreateLoanAccountSearchParameters formParameters = new CreateLoanAccountSearchParameters();
    formParameters.setSearchString("Default Group");
    formParameters.setLoanProduct("WeeklyGroupFlatLoanWithOnetimeFee");
    CreateLoanAccountEntryPage createLoanAccountEntryPage = createLoanAccountSearchPage.searchAndNavigateToCreateLoanAccountPage(formParameters);
    createLoanAccountEntryPage.setDisbursalDate(new DateTime(2011, 3, 4, 15, 0, 0, 0));
    createLoanAccountEntryPage.selectGLIMClients(0, "Stu1233266299995 Client1233266299995 Client Id: 0002-000000012", "200", "0009-Horse");
    createLoanAccountEntryPage.selectGLIMClients(1, "Stu1233266309851 Client1233266309851 Client Id: 0002-000000013", "300", "0001-Cow Purchase");
    createLoanAccountEntryPage.selectGLIMClients(2, "Stu1233266319760 Client1233266319760 Client Id: 0002-000000014", "500", "0003-Goat Purchase");
    createLoanAccountEntryPage.setInstallments("10");
    createLoanAccountEntryPage.setInterestRate("21");
    selenium.type("defaultFeeIndividualAmounts[0][0]", "0.2");
    selenium.type("defaultFeeIndividualAmounts[0][1]", "0.3");
    selenium.type("defaultFeeIndividualAmounts[0][2]", "0.5");
    CreateLoanAccountReviewInstallmentPage createLoanAccountReviewInstallmentPage = createLoanAccountEntryPage.navigateToReviewInstallmentsPage();
    CreateLoanAccountPreviewPage createLoanAccountPreviewPage = createLoanAccountReviewInstallmentPage.clickPreviewAndGoToReviewLoanAccountPage();
    CreateLoanAccountConfirmationPage createLoanAccountConfirmationPage = createLoanAccountPreviewPage.submitForApprovalAndNavigateToConfirmationPage();
    return createLoanAccountConfirmationPage.navigateToLoanAccountDetailsPage();
}
Also used : CreateLoanAccountSearchParameters(org.mifos.test.acceptance.framework.loan.CreateLoanAccountSearchParameters) CreateLoanAccountSearchPage(org.mifos.test.acceptance.framework.loan.CreateLoanAccountSearchPage) CreateLoanAccountPreviewPage(org.mifos.test.acceptance.framework.loan.CreateLoanAccountPreviewPage) ClientsAndAccountsHomepage(org.mifos.test.acceptance.framework.ClientsAndAccountsHomepage) CreateLoanAccountConfirmationPage(org.mifos.test.acceptance.framework.loan.CreateLoanAccountConfirmationPage) DateTime(org.joda.time.DateTime) CreateLoanAccountReviewInstallmentPage(org.mifos.test.acceptance.framework.loan.CreateLoanAccountReviewInstallmentPage) CreateLoanAccountEntryPage(org.mifos.test.acceptance.framework.loan.CreateLoanAccountEntryPage)

Aggregations

ClientsAndAccountsHomepage (org.mifos.test.acceptance.framework.ClientsAndAccountsHomepage)26 CreateLoanAccountSearchPage (org.mifos.test.acceptance.framework.loan.CreateLoanAccountSearchPage)12 CreateLoanAccountSearchParameters (org.mifos.test.acceptance.framework.loan.CreateLoanAccountSearchParameters)11 CreateLoanAccountEntryPage (org.mifos.test.acceptance.framework.loan.CreateLoanAccountEntryPage)10 Test (org.testng.annotations.Test)10 CreateLoanAccountConfirmationPage (org.mifos.test.acceptance.framework.loan.CreateLoanAccountConfirmationPage)8 DateTime (org.joda.time.DateTime)7 CreateLoanAccountPreviewPage (org.mifos.test.acceptance.framework.loan.CreateLoanAccountPreviewPage)7 CreateLoanAccountReviewInstallmentPage (org.mifos.test.acceptance.framework.loan.CreateLoanAccountReviewInstallmentPage)7 HomePage (org.mifos.test.acceptance.framework.HomePage)6 LoanAccountPage (org.mifos.test.acceptance.framework.loan.LoanAccountPage)4 ViewRepaymentSchedulePage (org.mifos.test.acceptance.framework.loan.ViewRepaymentSchedulePage)4 AdminPage (org.mifos.test.acceptance.framework.admin.AdminPage)3 CreateClientEnterPersonalDataPage (org.mifos.test.acceptance.framework.client.CreateClientEnterPersonalDataPage)3 CreateLoanAccountSubmitParameters (org.mifos.test.acceptance.framework.loan.CreateLoanAccountSubmitParameters)3 LoginPage (org.mifos.test.acceptance.framework.login.LoginPage)3 AppLauncher (org.mifos.test.acceptance.framework.AppLauncher)2 DefineHiddenMandatoryFieldsPage (org.mifos.test.acceptance.framework.admin.DefineHiddenMandatoryFieldsPage)2 ClientSearchResultsPage (org.mifos.test.acceptance.framework.client.ClientSearchResultsPage)2 ClientViewDetailsPage (org.mifos.test.acceptance.framework.client.ClientViewDetailsPage)2