Search in sources :

Example 6 with NavigationHelper

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

the class UndoLoanDisbursalTest method reverseGroupLoanWhenAccInDiffStatus.

/**
     * Verify whether the user can reverse a Group loan when the Account is in different status
     * Group loan.
     * http://mifosforge.jira.com/browse/MIFOSTEST-26
     *
     * @throws Exception
     */
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
public void reverseGroupLoanWhenAccInDiffStatus() throws Exception {
    String groupID = "0002-000000004";
    String groupLoanID = "000100000000042";
    String resultClickLink = "group1: ID 0002-000000004";
    GroupViewDetailsPage groupViewDetailsPage = (GroupViewDetailsPage) loanTestHelper.reverseLoanDisbursal(groupLoanID, groupID, true, resultClickLink);
    groupViewDetailsPage.verifyLoanDoesntExist("Acct #" + groupLoanID);
    String loanID = "000100000000011";
    UndoLoanDisbursalSearchPage undoSearchPage = new NavigationHelper(selenium).navigateToAdminPage().navigateToUndoLoanDisbursal();
    undoSearchPage.verifyLoanCantBeReversed(loanID);
}
Also used : UndoLoanDisbursalSearchPage(org.mifos.test.acceptance.framework.loan.UndoLoanDisbursalSearchPage) NavigationHelper(org.mifos.test.acceptance.framework.testhelpers.NavigationHelper) GroupViewDetailsPage(org.mifos.test.acceptance.framework.group.GroupViewDetailsPage)

Example 7 with NavigationHelper

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

the class VariableInstalmentLoanTest method setUp.

@Override
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
// one of the dependent methods throws Exception
@BeforeMethod
public void setUp() throws Exception {
    super.setUp();
    navigationHelper = new NavigationHelper(selenium);
    systemDateTime = new DateTime(2010, 10, 11, 10, 0, 0, 0);
    loanTestHelper = new LoanTestHelper(selenium);
    loanTestHelper.setApplicationTime(systemDateTime);
    TestDataSetup dataSetup = new TestDataSetup(selenium, applicationDatabaseOperation);
    feeTestHelper = new FeeTestHelper(dataSetup, new NavigationHelper(selenium));
    applicationDatabaseOperation.updateLSIM(1);
}
Also used : TestDataSetup(org.mifos.test.acceptance.util.TestDataSetup) FeeTestHelper(org.mifos.test.acceptance.admin.FeeTestHelper) NavigationHelper(org.mifos.test.acceptance.framework.testhelpers.NavigationHelper) DateTime(org.joda.time.DateTime) LoanTestHelper(org.mifos.test.acceptance.framework.testhelpers.LoanTestHelper) BeforeMethod(org.testng.annotations.BeforeMethod)

Example 8 with NavigationHelper

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

the class DefineNewLoanProductTest method setUp.

// one of the dependent methods throws Exception
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
@BeforeMethod
@Override
public void setUp() throws Exception {
    super.setUp();
    questionGroupHelper = new QuestionGroupHelper(new NavigationHelper(selenium));
    random = new Random();
}
Also used : NavigationHelper(org.mifos.test.acceptance.framework.testhelpers.NavigationHelper) Random(java.util.Random) QuestionGroupHelper(org.mifos.test.acceptance.loan.QuestionGroupHelper) BeforeMethod(org.testng.annotations.BeforeMethod)

Example 9 with NavigationHelper

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

the class DefineNewLoanProductTest method verifyGracePeriodWithoutInterestType.

public void verifyGracePeriodWithoutInterestType() {
    DefineNewLoanProductPage defineLoanProduct = new NavigationHelper(selenium).navigateToAdminPage().navigateToDefineLoanProduct();
    defineLoanProduct.fillGracePeriod(SubmitFormParameters.GRACE_ON_ALL_REPAYMENTS, "1");
    defineLoanProduct.submitWithErrors().verifyPage();
}
Also used : NavigationHelper(org.mifos.test.acceptance.framework.testhelpers.NavigationHelper) DefineNewLoanProductPage(org.mifos.test.acceptance.framework.loanproduct.DefineNewLoanProductPage)

Example 10 with NavigationHelper

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

the class DefineNewLoanProductTest method createDailyLoanProduct.

@SuppressWarnings("PMD.SignatureDeclareThrowsException")
public void createDailyLoanProduct() throws Exception {
    SubmitFormParameters formParameters = FormParametersHelper.getDailyLoanProductParameters();
    new NavigationHelper(selenium).navigateToAdminPage().verifyPage().defineLoanProduct(formParameters);
}
Also used : NavigationHelper(org.mifos.test.acceptance.framework.testhelpers.NavigationHelper) SubmitFormParameters(org.mifos.test.acceptance.framework.loanproduct.DefineNewLoanProductPage.SubmitFormParameters)

Aggregations

NavigationHelper (org.mifos.test.acceptance.framework.testhelpers.NavigationHelper)70 BeforeMethod (org.testng.annotations.BeforeMethod)42 LoanTestHelper (org.mifos.test.acceptance.framework.testhelpers.LoanTestHelper)23 DateTime (org.joda.time.DateTime)22 DateTimeUpdaterRemoteTestingService (org.mifos.test.acceptance.remote.DateTimeUpdaterRemoteTestingService)20 LoanProductTestHelper (org.mifos.test.acceptance.loanproduct.LoanProductTestHelper)13 TestDataSetup (org.mifos.test.acceptance.util.TestDataSetup)10 CustomPropertiesHelper (org.mifos.test.acceptance.framework.testhelpers.CustomPropertiesHelper)9 Test (org.testng.annotations.Test)9 FeeTestHelper (org.mifos.test.acceptance.admin.FeeTestHelper)6 AdminPage (org.mifos.test.acceptance.framework.admin.AdminPage)6 LoanAccountPage (org.mifos.test.acceptance.framework.loan.LoanAccountPage)6 SubmitFormParameters (org.mifos.test.acceptance.framework.loanproduct.DefineNewLoanProductPage.SubmitFormParameters)6 QuestionGroupTestHelper (org.mifos.test.acceptance.framework.testhelpers.QuestionGroupTestHelper)6 DefineNewLoanProductPage (org.mifos.test.acceptance.framework.loanproduct.DefineNewLoanProductPage)5 Random (java.util.Random)4 AppLauncher (org.mifos.test.acceptance.framework.AppLauncher)4 GroupTestHelper (org.mifos.test.acceptance.framework.testhelpers.GroupTestHelper)4 SavingsAccountHelper (org.mifos.test.acceptance.framework.testhelpers.SavingsAccountHelper)4 DefineAcceptedPaymentTypesPage (org.mifos.test.acceptance.framework.admin.DefineAcceptedPaymentTypesPage)3