com.github.dandelion.datatables.testing
Class BaseIT

java.lang.Object
  extended by org.fluentlenium.core.Fluent
      extended by com.github.dandelion.datatables.testing.BaseIT
All Implemented Interfaces:
org.fluentlenium.core.search.SearchActions
Direct Known Subclasses:
Bootstrap2BaseIT, ConfigurationBaseIT, CssBaseIT, CustomExtensionsBaseIT, DomBaseIT, ExportLinksBaseIT, ExportLinksPositionBaseIT, FeatureEnablementBaseIT, FilteringBaseIT, FilteringPlaceholderBaseIT, MultipleTablesBaseIT, PagingBaseIT, ScrollCollapseBaseIT, ScrollHorizontalBaseIT, SortingBaseIT, VisibleBaseIT

public abstract class BaseIT
extends org.fluentlenium.core.Fluent

Common abstract superclass for all tests, JSP or Thymeleaf.

This class initializes the Selenium WebDriver using a TestWatcher. Also it contains some utility methods available in all tests.

Since:
0.9.0
Author:
Thibault Duchateau

Field Summary
protected static org.eclipse.jetty.webapp.WebAppContext context
           
protected static org.openqa.selenium.WebDriver driver
           
 org.junit.rules.TestWatcher watchman
           
 
Constructor Summary
BaseIT()
           
 
Method Summary
 String defaultUrl()
           
 JsResource getConfigurationFromPage(String page)
           
 String getDefaultBaseUrl()
           
 org.fluentlenium.core.domain.FluentWebElement getHtmlBody()
           
 org.fluentlenium.core.domain.FluentList<org.fluentlenium.core.domain.FluentWebElement> getTable()
           
 void goToPage(String page)
           Build the path to the view to load for an integration test depending on the kind of test to run.
 void goToPage(String page, Boolean display)
           
 
Methods inherited from class org.fluentlenium.core.Fluent
$, $, await, clear, clear, clear, click, click, executeScript, fill, fill, find, find, findFirst, getBaseUrl, getCookie, getCookies, getDriver, goTo, goTo, initFluent, pageSource, submit, submit, takeScreenShot, takeScreenShot, text, title, url, value, withDefaultPageWait, withDefaultSearchWait, withDefaultUrl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

driver

protected static org.openqa.selenium.WebDriver driver

context

protected static org.eclipse.jetty.webapp.WebAppContext context

watchman

public org.junit.rules.TestWatcher watchman
Constructor Detail

BaseIT

public BaseIT()
Method Detail

defaultUrl

public String defaultUrl()

getDefaultBaseUrl

public String getDefaultBaseUrl()

getTable

public org.fluentlenium.core.domain.FluentList<org.fluentlenium.core.domain.FluentWebElement> getTable()

getHtmlBody

public org.fluentlenium.core.domain.FluentWebElement getHtmlBody()

goToPage

public void goToPage(String page)

Build the path to the view to load for an integration test depending on the kind of test to run.

All test classes must be annotated either with JspTest or with ThymeleafTest.

Parameters:
page - The page to load, without any prefix or suffix.

goToPage

public void goToPage(String page,
                     Boolean display)

getConfigurationFromPage

public JsResource getConfigurationFromPage(String page)


Copyright © 2013. All Rights Reserved.