Search in sources :

Example 1 with GroupTestHelper

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

the class GroupTest method setUp.

@Override
// one of the dependent methods throws Exception
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
@BeforeMethod(alwaysRun = true)
public void setUp() throws Exception {
    super.setUp();
    appLauncher = new AppLauncher(selenium);
    navigationHelper = new NavigationHelper(selenium);
    random = new Random();
    groupTestHelper = new GroupTestHelper(selenium);
    questionGroupTestHelper = new QuestionGroupTestHelper(selenium);
}
Also used : QuestionGroupTestHelper(org.mifos.test.acceptance.framework.testhelpers.QuestionGroupTestHelper) GroupTestHelper(org.mifos.test.acceptance.framework.testhelpers.GroupTestHelper) QuestionGroupTestHelper(org.mifos.test.acceptance.framework.testhelpers.QuestionGroupTestHelper) NavigationHelper(org.mifos.test.acceptance.framework.testhelpers.NavigationHelper) Random(java.util.Random) AppLauncher(org.mifos.test.acceptance.framework.AppLauncher) BeforeMethod(org.testng.annotations.BeforeMethod)

Example 2 with GroupTestHelper

use of org.mifos.test.acceptance.framework.testhelpers.GroupTestHelper 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();
}
Also used : GroupTestHelper(org.mifos.test.acceptance.framework.testhelpers.GroupTestHelper) NavigationHelper(org.mifos.test.acceptance.framework.testhelpers.NavigationHelper) CreateGroupEntryPage(org.mifos.test.acceptance.framework.group.CreateGroupEntryPage)

Example 3 with GroupTestHelper

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

the class CenterTest method setUp.

@Override
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
// one of the dependent methods throws Exception
@BeforeMethod(alwaysRun = true)
public void setUp() throws Exception {
    super.setUp();
    centerTestHelper = new CenterTestHelper(selenium);
    questionTestHelper = new QuestionGroupTestHelper(selenium);
    clientTestHelper = new ClientTestHelper(selenium);
    groupTestHelper = new GroupTestHelper(selenium);
    new InitializeApplicationRemoteTestingService().reinitializeApplication(selenium);
}
Also used : QuestionGroupTestHelper(org.mifos.test.acceptance.framework.testhelpers.QuestionGroupTestHelper) GroupTestHelper(org.mifos.test.acceptance.framework.testhelpers.GroupTestHelper) QuestionGroupTestHelper(org.mifos.test.acceptance.framework.testhelpers.QuestionGroupTestHelper) ClientTestHelper(org.mifos.test.acceptance.framework.testhelpers.ClientTestHelper) InitializeApplicationRemoteTestingService(org.mifos.test.acceptance.remote.InitializeApplicationRemoteTestingService) CenterTestHelper(org.mifos.test.acceptance.framework.testhelpers.CenterTestHelper) BeforeMethod(org.testng.annotations.BeforeMethod)

Example 4 with GroupTestHelper

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

the class ClientTest method setUp.

@Override
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
// one of the dependent methods throws Exception
@BeforeMethod(alwaysRun = true)
public void setUp() throws Exception {
    super.setUp();
    navigationHelper = new NavigationHelper(selenium);
    propertiesHelper = new CustomPropertiesHelper(selenium);
    clientTestHelper = new ClientTestHelper(selenium);
    questionGroupTestHelper = new QuestionGroupTestHelper(selenium);
    groupTestHelper = new GroupTestHelper(selenium);
    savingsAccountHelper = new SavingsAccountHelper(selenium);
    savingsProductHelper = new SavingsProductHelper(selenium);
    DateTimeUpdaterRemoteTestingService dateTimeUpdaterRemoteTestingService = new DateTimeUpdaterRemoteTestingService(selenium);
    targetTime = new DateTime(2009, 7, 11, 12, 0, 0, 0);
    dateTimeUpdaterRemoteTestingService.setDateTime(targetTime);
    TestDataSetup dataSetup = new TestDataSetup(selenium, applicationDatabaseOperation);
    feeTestHelper = new FeeTestHelper(dataSetup, navigationHelper);
    loanTestHelper = new LoanTestHelper(selenium);
}
Also used : QuestionGroupTestHelper(org.mifos.test.acceptance.framework.testhelpers.QuestionGroupTestHelper) TestDataSetup(org.mifos.test.acceptance.util.TestDataSetup) FeeTestHelper(org.mifos.test.acceptance.admin.FeeTestHelper) GroupTestHelper(org.mifos.test.acceptance.framework.testhelpers.GroupTestHelper) QuestionGroupTestHelper(org.mifos.test.acceptance.framework.testhelpers.QuestionGroupTestHelper) SavingsAccountHelper(org.mifos.test.acceptance.framework.testhelpers.SavingsAccountHelper) NavigationHelper(org.mifos.test.acceptance.framework.testhelpers.NavigationHelper) ClientTestHelper(org.mifos.test.acceptance.framework.testhelpers.ClientTestHelper) CustomPropertiesHelper(org.mifos.test.acceptance.framework.testhelpers.CustomPropertiesHelper) SavingsProductHelper(org.mifos.test.acceptance.framework.testhelpers.SavingsProductHelper) DateTimeUpdaterRemoteTestingService(org.mifos.test.acceptance.remote.DateTimeUpdaterRemoteTestingService) DateTime(org.joda.time.DateTime) LoanTestHelper(org.mifos.test.acceptance.framework.testhelpers.LoanTestHelper) BeforeMethod(org.testng.annotations.BeforeMethod)

Example 5 with GroupTestHelper

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

the class AdditionalHolidayTest method setUp.

@Override
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
// one of the dependent methods throws Exception
@BeforeMethod(alwaysRun = true)
public void setUp() throws Exception {
    super.setUp();
    dateTimeUpdaterRemoteTestingService = new DateTimeUpdaterRemoteTestingService(selenium);
    appLauncher = new AppLauncher(selenium);
    holidayTestHelper = new HolidayTestHelper(selenium);
    centerTestHelper = new CenterTestHelper(selenium);
    groupTestHelper = new GroupTestHelper(selenium);
    clientTestHelper = new ClientTestHelper(selenium);
    loanTestHelper = new LoanTestHelper(selenium);
    navigationHelper = new NavigationHelper(selenium);
}
Also used : GroupTestHelper(org.mifos.test.acceptance.framework.testhelpers.GroupTestHelper) ClientTestHelper(org.mifos.test.acceptance.framework.testhelpers.ClientTestHelper) NavigationHelper(org.mifos.test.acceptance.framework.testhelpers.NavigationHelper) CenterTestHelper(org.mifos.test.acceptance.framework.testhelpers.CenterTestHelper) DateTimeUpdaterRemoteTestingService(org.mifos.test.acceptance.remote.DateTimeUpdaterRemoteTestingService) AppLauncher(org.mifos.test.acceptance.framework.AppLauncher) HolidayTestHelper(org.mifos.test.acceptance.framework.testhelpers.HolidayTestHelper) LoanTestHelper(org.mifos.test.acceptance.framework.testhelpers.LoanTestHelper) BeforeMethod(org.testng.annotations.BeforeMethod)

Aggregations

GroupTestHelper (org.mifos.test.acceptance.framework.testhelpers.GroupTestHelper)8 NavigationHelper (org.mifos.test.acceptance.framework.testhelpers.NavigationHelper)4 QuestionGroupTestHelper (org.mifos.test.acceptance.framework.testhelpers.QuestionGroupTestHelper)4 BeforeMethod (org.testng.annotations.BeforeMethod)4 CreateGroupSubmitParameters (org.mifos.test.acceptance.framework.group.CreateGroupEntryPage.CreateGroupSubmitParameters)3 ClientTestHelper (org.mifos.test.acceptance.framework.testhelpers.ClientTestHelper)3 Test (org.testng.annotations.Test)3 AppLauncher (org.mifos.test.acceptance.framework.AppLauncher)2 CenterTestHelper (org.mifos.test.acceptance.framework.testhelpers.CenterTestHelper)2 LoanTestHelper (org.mifos.test.acceptance.framework.testhelpers.LoanTestHelper)2 DateTimeUpdaterRemoteTestingService (org.mifos.test.acceptance.remote.DateTimeUpdaterRemoteTestingService)2 Random (java.util.Random)1 DateTime (org.joda.time.DateTime)1 FeeTestHelper (org.mifos.test.acceptance.admin.FeeTestHelper)1 AdminPage (org.mifos.test.acceptance.framework.admin.AdminPage)1 DefineAcceptedPaymentTypesPage (org.mifos.test.acceptance.framework.admin.DefineAcceptedPaymentTypesPage)1 CreateCenterEnterDataPage (org.mifos.test.acceptance.framework.center.CreateCenterEnterDataPage)1 CreateMeetingPage (org.mifos.test.acceptance.framework.center.CreateMeetingPage)1 CreateClientEnterMfiDataPage (org.mifos.test.acceptance.framework.client.CreateClientEnterMfiDataPage)1 CreateGroupEntryPage (org.mifos.test.acceptance.framework.group.CreateGroupEntryPage)1