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);
}
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);
}
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();
}
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;
}
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);
}
Aggregations