Search in sources :

Example 1 with AttachSurveyPage

use of org.mifos.test.acceptance.framework.loan.AttachSurveyPage in project head by mifos.

the class QuestionGroupTestHelper method attachQuestionGroup.

public ClientViewDetailsPage attachQuestionGroup(String clientName, String questionGroupTitle, List<String> sections, Map<String, String> answers) {
    AttachSurveyPage attachSurveyPage = navigationHelper.navigateToClientViewDetailsPage(clientName).navigateToAttachSurveyPage();
    QuestionnairePage questionnairePage = attachSurveyPage.selectSurvey(questionGroupTitle);
    for (String section : sections) {
        questionnairePage.verifyTextPresent(section, clientName);
    }
    for (String question : answers.keySet()) {
        questionnairePage.setResponse(question, answers.get(question));
    }
    return (ClientViewDetailsPage) questionnairePage.submit();
}
Also used : AttachSurveyPage(org.mifos.test.acceptance.framework.loan.AttachSurveyPage) QuestionnairePage(org.mifos.test.acceptance.framework.questionnaire.QuestionnairePage) ClientViewDetailsPage(org.mifos.test.acceptance.framework.client.ClientViewDetailsPage)

Example 2 with AttachSurveyPage

use of org.mifos.test.acceptance.framework.loan.AttachSurveyPage in project head by mifos.

the class AttachSurveyLinkTest method attachSurveyToCenter.

@SuppressWarnings("PMD.SignatureDeclareThrowsException")
private void attachSurveyToCenter() throws Exception {
    CenterViewDetailsPage centerViewDetailsPage = navigationHelper.navigateToCenterViewDetailsPage("Default Center");
    AttachSurveyPage attachSurveyPage = centerViewDetailsPage.navigateToAttachSurveyPage();
    attachSurveyPage.verifyPage("selectQuestionnaire");
}
Also used : CenterViewDetailsPage(org.mifos.test.acceptance.framework.center.CenterViewDetailsPage) AttachSurveyPage(org.mifos.test.acceptance.framework.loan.AttachSurveyPage)

Example 3 with AttachSurveyPage

use of org.mifos.test.acceptance.framework.loan.AttachSurveyPage in project head by mifos.

the class AttachSurveyLinkTest method attachSurveyToGroupLoan.

@SuppressWarnings("PMD.SignatureDeclareThrowsException")
private void attachSurveyToGroupLoan() throws Exception {
    // ...206 is a group loan account
    LoanAccountPage loanAccountDetailPage = navigationHelper.navigateToLoanAccountPage("000100000000011");
    AttachSurveyPage attachSurveyPage = loanAccountDetailPage.navigateToAttachSurveyPage();
    attachSurveyPage.verifyPage("selectQuestionnaire");
}
Also used : AttachSurveyPage(org.mifos.test.acceptance.framework.loan.AttachSurveyPage) LoanAccountPage(org.mifos.test.acceptance.framework.loan.LoanAccountPage)

Example 4 with AttachSurveyPage

use of org.mifos.test.acceptance.framework.loan.AttachSurveyPage in project head by mifos.

the class AttachSurveyLinkTest method attachSurveyToGroup.

@SuppressWarnings("PMD.SignatureDeclareThrowsException")
private void attachSurveyToGroup() throws Exception {
    GroupViewDetailsPage groupViewDetailsPage = navigationHelper.navigateToGroupViewDetailsPage("Default Group");
    AttachSurveyPage attachSurveyPage = groupViewDetailsPage.navigateToAttachSurveyPage();
    attachSurveyPage.verifyPage("selectQuestionnaire");
}
Also used : GroupViewDetailsPage(org.mifos.test.acceptance.framework.group.GroupViewDetailsPage) AttachSurveyPage(org.mifos.test.acceptance.framework.loan.AttachSurveyPage)

Example 5 with AttachSurveyPage

use of org.mifos.test.acceptance.framework.loan.AttachSurveyPage in project head by mifos.

the class ClientViewDetailsPage method getQuestionnairePage.

public QuestionnairePage getQuestionnairePage(String questionGroupTitle) {
    AttachSurveyPage attachSurveyPage = navigateToAttachSurveyPage();
    QuestionnairePage questionnairePage = attachSurveyPage.selectSurvey(questionGroupTitle);
    questionnairePage.verifyPage();
    return questionnairePage;
}
Also used : AttachSurveyPage(org.mifos.test.acceptance.framework.loan.AttachSurveyPage) QuestionnairePage(org.mifos.test.acceptance.framework.questionnaire.QuestionnairePage)

Aggregations

AttachSurveyPage (org.mifos.test.acceptance.framework.loan.AttachSurveyPage)7 ClientViewDetailsPage (org.mifos.test.acceptance.framework.client.ClientViewDetailsPage)2 LoanAccountPage (org.mifos.test.acceptance.framework.loan.LoanAccountPage)2 QuestionnairePage (org.mifos.test.acceptance.framework.questionnaire.QuestionnairePage)2 CenterViewDetailsPage (org.mifos.test.acceptance.framework.center.CenterViewDetailsPage)1 GroupViewDetailsPage (org.mifos.test.acceptance.framework.group.GroupViewDetailsPage)1