Search in sources :

Example 6 with CenterViewDetailsPage

use of org.mifos.test.acceptance.framework.center.CenterViewDetailsPage in project head by mifos.

the class UpdateCustomPropertiesTest method verifyPropertyClientRulesCenterHierarchyExistsTrue.

@SuppressWarnings("PMD.SignatureDeclareThrowsException")
//http://mifosforge.jira.com/browse/MIFOSTEST-231
@Test(enabled = true)
public void verifyPropertyClientRulesCenterHierarchyExistsTrue() throws Exception {
    //Given
    propertiesHelper.setCenterHierarchyExists("true");
    //When
    CreateCenterEnterDataPage.SubmitFormParameters formParameters = new CreateCenterEnterDataPage.SubmitFormParameters();
    formParameters.setCenterName("testCenterName12123");
    formParameters.setLoanOfficer("loan officer");
    MeetingParameters meeting = new MeetingParameters();
    meeting.setMeetingPlace("Bangalore");
    meeting.setWeekDay(MeetingParameters.WeekDay.WEDNESDAY);
    meeting.setWeekFrequency("1");
    formParameters.setMeeting(meeting);
    CenterViewDetailsPage centerViewDetailsPage = centerTestHelper.createCenter(formParameters, "MyOfficeDHMFT");
    //Then
    centerViewDetailsPage.verifyActiveCenter(formParameters);
}
Also used : CreateCenterEnterDataPage(org.mifos.test.acceptance.framework.center.CreateCenterEnterDataPage) MeetingParameters(org.mifos.test.acceptance.framework.center.MeetingParameters) CenterViewDetailsPage(org.mifos.test.acceptance.framework.center.CenterViewDetailsPage) SubmitFormParameters(org.mifos.test.acceptance.framework.loanproduct.DefineNewLoanProductPage.SubmitFormParameters) Test(org.testng.annotations.Test)

Example 7 with CenterViewDetailsPage

use of org.mifos.test.acceptance.framework.center.CenterViewDetailsPage in project head by mifos.

the class CenterTestHelper method editCenterMeetingSchedule.

public CenterViewDetailsPage editCenterMeetingSchedule(String centerName, MeetingParameters parameters) {
    CenterViewDetailsPage centerViewDetailsPage = navigationHelper.navigateToCenterViewDetailsPage(centerName).navigateToEditMeetingPage().editCenterMeeting(parameters);
    centerViewDetailsPage.varifyMeetingSchedule(parameters);
    return centerViewDetailsPage;
}
Also used : CenterViewDetailsPage(org.mifos.test.acceptance.framework.center.CenterViewDetailsPage)

Aggregations

CenterViewDetailsPage (org.mifos.test.acceptance.framework.center.CenterViewDetailsPage)7 HomePage (org.mifos.test.acceptance.framework.HomePage)2 CreateCenterEnterDataPage (org.mifos.test.acceptance.framework.center.CreateCenterEnterDataPage)2 ViewQuestionResponseDetailPage (org.mifos.test.acceptance.framework.questionnaire.ViewQuestionResponseDetailPage)2 SearchResultsPage (org.mifos.test.acceptance.framework.search.SearchResultsPage)2 Test (org.testng.annotations.Test)2 ArrayList (java.util.ArrayList)1 MeetingParameters (org.mifos.test.acceptance.framework.center.MeetingParameters)1 AttachSurveyPage (org.mifos.test.acceptance.framework.loan.AttachSurveyPage)1 ClosedAccountsPage (org.mifos.test.acceptance.framework.loan.ClosedAccountsPage)1 QuestionResponseParameters (org.mifos.test.acceptance.framework.loan.QuestionResponseParameters)1 SubmitFormParameters (org.mifos.test.acceptance.framework.loanproduct.DefineNewLoanProductPage.SubmitFormParameters)1 LoginPage (org.mifos.test.acceptance.framework.login.LoginPage)1 CreateQuestionGroupParameters (org.mifos.test.acceptance.framework.questionnaire.CreateQuestionGroupParameters)1 CreateQuestionParameters (org.mifos.test.acceptance.framework.questionnaire.CreateQuestionParameters)1 QuestionResponsePage (org.mifos.test.acceptance.framework.questionnaire.QuestionResponsePage)1 QuestionnairePage (org.mifos.test.acceptance.framework.questionnaire.QuestionnairePage)1