use of org.mifos.test.acceptance.framework.testhelpers.QuestionGroupTestHelper in project head by mifos.
the class CreateClientLoanAccountTest method setUp.
@Override
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
// one of the dependent methods throws Exception
@BeforeMethod(alwaysRun = true)
public void setUp() throws Exception {
super.setUp();
loanTestHelper = new LoanTestHelper(selenium);
loanProductTestHelper = new LoanProductTestHelper(selenium);
navigationHelper = new NavigationHelper(selenium);
feeTestHelper = new FeeTestHelper(new TestDataSetup(selenium, applicationDatabaseOperation), navigationHelper);
questionGroupHelper = new QuestionGroupHelper(navigationHelper);
questionGroupTestHelper = new QuestionGroupTestHelper(selenium);
random = new Random();
}
use of org.mifos.test.acceptance.framework.testhelpers.QuestionGroupTestHelper in project head by mifos.
the class ClientLoanStatusChangeTest method pendingApprovalToApplicationApprovedWithQuestionGroup.
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
public void pendingApprovalToApplicationApprovedWithQuestionGroup() throws Exception {
String qgForLoanApproval = "QGForLoanApproval";
QuestionGroupTestHelper questionGroupTestHelper = new QuestionGroupTestHelper(selenium);
questionGroupTestHelper.markQuestionGroupAsActive(qgForLoanApproval);
EditLoanAccountStatusParameters statusParameters = new EditLoanAccountStatusParameters();
statusParameters.setStatus(EditLoanAccountStatusParameters.APPROVED);
statusParameters.setNote("Test");
QuestionResponseParameters responseParameters = new QuestionResponseParameters();
responseParameters.addTextAnswer("create_ClientPersonalInfo.input.customField", "testResponse");
loanTestHelper.changeLoanAccountStatusProvidingQuestionGroupResponses("000100000000055", statusParameters, responseParameters);
questionGroupTestHelper.markQuestionGroupAsInactive(qgForLoanApproval);
}
use of org.mifos.test.acceptance.framework.testhelpers.QuestionGroupTestHelper 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);
}
use of org.mifos.test.acceptance.framework.testhelpers.QuestionGroupTestHelper in project head by mifos.
the class CreateSavingsAccountTest method setUp.
@Override
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
// one of the dependent methods throws Exception
@BeforeMethod(alwaysRun = true)
public void setUp() throws Exception {
super.setUp();
savingsAccountHelper = new SavingsAccountHelper(selenium);
questionGroupTestHelper = new QuestionGroupTestHelper(selenium);
questionGroupTestHelper.markQuestionGroupAsActive("QGForCreateSavingsAccount");
}
use of org.mifos.test.acceptance.framework.testhelpers.QuestionGroupTestHelper in project head by mifos.
the class AttachSurveyLinkTest method setUp.
@Override
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
// one of the dependent methods throws Exception
@BeforeMethod
public void setUp() throws Exception {
super.setUp();
DateTimeUpdaterRemoteTestingService dateTimeUpdaterRemoteTestingService = new DateTimeUpdaterRemoteTestingService(selenium);
DateTime targetTime = new DateTime(2009, 7, 11, 14, 01, 0, 0);
dateTimeUpdaterRemoteTestingService.setDateTime(targetTime);
navigationHelper = new NavigationHelper(selenium);
questionGroupTestHelper = new QuestionGroupTestHelper(selenium);
questionGroupTestHelper.markQuestionGroupAsActive(QG_FOR_VIEW_CLIENT_CENTRE_GROUP_LOAN);
}
Aggregations