use of org.mifos.test.acceptance.framework.testhelpers.NavigationHelper in project head by mifos.
the class CenterMeetingTest method prepareGroupForTest.
private void prepareGroupForTest() {
GroupTestHelper groupHelper = new GroupTestHelper(selenium);
CreateGroupEntryPage.CreateGroupSubmitParameters groupParams = new CreateGroupEntryPage.CreateGroupSubmitParameters();
groupName = StringUtil.getRandomString(8);
groupParams.setGroupName(groupName);
groupParams.setRecruitedBy(firstName + " " + lastName);
groupHelper.createNewGroup(centerName, groupParams);
groupHelper.activateGroup(groupName);
new NavigationHelper(selenium).navigateToHomePage();
}
use of org.mifos.test.acceptance.framework.testhelpers.NavigationHelper in project head by mifos.
the class CenterTest method verifyAcceptedPaymentTypesForCenter.
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
// http://mifosforge.jira.com/browse/MIFOSTEST-246
@Test(enabled = true)
public void verifyAcceptedPaymentTypesForCenter() throws Exception {
// When
CreateCenterEnterDataPage.SubmitFormParameters formParameters = new CreateCenterEnterDataPage.SubmitFormParameters();
String testCenterName = "Center" + StringUtil.getRandomString(6);
formParameters.setCenterName(testCenterName);
formParameters.setLoanOfficer("loan officer");
MeetingParameters meeting = new MeetingParameters();
meeting.setMeetingPlace("centerTestMeetingPlace" + StringUtil.getRandomString(2));
meeting.setWeekFrequency("1");
meeting.setWeekDay(MeetingParameters.WeekDay.MONDAY);
formParameters.setMeeting(meeting);
centerTestHelper.createCenter(formParameters, "MyOfficeDHMFT");
NavigationHelper navigationHelper = new NavigationHelper(selenium);
AdminPage adminPage = navigationHelper.navigateToAdminPage();
DefineAcceptedPaymentTypesPage defineAcceptedPaymentTypesPage = adminPage.navigateToDefineAcceptedPaymentType();
defineAcceptedPaymentTypesPage.addLoanFeesPaymentType(DefineAcceptedPaymentTypesPage.CHEQUE);
adminPage = navigationHelper.navigateToAdminPage();
defineAcceptedPaymentTypesPage = adminPage.navigateToDefineAcceptedPaymentType();
defineAcceptedPaymentTypesPage.addLoanFeesPaymentType(DefineAcceptedPaymentTypesPage.VOUCHER);
ApplyPaymentPage applyPaymentPage = navigationHelper.navigateToCenterViewDetailsPage(testCenterName).navigateToViewCenterChargesDetailPage().navigateToApplyPayments();
// Then
applyPaymentPage.verifyModeOfPayments();
}
use of org.mifos.test.acceptance.framework.testhelpers.NavigationHelper in project head by mifos.
the class ImportTransactionsTest method importExcelFormatAudiBankTransactions.
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
@Test(enabled = true)
public void importExcelFormatAudiBankTransactions() throws Exception {
pluginsUtil.loadPlugin();
navigationHelper = new NavigationHelper(selenium);
String importFile = this.getClass().getResource("/AudiUSD-SevenTransactions.xls").toString();
initRemote.dataLoadAndCacheRefresh(dbUnitUtilities, "mpesa_export_dbunit.xml", dataSource, selenium);
importTransaction(importFile, EXCEL_IMPORT_TYPE);
// TODO - add proper UI verifications and enable this test after MIFOS-4651 is fixed
(new MifosPage(selenium)).logout();
pluginsUtil.unloadPlugin();
}
use of org.mifos.test.acceptance.framework.testhelpers.NavigationHelper in project head by mifos.
the class ImportTransactionsTest method importTransactionPageLoad.
// Test the import transaction page loads with no plugins available - regression test for MIFOS-2683
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
@Test(enabled = true, groups = "no_db_unit")
public void importTransactionPageLoad() throws Exception {
navigationHelper = new NavigationHelper(selenium);
String tempFileName = pluginsUtil.movePluginToTemp();
AdminPage adminPage = navigationHelper.navigateToAdminPage();
ImportTransactionsPage importTransactionsPage = adminPage.navigateToImportTransactionsPage();
importTransactionsPage.verifyPage();
pluginsUtil.movePluginFromTemp(tempFileName);
(new MifosPage(selenium)).logout();
}
use of org.mifos.test.acceptance.framework.testhelpers.NavigationHelper in project head by mifos.
the class LoanImportTest method setUp.
@Override
@BeforeMethod
public void setUp() throws Exception {
super.setUp();
loanProductTestHelper = new LoanProductTestHelper(selenium);
adminTestHelper = new AdminTestHelper(selenium);
navigationHelper = new NavigationHelper(selenium);
}
Aggregations