Search in sources :

Example 26 with HomePage

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

the class PersonnelTest 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 27 with HomePage

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

the class TaskListTest method verifyLoanOfficerTaskList.

/*	Test for loanofficerbranch1
     *  Meetings:  Recur every 1 Week(s) on Thursday
     */
public void verifyLoanOfficerTaskList() throws Exception {
    dateTimeUpdaterRemoteTestingService.setDateTime(new DateTime(2041, 1, 1, 13, 0, 0, 0));
    LocalDate meetingDate = new LocalDate(2041, 1, 1);
    DateTimeFormatter fmt = DateTimeFormat.forPattern("dd-MM-yyyy");
    while (meetingDate.getDayOfWeek() != DAY_OF_WEEK) {
        meetingDate = meetingDate.plusDays(1);
    }
    HomePage homePage = navigationHelper.navigateToHomePageAsLogedUser(DEFAULT_LOANOFFICER_USERNAME, DEFAULT_LOANOFFICER_PASSWORD);
    if (meetingDate.compareTo(new LocalDate()) != 0) {
        homePage.selectTaskListDateOption("value=" + fmt.print(meetingDate));
    }
    assertTextFoundOnPage(CENTER);
    assertTextFoundOnPage(GROUP);
    assertTextFoundOnPage(CLIENT);
}
Also used : HomePage(org.mifos.test.acceptance.framework.HomePage) LocalDate(org.joda.time.LocalDate) DateTimeFormatter(org.joda.time.format.DateTimeFormatter) DateTime(org.joda.time.DateTime)

Example 28 with HomePage

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

the class UpdateCustomPropertiesTest method changeLocale.

//http://mifosforge.jira.com/browse/MIFOSTEST-86
@Test
public void changeLocale() {
    // Given
    propertiesHelper.setLocale("FR", "FR");
    // When
    HomePage homePage = navigationHelper.navigateToHomePage();
    // Then
    Assert.assertEquals(homePage.getWelcome(), "Bienvenue,  mifos");
    // cleanup
    propertiesHelper.setLocale("EN", "GB");
}
Also used : HomePage(org.mifos.test.acceptance.framework.HomePage) Test(org.testng.annotations.Test)

Example 29 with HomePage

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

the class StandardReportsTest method generateCollectionSheetEntryReport.

// one of the dependent methods throws Exception
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
public void generateCollectionSheetEntryReport() throws Exception {
    SubmitFormParameters formParameters = new SubmitFormParameters();
    formParameters.setBranch("MyOfficeDHMFT");
    formParameters.setLoanOfficer("ALL");
    formParameters.setCenter("Default Center");
    formParameters.setTransactionDay("23");
    formParameters.setTransactionMonth("04");
    formParameters.setTransactionYear("2009");
    LoginPage loginPage = appLauncher.launchMifos();
    HomePage homePage = loginPage.loginSuccessfullyUsingDefaultCredentials();
    ReportsPage reportsPage = homePage.navigateToReportsPage();
    CollectionSheetReportParametersPage collSheetReportParametersPage = reportsPage.selectCollectionSheetEntryReport();
    collSheetReportParametersPage.generateCollectionSheetEntryReport(formParameters);
// TODO: No validation for now.  This will simply demonstrate the problem if
// PDF generation is messed up (as it was when the itext library was removed)
// An attempt was made to validate by using the BIRT url to generate the PDF
// but following that url includes parameter dropdown screens before whatever
// call actually generates the PDF
}
Also used : HomePage(org.mifos.test.acceptance.framework.HomePage) CollectionSheetReportParametersPage(org.mifos.test.acceptance.framework.reports.CollectionSheetReportParametersPage) SubmitFormParameters(org.mifos.test.acceptance.framework.collectionsheet.CollectionSheetEntrySelectPage.SubmitFormParameters) LoginPage(org.mifos.test.acceptance.framework.login.LoginPage) ReportsPage(org.mifos.test.acceptance.framework.reports.ReportsPage)

Example 30 with HomePage

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

the class ViewReportsTest method loginAndGoToAdminPage.

private AdminPage loginAndGoToAdminPage() {
    HomePage homePage = appLauncher.launchMifos().loginSuccessfullyUsingDefaultCredentials();
    homePage.verifyPage();
    AdminPage adminPage = homePage.navigateToAdminPage();
    adminPage.verifyPage();
    return adminPage;
}
Also used : HomePage(org.mifos.test.acceptance.framework.HomePage) AdminPage(org.mifos.test.acceptance.framework.admin.AdminPage)

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