Search in sources :

Example 1 with ViewSystemUsersPage

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

the class PersonnelTest method findUserTest.

@SuppressWarnings("PMD.SignatureDeclareThrowsException")
@Test(enabled = true, groups = { "acceptance" })
public void findUserTest() throws Exception {
    CreateUserParameters formParameters = new CreateUserParameters();
    AdminPage adminPage = navigationHelper.navigateToAdminPage();
    formParameters = adminPage.getAdminUserParameters();
    formParameters.setSecondLastName("SecondLastName" + StringUtil.getRandomString(8));
    //When
    userHelper.createUser(formParameters, "MyOfficeDHMFT");
    //Then
    ViewSystemUsersPage findUserPage = navigationHelper.navigateToFindUserPage();
    String secondLastName = formParameters.getSecondLastName();
    findUserPage.searchAndNavigateToUserViewDetailsPage(secondLastName);
}
Also used : AdminPage(org.mifos.test.acceptance.framework.admin.AdminPage) CreateUserParameters(org.mifos.test.acceptance.framework.user.CreateUserParameters) ViewSystemUsersPage(org.mifos.test.acceptance.framework.admin.ViewSystemUsersPage) Test(org.testng.annotations.Test)

Example 2 with ViewSystemUsersPage

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

the class NavigationHelper method navigateToFindUserPage.

public ViewSystemUsersPage navigateToFindUserPage() {
    AdminPage adminPage = navigateToAdminPage();
    ViewSystemUsersPage findUserPage = adminPage.navigateToViewSystemUsersPage();
    return findUserPage;
}
Also used : AdminPage(org.mifos.test.acceptance.framework.admin.AdminPage) ViewSystemUsersPage(org.mifos.test.acceptance.framework.admin.ViewSystemUsersPage)

Aggregations

AdminPage (org.mifos.test.acceptance.framework.admin.AdminPage)2 ViewSystemUsersPage (org.mifos.test.acceptance.framework.admin.ViewSystemUsersPage)2 CreateUserParameters (org.mifos.test.acceptance.framework.user.CreateUserParameters)1 Test (org.testng.annotations.Test)1