Ajocado TestNG Integration 1.0.0.Alpha2

org.jboss.arquillian.ajocado.testng
Class AbstractAjocadoTest

java.lang.Object
  extended by org.jboss.arquillian.ajocado.testng.AbstractAjocadoTest
Direct Known Subclasses:
AttributeSample, IterationAndCompositionSample, RequestGuardSample, WaitingSample

public abstract class AbstractAjocadoTest
extends Object

Abstract implementation of TestNG test using RichFaces Selenium

Version:
$Revision$
Author:
Lukas Fryc

Field Summary
protected  Browser browser
           
protected  File buildDirectory
          Introduce some build properties
protected  AjocadoConfiguration configuration
           
protected  URL contextPath
          ContextPath will be used to retrieve pages from right URL.
protected  URL contextRoot
          context root can be used to obtaining full URL paths, is set to actual tested application's context root
protected  File resourcesDir
           
protected  AjaxSelenium selenium
           
protected  boolean seleniumDebug
           
static int WAIT_AJAX_INTERVAL
           
static int WAIT_GUI_INTERVAL
           
static int WAIT_MODEL_INTERVAL
           
 
Constructor Summary
AbstractAjocadoTest()
           
 
Method Summary
 void finalizeBrowser()
          Finalize context after each class run.
 void initializeBrowser()
          Initializes context before each class run.
 void initializeExtensions()
          Initializes page and Selenium's extensions to correctly install before test run.
 void initializeParameters()
           
 void initializeWaitTimeouts()
          Initializes the timeouts for waiting on interaction
 void isTestBrowserEnabled(String enabledBrowsersParam, String disabledBrowsersParam, String enabledModesParam, String disabledModesParam)
          Check whenever the current test is enabled for selected browser (evaluated from testng.xml).
 void restartBrowser()
          Restarts the browser by finalizing current session and initializing new one.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WAIT_GUI_INTERVAL

public static final int WAIT_GUI_INTERVAL
See Also:
Constant Field Values

WAIT_AJAX_INTERVAL

public static final int WAIT_AJAX_INTERVAL
See Also:
Constant Field Values

WAIT_MODEL_INTERVAL

public static final int WAIT_MODEL_INTERVAL
See Also:
Constant Field Values

selenium

protected AjaxSelenium selenium

configuration

protected AjocadoConfiguration configuration

contextRoot

protected URL contextRoot
context root can be used to obtaining full URL paths, is set to actual tested application's context root


contextPath

protected URL contextPath
ContextPath will be used to retrieve pages from right URL. Don't hesitate to use it in cases of building absolute URLs.


buildDirectory

protected File buildDirectory
Introduce some build properties


resourcesDir

protected File resourcesDir

seleniumDebug

protected boolean seleniumDebug

browser

protected Browser browser
Constructor Detail

AbstractAjocadoTest

public AbstractAjocadoTest()
Method Detail

initializeParameters

public void initializeParameters()
                          throws MalformedURLException
Throws:
MalformedURLException

initializeBrowser

public void initializeBrowser()
Initializes context before each class run. Parameters will be obtained from TestNG.


restartBrowser

public void restartBrowser()
Restarts the browser by finalizing current session and initializing new one.


initializeWaitTimeouts

public void initializeWaitTimeouts()
Initializes the timeouts for waiting on interaction


initializeExtensions

public void initializeExtensions()
Initializes page and Selenium's extensions to correctly install before test run.


finalizeBrowser

public void finalizeBrowser()
Finalize context after each class run.


isTestBrowserEnabled

public void isTestBrowserEnabled(String enabledBrowsersParam,
                                 String disabledBrowsersParam,
                                 String enabledModesParam,
                                 String disabledModesParam)
Check whenever the current test is enabled for selected browser (evaluated from testng.xml). If it is not enabled, skip the particular test.

Parameters:
enabledBrowsersParam - the list of enabled browsers
disabledBrowsersParam - the list of disabled browsers
enabledModesParam - the list of enabled browser modes
disabledModesParam - the list of disabled browser modes

Ajocado TestNG Integration 1.0.0.Alpha2

Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.