Search in sources :

Example 16 with MifosPage

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

the class CollectionSheetEntrySimpleTest method logOut.

@AfterMethod
public void logOut() {
    (new MifosPage(selenium)).logout();
    new DateTimeUpdaterRemoteTestingService(selenium).resetDateTime();
}
Also used : MifosPage(org.mifos.test.acceptance.framework.MifosPage) DateTimeUpdaterRemoteTestingService(org.mifos.test.acceptance.remote.DateTimeUpdaterRemoteTestingService) AfterMethod(org.testng.annotations.AfterMethod)

Example 17 with MifosPage

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

the class CollectionSheetEntryCustomerAccountTest method logOut.

@AfterMethod
public void logOut() {
    (new MifosPage(selenium)).logout();
    new DateTimeUpdaterRemoteTestingService(selenium).resetDateTime();
}
Also used : MifosPage(org.mifos.test.acceptance.framework.MifosPage) DateTimeUpdaterRemoteTestingService(org.mifos.test.acceptance.remote.DateTimeUpdaterRemoteTestingService) AfterMethod(org.testng.annotations.AfterMethod)

Example 18 with MifosPage

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

the class ClientTest method testAttachQuestionGroup.

private void testAttachQuestionGroup(String response) {
    QuestionnairePage questionnairePage = viewClientDetailsPage.getQuestionnairePage(questionGroupTitle);
    verifyCancel(questionnairePage);
    questionnairePage = checkMandatoryQuestionValidation(questionGroupTitle, question1, question2, viewClientDetailsPage);
    questionnairePage.setResponse(question1, response);
    MifosPage mifosPage = questionnairePage.submit();
    Assert.assertTrue(mifosPage instanceof ClientViewDetailsPage);
    ClientViewDetailsPage clientViewDetailsPage = (ClientViewDetailsPage) mifosPage;
    viewClientDetailsPage = clientViewDetailsPage;
}
Also used : QuestionnairePage(org.mifos.test.acceptance.framework.questionnaire.QuestionnairePage) ClientViewDetailsPage(org.mifos.test.acceptance.framework.client.ClientViewDetailsPage) MifosPage(org.mifos.test.acceptance.framework.MifosPage)

Example 19 with MifosPage

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

the class ClientTest method testEditQuestionGroup.

private void testEditQuestionGroup(String answer) {
    int instanceId = latestInstanceId(questionGroupInstancesOfClient);
    QuestionGroupResponsePage questionGroupResponsePage = viewClientDetailsPage.navigateToQuestionGroupResponsePage(instanceId);
    QuestionnairePage questionnairePage = questionGroupResponsePage.navigateToEditResponses();
    verifyCancel(questionnairePage);
    questionGroupResponsePage = viewClientDetailsPage.navigateToQuestionGroupResponsePage(instanceId);
    questionnairePage = questionGroupResponsePage.navigateToEditResponses();
    questionnairePage.setResponse(question1, answer);
    MifosPage mifosPage = questionnairePage.submit();
    Assert.assertTrue(mifosPage instanceof ClientViewDetailsPage);
    ClientViewDetailsPage clientViewDetailsPage = (ClientViewDetailsPage) mifosPage;
    viewClientDetailsPage = clientViewDetailsPage;
}
Also used : QuestionGroupResponsePage(org.mifos.test.acceptance.framework.questionnaire.QuestionGroupResponsePage) QuestionnairePage(org.mifos.test.acceptance.framework.questionnaire.QuestionnairePage) ClientViewDetailsPage(org.mifos.test.acceptance.framework.client.ClientViewDetailsPage) MifosPage(org.mifos.test.acceptance.framework.MifosPage)

Example 20 with MifosPage

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

the class CollectionSheetEntryTest method logOut.

@AfterMethod
public void logOut() {
    (new MifosPage(selenium)).logout();
    new DateTimeUpdaterRemoteTestingService(selenium).resetDateTime();
}
Also used : MifosPage(org.mifos.test.acceptance.framework.MifosPage) DateTimeUpdaterRemoteTestingService(org.mifos.test.acceptance.remote.DateTimeUpdaterRemoteTestingService) AfterMethod(org.testng.annotations.AfterMethod)

Aggregations

MifosPage (org.mifos.test.acceptance.framework.MifosPage)21 AfterMethod (org.testng.annotations.AfterMethod)10 DateTimeUpdaterRemoteTestingService (org.mifos.test.acceptance.remote.DateTimeUpdaterRemoteTestingService)8 HomePage (org.mifos.test.acceptance.framework.HomePage)4 LoginPage (org.mifos.test.acceptance.framework.login.LoginPage)4 QuestionnairePage (org.mifos.test.acceptance.framework.questionnaire.QuestionnairePage)3 AppLauncher (org.mifos.test.acceptance.framework.AppLauncher)2 AdminPage (org.mifos.test.acceptance.framework.admin.AdminPage)2 ClientViewDetailsPage (org.mifos.test.acceptance.framework.client.ClientViewDetailsPage)2 NavigationHelper (org.mifos.test.acceptance.framework.testhelpers.NavigationHelper)2 Test (org.testng.annotations.Test)2 ArrayList (java.util.ArrayList)1 HashMap (java.util.HashMap)1 Map (java.util.Map)1 DateTimeService (org.mifos.framework.util.DateTimeService)1 EditPenaltyPreviewPage (org.mifos.test.acceptance.framework.admin.EditPenaltyPreviewPage)1 ImportTransactionsPage (org.mifos.test.acceptance.framework.admin.ImportTransactionsPage)1 NewPenaltyPreviewPage (org.mifos.test.acceptance.framework.admin.NewPenaltyPreviewPage)1 ClientSearchResultsPage (org.mifos.test.acceptance.framework.client.ClientSearchResultsPage)1 ChangePasswordPage (org.mifos.test.acceptance.framework.login.ChangePasswordPage)1