use of org.mifos.test.acceptance.framework.testhelpers.QuestionGroupTestHelper 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);
}
use of org.mifos.test.acceptance.framework.testhelpers.QuestionGroupTestHelper 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);
}
use of org.mifos.test.acceptance.framework.testhelpers.QuestionGroupTestHelper in project head by mifos.
the class CreateGroupLoanAccountTest method setUp.
@Override
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
@BeforeMethod(alwaysRun = true)
public void setUp() throws Exception {
super.setUp();
loanTestHelper = new LoanTestHelper(selenium);
navigationHelper = new NavigationHelper(selenium);
questionGroupTestHelper = new QuestionGroupTestHelper(selenium);
questionGroupTestHelper.markQuestionGroupAsInactive("QGForCreateLoan1");
questionGroupTestHelper.markQuestionGroupAsInactive("QGForCreateLoan2");
}
use of org.mifos.test.acceptance.framework.testhelpers.QuestionGroupTestHelper in project head by mifos.
the class GroupTest method createGroupInPendingApprovalStateTestWithSurveys.
@Test(singleThreaded = true, groups = { "smoke", "group", "acceptance", "ui", "no_db_unit" })
// one of the dependent methods throws Exception
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
public void createGroupInPendingApprovalStateTestWithSurveys() throws Exception {
QuestionGroupTestHelper questionGroupTestHelper = new QuestionGroupTestHelper(selenium);
String questionGroupTitle = "QG1" + random.nextInt(100);
String question1 = "Nu_" + random.nextInt(100);
String question2 = "SS_" + random.nextInt(100);
List<Choice> choices = asList(new Choice("Choice1", asList("Tag1", "Tag2")), new Choice("Choice2", asList("Tag3", "Tag4")));
createQuestionGroupForCreateGroup(questionGroupTitle, question1, question2, choices);
CreateGroupEntryPage groupEntryPage = loginAndNavigateToNewGroupPage();
CreateGroupSubmitParameters formParameters = getGenericGroupFormParameters();
QuestionResponsePage questionResponsePage = groupEntryPage.submitNewGroupAndNavigateToQuestionResponsePage(formParameters);
questionResponsePage.verifyPage();
questionResponsePage.verifyNumericBoundsValidation("name=questionGroups[0].sectionDetails[0].questions[0].value", "1000", 10, 100, question1);
questionResponsePage.populateTextAnswer("name=questionGroups[0].sectionDetails[0].questions[0].value", "30");
questionResponsePage.populateSmartSelect("txtListSearch", getChoiceTags());
GroupViewDetailsPage groupViewDetailsPage = questionResponsePage.navigateToCreateGroupDetailsPage("Application Pending*");
ViewQuestionResponseDetailPage responsePage = groupViewDetailsPage.navigateToViewAdditionalInformationPage();
responsePage.verifyPage();
responsePage.verifyQuestionPresent(question1, "30");
responsePage.verifyQuestionPresent(question2, "Choice", "Choice2");
responsePage.navigateToDetailsPage();
questionGroupTestHelper.markQuestionGroupAsInactive(questionGroupTitle);
}
use of org.mifos.test.acceptance.framework.testhelpers.QuestionGroupTestHelper 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);
}
Aggregations