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);
}
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);
}
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();
}
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();
}
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);
}
Aggregations