Search in sources :

Example 1 with AppLauncher

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

the class ViewProductCategoriesTest method setUp.

@Override
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
// one of the dependent methods throws Exception
@BeforeMethod
public void setUp() throws Exception {
    super.setUp();
    appLauncher = new AppLauncher(selenium);
}
Also used : AppLauncher(org.mifos.test.acceptance.framework.AppLauncher) BeforeMethod(org.testng.annotations.BeforeMethod)

Example 2 with AppLauncher

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

the class PersonnelTest method createUserWithNonAdminRoleTest.

//http://mifosforge.jira.com/browse/MIFOSTEST-298
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
@Test(enabled = true, groups = { "acceptance" })
public void createUserWithNonAdminRoleTest() throws Exception {
    AdminPage adminPage = navigationHelper.navigateToAdminPage();
    CreateUserParameters formParameters = adminPage.getNonAdminUserParameters();
    //When
    userHelper.createUser(formParameters, "MyOfficeDHMFT");
    LoginPage loginPage = new AppLauncher(selenium).launchMifos();
    loginPage.verifyPage();
    //Then
    HomePage homePage = loginPage.loginSuccessfulAsWithChnagePasw(formParameters.getUserName(), formParameters.getPassword());
    homePage.verifyPage();
    adminPage = navigationHelper.navigateToAdminPageAsLogedUser(formParameters.getUserName(), "newPasw");
    adminPage.navigateToCreateUserPage();
    String error = selenium.getText("admin.error.message");
    Assert.assertEquals(error.contains("You do not have permissions to perform this activity. Contact your system administrator to grant you the required permissions and try again."), true);
}
Also used : AdminPage(org.mifos.test.acceptance.framework.admin.AdminPage) HomePage(org.mifos.test.acceptance.framework.HomePage) CreateUserParameters(org.mifos.test.acceptance.framework.user.CreateUserParameters) AppLauncher(org.mifos.test.acceptance.framework.AppLauncher) LoginPage(org.mifos.test.acceptance.framework.login.LoginPage) Test(org.testng.annotations.Test)

Example 3 with AppLauncher

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

the class PersonnelTest method createUserTest.

@SuppressWarnings("PMD.SignatureDeclareThrowsException")
public void createUserTest() throws Exception {
    AdminPage adminPage = navigationHelper.navigateToAdminPage();
    CreateUserParameters formParameters = adminPage.getAdminUserParameters();
    //When
    userHelper.createUser(formParameters, "MyOfficeDHMFT");
    LoginPage loginPage = new AppLauncher(selenium).launchMifos();
    loginPage.verifyPage();
    //Then
    HomePage homePage = loginPage.loginSuccessfulAsWithChnagePasw(formParameters.getUserName(), formParameters.getPassword());
    homePage.verifyPage();
}
Also used : AdminPage(org.mifos.test.acceptance.framework.admin.AdminPage) HomePage(org.mifos.test.acceptance.framework.HomePage) CreateUserParameters(org.mifos.test.acceptance.framework.user.CreateUserParameters) AppLauncher(org.mifos.test.acceptance.framework.AppLauncher) LoginPage(org.mifos.test.acceptance.framework.login.LoginPage)

Example 4 with AppLauncher

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

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

the class StandardReportsTest method setUp.

@Override
// one of the dependent methods throws Exception
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
@BeforeMethod
public void setUp() throws Exception {
    super.setUp();
    appLauncher = new AppLauncher(selenium);
    reportTestHelper = new ReportTestHelper(selenium);
}
Also used : ReportTestHelper(org.mifos.test.acceptance.framework.testhelpers.ReportTestHelper) AppLauncher(org.mifos.test.acceptance.framework.AppLauncher) BeforeMethod(org.testng.annotations.BeforeMethod)

Aggregations

AppLauncher (org.mifos.test.acceptance.framework.AppLauncher)35 BeforeMethod (org.testng.annotations.BeforeMethod)22 LoginPage (org.mifos.test.acceptance.framework.login.LoginPage)13 HomePage (org.mifos.test.acceptance.framework.HomePage)10 DateTimeUpdaterRemoteTestingService (org.mifos.test.acceptance.remote.DateTimeUpdaterRemoteTestingService)5 LoanTestHelper (org.mifos.test.acceptance.framework.testhelpers.LoanTestHelper)4 NavigationHelper (org.mifos.test.acceptance.framework.testhelpers.NavigationHelper)4 DateTime (org.joda.time.DateTime)2 ClientsAndAccountsHomepage (org.mifos.test.acceptance.framework.ClientsAndAccountsHomepage)2 MifosPage (org.mifos.test.acceptance.framework.MifosPage)2 AdminPage (org.mifos.test.acceptance.framework.admin.AdminPage)2 ClientTestHelper (org.mifos.test.acceptance.framework.testhelpers.ClientTestHelper)2 GroupTestHelper (org.mifos.test.acceptance.framework.testhelpers.GroupTestHelper)2 HolidayTestHelper (org.mifos.test.acceptance.framework.testhelpers.HolidayTestHelper)2 QuestionGroupTestHelper (org.mifos.test.acceptance.framework.testhelpers.QuestionGroupTestHelper)2 CreateUserParameters (org.mifos.test.acceptance.framework.user.CreateUserParameters)2 Random (java.util.Random)1 ClientSearchResultsPage (org.mifos.test.acceptance.framework.client.ClientSearchResultsPage)1 QuestionGroup (org.mifos.test.acceptance.framework.client.QuestionGroup)1 RedoLoanDisbursalSearchResultsPage (org.mifos.test.acceptance.framework.loan.RedoLoanDisbursalSearchResultsPage)1