Search in sources :

Example 26 with AppLauncher

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

the class NoDBUnitAdditionalHolidayTest method setUp.

@Override
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
// one of the dependent methods throws Exception
@BeforeMethod(alwaysRun = true)
public void setUp() throws Exception {
    super.setUp();
    dateTimeUpdaterRemoteTestingService = new DateTimeUpdaterRemoteTestingService(selenium);
    loanTestHelper = new LoanTestHelper(selenium);
    navigationHelper = new NavigationHelper(selenium);
    appLauncher = new AppLauncher(selenium);
}
Also used : NavigationHelper(org.mifos.test.acceptance.framework.testhelpers.NavigationHelper) DateTimeUpdaterRemoteTestingService(org.mifos.test.acceptance.remote.DateTimeUpdaterRemoteTestingService) AppLauncher(org.mifos.test.acceptance.framework.AppLauncher) LoanTestHelper(org.mifos.test.acceptance.framework.testhelpers.LoanTestHelper) BeforeMethod(org.testng.annotations.BeforeMethod)

Example 27 with AppLauncher

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

the class LoanTestHelper method navigateToLoanAccountPage.

public LoanAccountPage navigateToLoanAccountPage(CreateLoanAccountSearchParameters searchParams) {
    String searchString = searchParams.getSearchString();
    LoginPage loginPage = new AppLauncher(selenium).launchMifos().logout();
    loginPage.verifyPage();
    HomePage homePage = loginPage.loginSuccessfullyUsingDefaultCredentials();
    homePage.verifyPage();
    SearchResultsPage searchResultsPage = homePage.search(searchString);
    return searchResultsPage.navigateToLoanAccountDetailPage(searchString);
}
Also used : RedoLoanDisbursalSearchResultsPage(org.mifos.test.acceptance.framework.loan.RedoLoanDisbursalSearchResultsPage) ClientSearchResultsPage(org.mifos.test.acceptance.framework.client.ClientSearchResultsPage) SearchResultsPage(org.mifos.test.acceptance.framework.search.SearchResultsPage) HomePage(org.mifos.test.acceptance.framework.HomePage) AppLauncher(org.mifos.test.acceptance.framework.AppLauncher) LoginPage(org.mifos.test.acceptance.framework.login.LoginPage)

Example 28 with AppLauncher

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

the class LoanTestHelper method navigateToCreateLoanAccountSearchPage.

private CreateLoanAccountSearchPage navigateToCreateLoanAccountSearchPage() {
    LoginPage loginPage = new AppLauncher(selenium).launchMifos().logout();
    loginPage.verifyPage();
    HomePage homePage = loginPage.loginSuccessfullyUsingDefaultCredentials();
    homePage.verifyPage();
    ClientsAndAccountsHomepage clientsAndAccountsPage = homePage.navigateToClientsAndAccountsUsingHeaderTab();
    return clientsAndAccountsPage.navigateToCreateLoanAccountUsingLeftMenu();
}
Also used : HomePage(org.mifos.test.acceptance.framework.HomePage) ClientsAndAccountsHomepage(org.mifos.test.acceptance.framework.ClientsAndAccountsHomepage) AppLauncher(org.mifos.test.acceptance.framework.AppLauncher) LoginPage(org.mifos.test.acceptance.framework.login.LoginPage)

Example 29 with AppLauncher

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

the class QuestionGroupTest method setUp.

@Override
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
@BeforeMethod(alwaysRun = true)
public void setUp() throws Exception {
    super.setUp();
    officeHelper = new OfficeHelper(selenium);
    appLauncher = new AppLauncher(selenium);
    loanTestHelper = new LoanTestHelper(selenium);
    questionGroupTestHelper = new QuestionGroupTestHelper(selenium);
    clientTestHelper = new ClientTestHelper(selenium);
    questionGroupInstancesOfClient = new HashMap<Integer, QuestionGroup>();
    qgTitle1 = "QuestionGroup1";
    qgTitle2 = "QuestionGroup2";
    qgTitle3 = "QuestionGroup3";
    qgTitle4 = "QuestionGroup4";
    qTitle1 = "Question1";
    qTitle2 = "Question2";
    qTitle3 = "Question3";
    qTitle4 = "Question4";
    qTitle5 = "Question5";
    QUESTIONS.put("TextQuestionTest", CreateQuestionParameters.TYPE_FREE_TEXT);
    QUESTIONS.put("DateQuestionTest", CreateQuestionParameters.TYPE_DATE);
    QUESTIONS.put("NumberQuestionTest", CreateQuestionParameters.TYPE_NUMBER);
    QUESTIONS.put("MultiSelectQuestionTest", CreateQuestionParameters.TYPE_MULTI_SELECT);
    QUESTIONS.put("SingleSelectQuestionTest", CreateQuestionParameters.TYPE_SINGLE_SELECT);
    QUESTIONS.put("SmartSelectQuestionTest", CreateQuestionParameters.TYPE_SMART_SELECT);
}
Also used : QuestionGroupTestHelper(org.mifos.test.acceptance.framework.testhelpers.QuestionGroupTestHelper) OfficeHelper(org.mifos.test.acceptance.framework.testhelpers.OfficeHelper) ClientTestHelper(org.mifos.test.acceptance.framework.testhelpers.ClientTestHelper) QuestionGroup(org.mifos.test.acceptance.framework.client.QuestionGroup) AppLauncher(org.mifos.test.acceptance.framework.AppLauncher) LoanTestHelper(org.mifos.test.acceptance.framework.testhelpers.LoanTestHelper) BeforeMethod(org.testng.annotations.BeforeMethod)

Example 30 with AppLauncher

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

the class QuestionTest method setUp.

@Override
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
@BeforeMethod
public void setUp() throws Exception {
    super.setUp();
    appLauncher = new AppLauncher(selenium);
    title = "Title " + System.currentTimeMillis();
    types = Arrays.asList(FREE_TEXT, DATE, NUMBER, SINGLE_SELECT, MULTI_SELECT, "Smart Select");
    createQuestionParameters = new CreateQuestionParameters();
    adminPage = getAdminPage();
}
Also used : CreateQuestionParameters(org.mifos.test.acceptance.framework.questionnaire.CreateQuestionParameters) AppLauncher(org.mifos.test.acceptance.framework.AppLauncher) BeforeMethod(org.testng.annotations.BeforeMethod)

Aggregations

AppLauncher (org.mifos.test.acceptance.framework.AppLauncher)35 BeforeMethod (org.testng.annotations.BeforeMethod)22 LoginPage (org.mifos.test.acceptance.framework.login.LoginPage)13 HomePage (org.mifos.test.acceptance.framework.HomePage)10 DateTimeUpdaterRemoteTestingService (org.mifos.test.acceptance.remote.DateTimeUpdaterRemoteTestingService)5 LoanTestHelper (org.mifos.test.acceptance.framework.testhelpers.LoanTestHelper)4 NavigationHelper (org.mifos.test.acceptance.framework.testhelpers.NavigationHelper)4 DateTime (org.joda.time.DateTime)2 ClientsAndAccountsHomepage (org.mifos.test.acceptance.framework.ClientsAndAccountsHomepage)2 MifosPage (org.mifos.test.acceptance.framework.MifosPage)2 AdminPage (org.mifos.test.acceptance.framework.admin.AdminPage)2 ClientTestHelper (org.mifos.test.acceptance.framework.testhelpers.ClientTestHelper)2 GroupTestHelper (org.mifos.test.acceptance.framework.testhelpers.GroupTestHelper)2 HolidayTestHelper (org.mifos.test.acceptance.framework.testhelpers.HolidayTestHelper)2 QuestionGroupTestHelper (org.mifos.test.acceptance.framework.testhelpers.QuestionGroupTestHelper)2 CreateUserParameters (org.mifos.test.acceptance.framework.user.CreateUserParameters)2 Random (java.util.Random)1 ClientSearchResultsPage (org.mifos.test.acceptance.framework.client.ClientSearchResultsPage)1 QuestionGroup (org.mifos.test.acceptance.framework.client.QuestionGroup)1 RedoLoanDisbursalSearchResultsPage (org.mifos.test.acceptance.framework.loan.RedoLoanDisbursalSearchResultsPage)1