Search in sources :

Example 1 with ClientTestHelper

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

the class AddFamilyDetailsTest method setUp.

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

Example 2 with ClientTestHelper

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

the class QuestionGroupSavingsAccountTest method setUp.

@Override
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
@BeforeMethod(alwaysRun = true)
public void setUp() throws Exception {
    super.setUp();
    questionGroupTestHelper = new QuestionGroupTestHelper(selenium);
    savingsAccountHelper = new SavingsAccountHelper(selenium);
    clientTestHelper = new ClientTestHelper(selenium);
}
Also used : QuestionGroupTestHelper(org.mifos.test.acceptance.framework.testhelpers.QuestionGroupTestHelper) SavingsAccountHelper(org.mifos.test.acceptance.framework.testhelpers.SavingsAccountHelper) ClientTestHelper(org.mifos.test.acceptance.framework.testhelpers.ClientTestHelper) BeforeMethod(org.testng.annotations.BeforeMethod)

Example 3 with ClientTestHelper

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

the class PPITest method setUp.

@Override
@BeforeMethod(alwaysRun = true)
public void setUp() throws Exception {
    super.setUp();
    questionGroupTestHelper = new QuestionGroupTestHelper(selenium);
    clientTestHelper = new ClientTestHelper(selenium);
    DateTimeUpdaterRemoteTestingService dateTimeUpdaterRemoteTestingService = new DateTimeUpdaterRemoteTestingService(selenium);
    DateTime targetTime = new DateTime(2009, 11, 7, 10, 0, 0, 0);
    dateTimeUpdaterRemoteTestingService.setDateTime(targetTime);
}
Also used : QuestionGroupTestHelper(org.mifos.test.acceptance.framework.testhelpers.QuestionGroupTestHelper) ClientTestHelper(org.mifos.test.acceptance.framework.testhelpers.ClientTestHelper) DateTimeUpdaterRemoteTestingService(org.mifos.test.acceptance.remote.DateTimeUpdaterRemoteTestingService) DateTime(org.joda.time.DateTime) BeforeMethod(org.testng.annotations.BeforeMethod)

Example 4 with ClientTestHelper

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

the class GuarantyCoreTest method setUp.

@Override
@BeforeMethod(alwaysRun = true)
public void setUp() throws Exception {
    super.setUp();
    loanTestHelper = new LoanTestHelper(selenium);
    clientTestHelper = new ClientTestHelper(selenium);
    customPropertiesHelper = new CustomPropertiesHelper(selenium);
    customPropertiesHelper.setNewGroupLoanWithMembers(true);
}
Also used : ClientTestHelper(org.mifos.test.acceptance.framework.testhelpers.ClientTestHelper) CustomPropertiesHelper(org.mifos.test.acceptance.framework.testhelpers.CustomPropertiesHelper) LoanTestHelper(org.mifos.test.acceptance.framework.testhelpers.LoanTestHelper) BeforeMethod(org.testng.annotations.BeforeMethod)

Example 5 with ClientTestHelper

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

the class QuestionGroupTest method setUp.

@Override
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
@BeforeMethod(alwaysRun = true)
public void setUp() throws Exception {
    super.setUp();
    officeHelper = new OfficeHelper(selenium);
    appLauncher = new AppLauncher(selenium);
    loanTestHelper = new LoanTestHelper(selenium);
    questionGroupTestHelper = new QuestionGroupTestHelper(selenium);
    clientTestHelper = new ClientTestHelper(selenium);
    questionGroupInstancesOfClient = new HashMap<Integer, QuestionGroup>();
    qgTitle1 = "QuestionGroup1";
    qgTitle2 = "QuestionGroup2";
    qgTitle3 = "QuestionGroup3";
    qgTitle4 = "QuestionGroup4";
    qTitle1 = "Question1";
    qTitle2 = "Question2";
    qTitle3 = "Question3";
    qTitle4 = "Question4";
    qTitle5 = "Question5";
    QUESTIONS.put("TextQuestionTest", CreateQuestionParameters.TYPE_FREE_TEXT);
    QUESTIONS.put("DateQuestionTest", CreateQuestionParameters.TYPE_DATE);
    QUESTIONS.put("NumberQuestionTest", CreateQuestionParameters.TYPE_NUMBER);
    QUESTIONS.put("MultiSelectQuestionTest", CreateQuestionParameters.TYPE_MULTI_SELECT);
    QUESTIONS.put("SingleSelectQuestionTest", CreateQuestionParameters.TYPE_SINGLE_SELECT);
    QUESTIONS.put("SmartSelectQuestionTest", CreateQuestionParameters.TYPE_SMART_SELECT);
}
Also used : QuestionGroupTestHelper(org.mifos.test.acceptance.framework.testhelpers.QuestionGroupTestHelper) OfficeHelper(org.mifos.test.acceptance.framework.testhelpers.OfficeHelper) ClientTestHelper(org.mifos.test.acceptance.framework.testhelpers.ClientTestHelper) QuestionGroup(org.mifos.test.acceptance.framework.client.QuestionGroup) AppLauncher(org.mifos.test.acceptance.framework.AppLauncher) LoanTestHelper(org.mifos.test.acceptance.framework.testhelpers.LoanTestHelper) BeforeMethod(org.testng.annotations.BeforeMethod)

Aggregations

ClientTestHelper (org.mifos.test.acceptance.framework.testhelpers.ClientTestHelper)9 BeforeMethod (org.testng.annotations.BeforeMethod)9 QuestionGroupTestHelper (org.mifos.test.acceptance.framework.testhelpers.QuestionGroupTestHelper)5 CustomPropertiesHelper (org.mifos.test.acceptance.framework.testhelpers.CustomPropertiesHelper)4 LoanTestHelper (org.mifos.test.acceptance.framework.testhelpers.LoanTestHelper)4 CenterTestHelper (org.mifos.test.acceptance.framework.testhelpers.CenterTestHelper)3 GroupTestHelper (org.mifos.test.acceptance.framework.testhelpers.GroupTestHelper)3 NavigationHelper (org.mifos.test.acceptance.framework.testhelpers.NavigationHelper)3 SavingsAccountHelper (org.mifos.test.acceptance.framework.testhelpers.SavingsAccountHelper)3 DateTimeUpdaterRemoteTestingService (org.mifos.test.acceptance.remote.DateTimeUpdaterRemoteTestingService)3 DateTime (org.joda.time.DateTime)2 AppLauncher (org.mifos.test.acceptance.framework.AppLauncher)2 FeeTestHelper (org.mifos.test.acceptance.admin.FeeTestHelper)1 QuestionGroup (org.mifos.test.acceptance.framework.client.QuestionGroup)1 HolidayTestHelper (org.mifos.test.acceptance.framework.testhelpers.HolidayTestHelper)1 OfficeHelper (org.mifos.test.acceptance.framework.testhelpers.OfficeHelper)1 SavingsProductHelper (org.mifos.test.acceptance.framework.testhelpers.SavingsProductHelper)1 InitializeApplicationRemoteTestingService (org.mifos.test.acceptance.remote.InitializeApplicationRemoteTestingService)1 TestDataSetup (org.mifos.test.acceptance.util.TestDataSetup)1