version 1.0

com.actimind.actiwate.testing
Class ActiwateTestCase

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended bycom.actimind.actiwate.testing.ActiwateTestCase
All Implemented Interfaces:
Action, ActiwateSession, PageAssert, PageObjectLookup, junit.framework.Test, com.actimind.actiwate.testing.logging.TestRunInfo, UserDialogExpect

public abstract class ActiwateTestCase
extends junit.framework.TestCase
implements ActiwateSession, com.actimind.actiwate.testing.logging.TestRunInfo

Base test case class for all tests.


Field Summary
 
Fields inherited from interface com.actimind.actiwate.testing.html.UserDialogExpect
PRESS_CANCEL, PRESS_OK
 
Constructor Summary
protected ActiwateTestCase()
           
protected ActiwateTestCase(java.util.Properties customProperties)
          Constructs test case with custom actiwate test properties.
protected ActiwateTestCase(java.lang.String name)
           
protected ActiwateTestCase(java.lang.String name, java.util.Properties customProperties)
          Constructs test case with the given name and custom actiwate test properties.
 
Method Summary
 void addAuthCredentials(java.lang.String hostname, java.lang.String realm, java.lang.String username, java.lang.String password)
          Adds credentials to a CURRENT SESSION only for the given authentication realm on the given host.
 void assertImageWithURLNotPresent(java.lang.String imageURL)
          Asserts that page does not contain image with specified URL.
 void assertImageWithURLPresent(java.lang.String imageURL)
          Asserts that page contains image with specified URL.
 void assertLinkWithTextNotPresent(java.lang.String textInLink)
          Asserts that page does not contain link with specified text.
 void assertLinkWithTextPresent(java.lang.String textInLink)
          Asserts that link with specified text contained within this page.
 void assertTextNotPresent(java.lang.String notExpectedText)
          Asserts that page does not contain notExpectedText as substring.
 void assertTextPresent(java.lang.String expectedText)
          Asserts that page contains expectedText as substring.
 void assertTitleEquals(java.lang.String expectedTitle)
          Asserts that page has title equal to expectedTitle.
 void back()
          Emulates browser back function
 Button button(int index)
          Returns button within this page by specified index.
 Button button(java.lang.String nameOrId)
          Searches for a button with specified name or id.
 Button button(java.lang.String nameOrId, int index)
          Searches for a buttons with specified name/id and returns button having specified index.
 Button buttonByText(java.lang.String value)
          The search is done by visible button caption text: this means that for <button> tags this is a text within button and for all other types of button this is a text within button value.
 Checkbox checkbox(java.lang.String nameOrId)
          Searches for checkbox with specified name or id attribute
 Checkbox checkbox(java.lang.String nameOrId, java.lang.String value)
          Searches for checkbox with specified name/id and value
 Checkbox[] checkboxes(java.lang.String nameOrId)
          Searches for checkboxes with specified nameOrId or id attribute
 void chooseFile(FileField fileField, java.lang.String filePath, InputStreamFactory streamFactory, java.lang.String contentType)
          Emulates result of a file choose dialog when a user clicks "Browse" button in the browser.
 void click(Area area, Image image)
          Emulates single mouse click on an Area element.
 void click(ClickableElement element)
          Emulates single mouse click on an object.
 void click(org.w3c.dom.html.HTMLElement element)
          Emulates single mouse click on an arbitrary HTML element.
static void debug(java.lang.String message)
          Logs debug message in the log
 void disableJavaScript(boolean deferred)
          Disables JavaScript support in this session for all the session windows and frames.
 void enableJavaScript()
          Enables JavaScript support for all the session windows and frames.
static void error(java.lang.String message)
          Logs error message in the log
 java.lang.Object executeJavaScript(java.lang.String script)
          Executes specified JavaScript statements in the scope of the current page.
 java.lang.Object executeJavaScript(java.lang.String script, org.w3c.dom.html.HTMLElement element)
          Executes specified JavaScript statements in the scope of the current page.
 void expectAlert(AlertAssert alertAssert, java.lang.String expectedAlertDescription)
          Setups custom alert expectation.
 void expectAlert(java.lang.String expectedText)
          Setups alert expectation with specified text.
 void expectAnyAlert()
          Setups any alert expectation.
 void expectAnyConfirm(int whatToPress)
          Setups any confirmation dialog expectation.
 void expectAnyPrompt(java.lang.String newValue)
          Setups prompt dialog expectation.
 void expectConfirm(ConfirmAssert confirmAssert, java.lang.String expectedConfirmDescription, int whatToPress)
          Setups custom confirmation dialog expectation.
 void expectConfirm(java.lang.String expectedText, int whatToPress)
          Setups confirmation dialog expectation with specified text.
 void expectPrompt(PromptAssert promptAssert, java.lang.String expectedPromptdescription, java.lang.String newValue)
          Setups custom prompt dialog expectation.
 void expectPromptWithText(java.lang.String expectedText, java.lang.String newValue)
          Setups prompt dialog expectation with expected text.
 void expectPromptWithTextAndValue(java.lang.String expectedText, java.lang.String expectedValue, java.lang.String newValue)
          Setups prompt dialog expectation with expected text and initial value.
static void fatal(java.lang.String message)
          Logs fatal message in the log
 FileField fileField(java.lang.String nameOrId)
          Searches for a file field with specified name or id.
 FileField fileField(java.lang.String nameOrId, int index)
          Searches for a file fields with specified name or id and returns field with specified order index.
 FileField[] fileFields(java.lang.String nameOrId)
          Returns all file fields with specified name or id.
 void forward()
          Emulates browser forward function
 AsyncEvents getAsyncEvents()
          Returns AsyncEvents class containing all sheduled but not executed async events.
 boolean getAutoExecMetaRefreshes()
          Returns value specified in setAutoExecMetaRefreshes(boolean) method.
 java.lang.String getBaseURL()
          Returns base URL for this session.
 boolean getExecAsyncEventsAutomatically()
          Returns value specified in setExecAsyncEventsAutomatically(boolean).
 long getExecAsyncEventsOffset()
          Returns value specified in setExecAsyncEventsOffset(long).
 com.actimind.actiwate.testing.logging.log4j.FailureReporter getFailureReporter()
           
 ActiwateSession getSession()
          Returns current actiwate session.
 java.lang.String getTestCaseName()
           
 java.lang.String getTestMethodName()
           
 java.util.Date getTestStartTimestamp()
           
 java.lang.String getURL(java.lang.String URL)
          Returns URL for specified relative URL.
 XmlHttpRequestConfig getXmlHttpRequestConfig()
          Returns configuration for XmlHttpRequest async events.
 void goTo(HttpRequest request)
          Sends arbitrary HTTP request.
 void goTo(java.lang.String URL)
          Sends GET request to the specified URL.
 Image image(java.lang.String nameOrId)
          Searches for image or image button by name or id attribute value.
 Image imageByAlt(java.lang.String altText)
          Searches for image or image button by alt attribute value.
 Image imageByURL(java.lang.String url)
          Searches for image or image button by specified url.
 ImageMap imageMap(int idx)
          Returns map by index on a page.
 ImageMap imageMap(java.lang.String nameOrId)
          Searches for map by name or id attribute value.
 ImageMap[] imageMaps()
          Returns all HTML maps found on a page.
 Image[] images()
          Returns all images and image buttons.
static void info(java.lang.String message)
          Logs info message in the log
 boolean isJavaScriptAutoRunningEnabled()
          Returns value indicating whether or not JavaScript support is enabled.
 Link link(int index)
          Returns link contained in this page by its index.
 Link linkById(java.lang.String id)
          Searches for link by specified id attribute.
 Link linkByText(java.lang.String linkText)
          Searches for link having specified text.
 Link linkByTitle(java.lang.String title)
          Searches for link by title attribute value.
 Link[] links()
          Returns all links.
 MultipleSelect multiSelect(java.lang.String nameOrId)
          Searches for HTML multiple select with specified name or id attribute.
static ActiwateSession newSession()
          Creates new actiwate session.
static ActiwateSession newSession(java.util.Properties testProperties)
          Creates new actiwate session with specified test properties.
 Window newWindow()
          Creates new window.
 Page page()
          Returns current page.
 PasswordField passwordField(java.lang.String nameOrId)
          Searches for a password field with specified name or id.
 RadioButton radioButton(java.lang.String groupNameOrId, int index)
          Searches for group of radio buttons with specified name or id and returns radio button with specified index.
 RadioButton radioButton(java.lang.String groupNameOrId, java.lang.String value)
          Searches for radio button with specified name/id and value.
 RadioButton[] radioButtons(java.lang.String groupNameOrId)
          Searches for group of radio buttons with specified name or id attribute
 void reload()
          Reloads the current page
 void runBare()
           
 void runPageScripts()
          Loads and executes all scripts associated with the current page.
 Screen screen()
          Returns the Screen interface containing parameters of the screen within the current session.
 void selectOption(Option optionToSelect)
          Emulates option selection in drop down or multiple select.
 void setAutoExecMetaRefreshes(boolean enabled)
          Specifies one of two modes of processing of Meta Refreshes for the current session: parameter enabled=true - Browser will process Meta-refreshes automatically (without necessity of calling shiftTime(long) method).
 void setBaseURL(java.lang.String URL)
          Sets base URL for this session.
 void setConnectTimeout(int seconds)
          Sets the timeout until HTTP connection with a server is established.
 void setDataTimeout(int seconds)
          Sets the time which actiWATE waits for data server after connection is established.
 void setExecAsyncEventsAutomatically(boolean auto)
          Specifies one of two modes of processing of async events: parameter auto=true - Browser will execute async events automatically.
 void setExecAsyncEventsOffset(long offsetMillis)
          Sets offset for automatic async events execution.
 void setFailureReporter(com.actimind.actiwate.testing.logging.log4j.FailureReporter failureReporter)
           
 void setFile(FileField field, java.io.File fileToUpload, java.lang.String contentType)
          Emulates file setting to the file upload field.
 void setFileName(FileField fileField, java.lang.String filePath)
          Emulates manual enter of text into a file field.
 void setFileName(FileField fileField, java.lang.String filePath, InputStreamFactory streamFactory, java.lang.String contentType)
          Emulates manual enter of text into a file field.
 void setSession(ActiwateSession session)
          Sets specified session as current session.
 void setText(PasswordField passwordField, java.lang.String text)
          Emulates text insert operation in a password field object.
 void setText(Textarea textarea, java.lang.String text)
          Emulates text insert operation in a textarea object.
 void setText(TextField textField, java.lang.String text)
          Emulates text insert operation in a text field object.
 void setXmlHttpRequestConfig(XmlHttpRequestConfig xmlHttpRequestConfig)
          Sets configuration for XmlHttpRequest async events.
 void shiftTime(long milliseconds)
          Moves time ahead on the specified number of milliseconds.
 SingleSelect singleSelect(java.lang.String nameOrId)
          Searches for HTML single select (drop down) with specified name or id attribute.
 void switchTo(Page page)
          Switches context to the specified page.
 Table table(int index)
          Returns table by index on a page.
 Table tableById(java.lang.String id)
          Searches for table having specified value in id attribute.
 Table tableByText(java.lang.String textWithinTable)
          Returns table having containing specified text in one of it's cells.
protected  void tearDown()
          Performs verification of expected user dialogs.
 Textarea textarea(java.lang.String nameOrId)
          Searches for a textarea with specified name or id.
 TextField textField(java.lang.String nameOrId)
          Searches for a text field with specified name or id.
 TextField textField(java.lang.String nameOrId, int index)
          Searches for a text fields with specified name or id and returns field with specified index.
 TextField[] textFields(java.lang.String nameOrId)
          Returns all text fields with specified name or id.
 void toggleOption(Option optionToToggle)
          Emulates option toggling in multiple select (Ctrl + mouse click).
 void verifyUserDialogs()
          Verifies that all expected user dialogs are occurred.
static void warn(java.lang.String message)
          Logs warning message in the log
 Window window()
          Returns window containing current context.
 Window window(int creationOrder)
          Returns window by creation index.
 Window window(java.lang.String name)
          Returns window by its name.
 Window windowWithTitle(java.lang.String windowTitle)
          Returns first window with specified title substring.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runTest, setName, setUp, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ActiwateTestCase

protected ActiwateTestCase()

ActiwateTestCase

protected ActiwateTestCase(java.lang.String name)

ActiwateTestCase

protected ActiwateTestCase(java.util.Properties customProperties)
Constructs test case with custom actiwate test properties.


ActiwateTestCase

protected ActiwateTestCase(java.lang.String name,
                           java.util.Properties customProperties)
Constructs test case with the given name and custom actiwate test properties.

Method Detail

getSession

public ActiwateSession getSession()
Returns current actiwate session.

Returns:
current actiwate session.

setSession

public void setSession(ActiwateSession session)
Sets specified session as current session.

Parameters:
session - session to replace current session.
Throws:
java.lang.IllegalArgumentException - if session is null.

newSession

public static ActiwateSession newSession()
Creates new actiwate session.

Returns:
new actiwate session.

newSession

public static ActiwateSession newSession(java.util.Properties testProperties)
Creates new actiwate session with specified test properties.

Parameters:
testProperties - test properties.
Returns:
new actiwate session.

addAuthCredentials

public void addAuthCredentials(java.lang.String hostname,
                               java.lang.String realm,
                               java.lang.String username,
                               java.lang.String password)
Adds credentials to a CURRENT SESSION only for the given authentication realm on the given host. The null realm signifies default credentials for the given host, which should be used when no credentials have been explictly supplied for the challenging realm. The null host signifies default credentials, which should be used when no credentials have been explictly supplied for the challenging host. Any previous credentials for the given realm on the given host will be overwritten.

Specified by:
addAuthCredentials in interface ActiwateSession
Parameters:
hostname - the host the credentials belongs to
realm - the authentication realm
username - username
password - password

screen

public Screen screen()
Returns the Screen interface containing parameters of the screen within the current session.

Specified by:
screen in interface ActiwateSession

setBaseURL

public void setBaseURL(java.lang.String URL)
Description copied from interface: ActiwateSession
Sets base URL for this session.

Specified by:
setBaseURL in interface ActiwateSession
Parameters:
URL - absolute URL, can be null

getBaseURL

public java.lang.String getBaseURL()
Description copied from interface: ActiwateSession
Returns base URL for this session.

Specified by:
getBaseURL in interface ActiwateSession
Returns:
base URL for this session.

getURL

public java.lang.String getURL(java.lang.String URL)
Description copied from interface: ActiwateSession
Returns URL for specified relative URL. URL is constructed from current base URL.

Specified by:
getURL in interface ActiwateSession
Parameters:
URL - relative URL
Returns:
full URL for specified relative URL.

window

public Window window(int creationOrder)
              throws WindowNotFoundException
Description copied from interface: ActiwateSession
Returns window by creation index. Creation index is an index of window in chronological order.

Specified by:
window in interface ActiwateSession
Parameters:
creationOrder - creation index, starting from zero
Returns:
window with specified creation index.
Throws:
WindowNotFoundException - if window with specified creation index does not exist.

window

public Window window(java.lang.String name)
              throws WindowNotFoundException
Description copied from interface: ActiwateSession
Returns window by its name.

Specified by:
window in interface ActiwateSession
Parameters:
name - name of the window to search for
Returns:
window with specified name
Throws:
WindowNotFoundException - if window with specified name does not exist.

windowWithTitle

public Window windowWithTitle(java.lang.String windowTitle)
                       throws WindowNotFoundException
Description copied from interface: ActiwateSession
Returns first window with specified title substring. Window title will be normalized before actual compare performed.

Specified by:
windowWithTitle in interface ActiwateSession
Parameters:
windowTitle - title substring searched window must have
Returns:
first window with specified title substring.
Throws:
WindowNotFoundException - if window with specified title does not exist.

newWindow

public Window newWindow()
Description copied from interface: ActiwateSession
Creates new window.

Specified by:
newWindow in interface ActiwateSession
Returns:
new window.

window

public Window window()
Description copied from interface: ActiwateSession
Returns window containing current context.

Specified by:
window in interface ActiwateSession
Returns:
window containing current context.

goTo

public void goTo(java.lang.String URL)
Description copied from interface: Action
Sends GET request to the specified URL. URL can be relative, in this case absolute URL will be created with concatenation of current base URL and specified URL.

Specified by:
goTo in interface Action
Parameters:
URL - relative or absolute URL

switchTo

public void switchTo(Page page)
Description copied from interface: ActiwateSession
Switches context to the specified page.

Specified by:
switchTo in interface ActiwateSession
Parameters:
page - Page the context should be switched to

click

public void click(ClickableElement element)
           throws java.lang.IllegalArgumentException
Description copied from interface: Action
Emulates single mouse click on an object.

Specified by:
click in interface Action
Parameters:
element - - element user is able to click
Throws:
java.lang.IllegalArgumentException - if clickable is null

click

public void click(Area area,
                  Image image)
           throws java.lang.IllegalArgumentException
Description copied from interface: Action
Emulates single mouse click on an Area element. If the area's map is referenced by exactly one image then it's possible to use methods Action.click(com.actimind.actiwate.testing.html.objects.ClickableElement) and Action.click(org.w3c.dom.html.HTMLElement). But in case there are several images that use the same map then the mentioned methods will generate error, so you need to use this method to specify which image should be actually clicked.

Specified by:
click in interface Action
Parameters:
area - - area element
image - - image element specifying an exact image to click on.
Throws:
java.lang.IllegalArgumentException

click

public void click(org.w3c.dom.html.HTMLElement element)
           throws java.lang.IllegalArgumentException
Description copied from interface: Action
Emulates single mouse click on an arbitrary HTML element.

Specified by:
click in interface Action
Parameters:
element - - element user is able to click
Throws:
java.lang.IllegalArgumentException - if element is null

setText

public void setText(TextField textField,
                    java.lang.String text)
             throws java.lang.IllegalArgumentException
Description copied from interface: Action
Emulates text insert operation in a text field object. Generates 'change' event if text is changed.

Specified by:
setText in interface Action
Parameters:
textField - - TextField object where user inserts text
text - - text to insert
Throws:
java.lang.IllegalArgumentException - if textField or text is null

setText

public void setText(PasswordField passwordField,
                    java.lang.String text)
             throws java.lang.IllegalArgumentException
Description copied from interface: Action
Emulates text insert operation in a password field object. Generates 'change' event if text is changed.

Specified by:
setText in interface Action
Parameters:
passwordField - - PasswordField object where user inserts text
text - - text to insert
Throws:
java.lang.IllegalArgumentException - if passwordField or text is null

setText

public void setText(Textarea textarea,
                    java.lang.String text)
             throws java.lang.IllegalArgumentException
Description copied from interface: Action
Emulates text insert operation in a textarea object. Generates 'change' event if text is changed.

Specified by:
setText in interface Action
Parameters:
textarea - - textarea object where user inserts text
text - - text to insert
Throws:
java.lang.IllegalArgumentException - if textarea or text is null

setFile

public void setFile(FileField field,
                    java.io.File fileToUpload,
                    java.lang.String contentType)
             throws java.lang.IllegalArgumentException
Description copied from interface: Action
Emulates file setting to the file upload field.

Specified by:
setFile in interface Action
Parameters:
field - - file upload field
fileToUpload - - file for upload
contentType - - content type of a file to upload (for example, "image/gif"), if null "application/octet-stream" will be used.
Throws:
java.lang.IllegalArgumentException - if field or fileToUpload is null

setFileName

public void setFileName(FileField fileField,
                        java.lang.String filePath)
Description copied from interface: Action
Emulates manual enter of text into a file field. The entered file name is treated as name of non-existing file.

Specified by:
setFileName in interface Action
Parameters:
fileField - - file upload field
filePath - - absolute path to file for upload

setFileName

public void setFileName(FileField fileField,
                        java.lang.String filePath,
                        InputStreamFactory streamFactory,
                        java.lang.String contentType)
Description copied from interface: Action
Emulates manual enter of text into a file field. The entered file name is treated as name of existing file containing the specified data.

Specified by:
setFileName in interface Action
Parameters:
fileField - - file upload field
filePath - - absolute path to file for upload
streamFactory - - factory to create stream containing file for upload
contentType - - content type of a file to upload (for example, "image/gif")
See Also:
com.actimind.actiwate.testing.util.FileStreamFactory, ByteArrayStreamFactory

chooseFile

public void chooseFile(FileField fileField,
                       java.lang.String filePath,
                       InputStreamFactory streamFactory,
                       java.lang.String contentType)
Description copied from interface: Action
Emulates result of a file choose dialog when a user clicks "Browse" button in the browser.

Specified by:
chooseFile in interface Action
Parameters:
fileField - - file upload field
filePath - - absolute path to file for upload
streamFactory - - factory to create stream containing file for upload
contentType - - content type of a file to upload (for example, "image/gif"),
See Also:
com.actimind.actiwate.testing.util.FileStreamFactory, ByteArrayStreamFactory

selectOption

public void selectOption(Option optionToSelect)
                  throws java.lang.IllegalArgumentException
Description copied from interface: Action
Emulates option selection in drop down or multiple select. Generates 'change' event if option selection changed.

Specified by:
selectOption in interface Action
Parameters:
optionToSelect - option to select
Throws:
java.lang.IllegalArgumentException - if option is null

toggleOption

public void toggleOption(Option optionToToggle)
                  throws java.lang.IllegalArgumentException
Description copied from interface: Action
Emulates option toggling in multiple select (Ctrl + mouse click). Always generates 'change' event.

Specified by:
toggleOption in interface Action
Parameters:
optionToToggle - option to toggle
Throws:
java.lang.IllegalArgumentException - if option is null or option from single select is passed

textField

public TextField textField(java.lang.String nameOrId)
                    throws LookupException
Description copied from interface: PageObjectLookup
Searches for a text field with specified name or id.

Specified by:
textField in interface PageObjectLookup
Parameters:
nameOrId - name or id of a text field
Returns:
TextField object for the first found text field
Throws:
LookupException - if text field was not found

textField

public TextField textField(java.lang.String nameOrId,
                           int index)
                    throws LookupException
Description copied from interface: PageObjectLookup
Searches for a text fields with specified name or id and returns field with specified index. Where index calculated among other fields in document order, starting from zero.

Specified by:
textField in interface PageObjectLookup
Parameters:
nameOrId - name or id of a text field
index - index of a field with specified name or id to return, starts from zero
Returns:
TextField object for the found text field
Throws:
LookupException - if text field was not found

textFields

public TextField[] textFields(java.lang.String nameOrId)
                       throws LookupException
Description copied from interface: PageObjectLookup
Returns all text fields with specified name or id.

Specified by:
textFields in interface PageObjectLookup
Parameters:
nameOrId - name or id of a text field
Returns:
Array of TextField objects
Throws:
LookupException - if there are no text fields with specified name or id

passwordField

public PasswordField passwordField(java.lang.String nameOrId)
                            throws LookupException
Description copied from interface: PageObjectLookup
Searches for a password field with specified name or id.

Specified by:
passwordField in interface PageObjectLookup
Parameters:
nameOrId - name or id of a password field
Returns:
PasswordField object for the first found password field
Throws:
LookupException - if password field was not found

textarea

public Textarea textarea(java.lang.String nameOrId)
                  throws LookupException
Description copied from interface: PageObjectLookup
Searches for a textarea with specified name or id.

Specified by:
textarea in interface PageObjectLookup
Parameters:
nameOrId - name or id of a textarea
Returns:
Textarea object for the first found textarea
Throws:
LookupException - if textarea was not found

fileField

public FileField fileField(java.lang.String nameOrId)
                    throws LookupException
Description copied from interface: PageObjectLookup
Searches for a file field with specified name or id.

Specified by:
fileField in interface PageObjectLookup
Parameters:
nameOrId - name or id of a file field
Returns:
FileField object for the first found file field
Throws:
LookupException - if file field was not found

fileField

public FileField fileField(java.lang.String nameOrId,
                           int index)
                    throws LookupException
Description copied from interface: PageObjectLookup
Searches for a file fields with specified name or id and returns field with specified order index. Index is a index of this field in document order, starting from zero.

Specified by:
fileField in interface PageObjectLookup
Parameters:
nameOrId - name or id of a field
index - index of a field with specified name or id to return, starts from zero
Returns:
FileField object for the found field
Throws:
LookupException - if file field was not found

fileFields

public FileField[] fileFields(java.lang.String nameOrId)
                       throws LookupException
Description copied from interface: PageObjectLookup
Returns all file fields with specified name or id.

Specified by:
fileFields in interface PageObjectLookup
Parameters:
nameOrId - name or id of a file field
Returns:
Array of FileField objects
Throws:
LookupException - if there are no file fields with specified name or id

link

public Link link(int index)
          throws LookupException
Description copied from interface: PageObjectLookup
Returns link contained in this page by its index.

Specified by:
link in interface PageObjectLookup
Parameters:
index - index of link on the page, starting from zero
Returns:
link in this page by its index.
Throws:
LookupException - if link was not found.

linkByText

public Link linkByText(java.lang.String linkText)
                throws LookupException
Description copied from interface: PageObjectLookup
Searches for link having specified text. Text within link will be normalized before comparing.

Specified by:
linkByText in interface PageObjectLookup
Parameters:
linkText - text link should contain
Returns:
Link object for the first found link
Throws:
LookupException - if link was not found

linkById

public Link linkById(java.lang.String id)
              throws LookupException
Description copied from interface: PageObjectLookup
Searches for link by specified id attribute.

Specified by:
linkById in interface PageObjectLookup
Parameters:
id - value of id attribute
Returns:
Link object for the first found link
Throws:
LookupException - if link was not found

linkByTitle

public Link linkByTitle(java.lang.String title)
                 throws LookupException
Description copied from interface: PageObjectLookup
Searches for link by title attribute value. Attribute value will be normalized before comparing.

Specified by:
linkByTitle in interface PageObjectLookup
Parameters:
title - value of title attribute
Returns:
Link object for the first found link
Throws:
LookupException - if link was not found

links

public Link[] links()
Description copied from interface: PageObjectLookup
Returns all links.

Specified by:
links in interface PageObjectLookup
Returns:
all links or empty array if there are no links.

button

public Button button(int index)
              throws LookupException
Description copied from interface: PageObjectLookup
Returns button within this page by specified index.

Specified by:
button in interface PageObjectLookup
Parameters:
index - index of a button among other buttons
Returns:
Button object for the found button
Throws:
LookupException - if button was not found

button

public Button button(java.lang.String nameOrId)
              throws LookupException
Description copied from interface: PageObjectLookup
Searches for a button with specified name or id.

Specified by:
button in interface PageObjectLookup
Parameters:
nameOrId - name or id of a button
Returns:
Button object for the first found button
Throws:
LookupException - if button was not found

button

public Button button(java.lang.String nameOrId,
                     int index)
              throws LookupException
Description copied from interface: PageObjectLookup
Searches for a buttons with specified name/id and returns button having specified index.

Specified by:
button in interface PageObjectLookup
Parameters:
nameOrId - name or id of a button
index - index of a button among other buttons with same name/id
Returns:
Button object for the found button
Throws:
LookupException - if button was not found

buttonByText

public Button buttonByText(java.lang.String value)
                    throws LookupException
Description copied from interface: PageObjectLookup
The search is done by visible button caption text: this means that for <button> tags this is a text within button and for all other types of button this is a text within button value.

Specified by:
buttonByText in interface PageObjectLookup
Parameters:
value - visible caption of a button
Returns:
Button object for the first found button
Throws:
LookupException - if button was not found

checkbox

public Checkbox checkbox(java.lang.String nameOrId)
                  throws LookupException
Description copied from interface: PageObjectLookup
Searches for checkbox with specified name or id attribute

Specified by:
checkbox in interface PageObjectLookup
Parameters:
nameOrId - name or id attribute value
Returns:
Checkbox object for the first found checkbox
Throws:
LookupException - if checkbox was not found

checkboxes

public Checkbox[] checkboxes(java.lang.String nameOrId)
                      throws LookupException
Description copied from interface: PageObjectLookup
Searches for checkboxes with specified nameOrId or id attribute

Specified by:
checkboxes in interface PageObjectLookup
Parameters:
nameOrId - name or id attribute value
Returns:
Array of Checkbox objects
Throws:
LookupException - if there are no checkboxes with specified name or id

checkbox

public Checkbox checkbox(java.lang.String nameOrId,
                         java.lang.String value)
                  throws LookupException
Description copied from interface: PageObjectLookup
Searches for checkbox with specified name/id and value

Specified by:
checkbox in interface PageObjectLookup
Parameters:
nameOrId - name or id of checkbox
value - value of checkbox
Returns:
Checkbox object for the found checkbox
Throws:
LookupException - if checkbox was not found

radioButton

public RadioButton radioButton(java.lang.String groupNameOrId,
                               int index)
                        throws LookupException
Description copied from interface: PageObjectLookup
Searches for group of radio buttons with specified name or id and returns radio button with specified index. Where index is a number of radio button in a group of radio buttons in document order, starting from zero.

Specified by:
radioButton in interface PageObjectLookup
Parameters:
groupNameOrId - name or id attribute value
index - index of a radio button with specified name or id to return, starts from zero
Returns:
RadioButton object for the found radio button
Throws:
LookupException - if radio button was not found

radioButton

public RadioButton radioButton(java.lang.String groupNameOrId,
                               java.lang.String value)
                        throws LookupException
Description copied from interface: PageObjectLookup
Searches for radio button with specified name/id and value.

Specified by:
radioButton in interface PageObjectLookup
Parameters:
groupNameOrId - name or id of radio button
value - value of radio button in the group
Returns:
RadioButton object for the found radio button
Throws:
LookupException - if radio button was not found

radioButtons

public RadioButton[] radioButtons(java.lang.String groupNameOrId)
                           throws LookupException
Description copied from interface: PageObjectLookup
Searches for group of radio buttons with specified name or id attribute

Specified by:
radioButtons in interface PageObjectLookup
Parameters:
groupNameOrId - name or id attribute value
Returns:
Array of RadioButton objects
Throws:
LookupException - if there are no radio buttons with specified name or id

singleSelect

public SingleSelect singleSelect(java.lang.String nameOrId)
                          throws LookupException
Description copied from interface: PageObjectLookup
Searches for HTML single select (drop down) with specified name or id attribute.

Specified by:
singleSelect in interface PageObjectLookup
Parameters:
nameOrId - name or id attribute value
Returns:
SingleSelect object for the first found drop down
Throws:
LookupException - if drop down was not found

multiSelect

public MultipleSelect multiSelect(java.lang.String nameOrId)
                           throws LookupException
Description copied from interface: PageObjectLookup
Searches for HTML multiple select with specified name or id attribute.

Specified by:
multiSelect in interface PageObjectLookup
Parameters:
nameOrId - name or id attribute value
Returns:
MultipleSelect object for the first found multiple select
Throws:
LookupException - if multiple select was not found

table

public Table table(int index)
Description copied from interface: PageObjectLookup
Returns table by index on a page. Search does not take into account tables nested in other tables.

Specified by:
table in interface PageObjectLookup
Parameters:
index - index of table among other not nested tables on a page, starting from zero.
Returns:
table Table object for the found table.

tableByText

public Table tableByText(java.lang.String textWithinTable)
Description copied from interface: PageObjectLookup
Returns table having containing specified text in one of it's cells. Text in the cell will be normalized before comparing.

Specified by:
tableByText in interface PageObjectLookup
Parameters:
textWithinTable - text expected to be in the table cell
Returns:
table containing specified text in one of it's cells.

tableById

public Table tableById(java.lang.String id)
                throws LookupException
Description copied from interface: PageObjectLookup
Searches for table having specified value in id attribute.

Specified by:
tableById in interface PageObjectLookup
Parameters:
id - value of id attribute
Returns:
Table having specified value in id attribute.
Throws:
LookupException - if table was not found

image

public Image image(java.lang.String nameOrId)
            throws LookupException
Description copied from interface: PageObjectLookup
Searches for image or image button by name or id attribute value.

Specified by:
image in interface PageObjectLookup
Parameters:
nameOrId - name or id attribute value
Returns:
Image object for the first found image or image button
Throws:
LookupException - if image was not found

imageByAlt

public Image imageByAlt(java.lang.String altText)
                 throws LookupException
Description copied from interface: PageObjectLookup
Searches for image or image button by alt attribute value. Attribute value will be normalized before comparing.

Specified by:
imageByAlt in interface PageObjectLookup
Parameters:
altText - text within alt attribute
Returns:
Image object for the first found image or image button
Throws:
LookupException - if image was not found

imageByURL

public Image imageByURL(java.lang.String url)
                 throws LookupException,
                        java.lang.IllegalArgumentException
Description copied from interface: PageObjectLookup
Searches for image or image button by specified url. Argument url can be absolute or relative. If url is relative absolute url will be constructed from the base URL of the test.

Image location will be calculated from location of the current page and value specified in src attribute (if src contains servlet session id - it will be ignored).

Specified by:
imageByURL in interface PageObjectLookup
Parameters:
url - absolute or relative url of searched image
Returns:
first image or image button having specified location
Throws:
LookupException - if image was not found
java.lang.IllegalArgumentException - if url is null, or url is relative and current base URL is null.

images

public Image[] images()
               throws LookupException
Description copied from interface: PageObjectLookup
Returns all images and image buttons.

Specified by:
images in interface PageObjectLookup
Returns:
all images and image buttons or empty array if images were not found.
Throws:
LookupException

assertTitleEquals

public void assertTitleEquals(java.lang.String expectedTitle)
Description copied from interface: PageAssert
Asserts that page has title equal to expectedTitle. Page title will be normalized before comparing.

Specified by:
assertTitleEquals in interface PageAssert
Parameters:
expectedTitle - title being expected on a page

assertTextPresent

public void assertTextPresent(java.lang.String expectedText)
Description copied from interface: PageAssert
Asserts that page contains expectedText as substring. Text in page will be normalized before comparing.

Specified by:
assertTextPresent in interface PageAssert
Parameters:
expectedText - text being expected on a page (within body element)

assertTextNotPresent

public void assertTextNotPresent(java.lang.String notExpectedText)
Description copied from interface: PageAssert
Asserts that page does not contain notExpectedText as substring. Text in page will be normalized before comparing.

Specified by:
assertTextNotPresent in interface PageAssert
Parameters:
notExpectedText - text NOT being expected on a page (within body element)

assertLinkWithTextPresent

public void assertLinkWithTextPresent(java.lang.String textInLink)
Description copied from interface: PageAssert
Asserts that link with specified text contained within this page. Text within link will be normalized before comparing.

Specified by:
assertLinkWithTextPresent in interface PageAssert
Parameters:
textInLink - text searched link must have

assertLinkWithTextNotPresent

public void assertLinkWithTextNotPresent(java.lang.String textInLink)
Description copied from interface: PageAssert
Asserts that page does not contain link with specified text. Text within link will be normalized before comparing.

Specified by:
assertLinkWithTextNotPresent in interface PageAssert
Parameters:
textInLink - text to search in link

assertImageWithURLPresent

public void assertImageWithURLPresent(java.lang.String imageURL)
Description copied from interface: PageAssert
Asserts that page contains image with specified URL. Argument url can be absolute or relative. If url is relative absolute url will be constructed from the base URL of the test.

Image location will be calculated from location of the current page and value specified in image src attribute (if src contains servlet session id - it will be ignored).

Specified by:
assertImageWithURLPresent in interface PageAssert
Parameters:
imageURL - absolute or relative url of searched image

assertImageWithURLNotPresent

public void assertImageWithURLNotPresent(java.lang.String imageURL)
Description copied from interface: PageAssert
Asserts that page does not contain image with specified URL. Argument url can be absolute or relative. If url is relative absolute url will be constructed from the base URL of the test.

Image location will be calculated from location of the current page and value specified in image src attribute (if src contains servlet session id - it will be ignored).

Specified by:
assertImageWithURLNotPresent in interface PageAssert
Parameters:
imageURL - absolute or relative url of searched image

expectAnyAlert

public void expectAnyAlert()
Description copied from interface: UserDialogExpect
Setups any alert expectation.

Specified by:
expectAnyAlert in interface UserDialogExpect

expectAlert

public void expectAlert(java.lang.String expectedText)
Description copied from interface: UserDialogExpect
Setups alert expectation with specified text.

Text shown in alert will be normalized before comparing with expectedText argument.

Specified by:
expectAlert in interface UserDialogExpect
Parameters:
expectedText - text an alert must have

expectAlert

public void expectAlert(AlertAssert alertAssert,
                        java.lang.String expectedAlertDescription)
Description copied from interface: UserDialogExpect
Setups custom alert expectation.

Specified by:
expectAlert in interface UserDialogExpect
Parameters:
alertAssert - custom alert assertion implementation making actual assertion.
expectedAlertDescription - Description for an expected alert dialog. This description is shown in logs in case when the expected dialog didn't occur.

expectAnyConfirm

public void expectAnyConfirm(int whatToPress)
Description copied from interface: UserDialogExpect
Setups any confirmation dialog expectation.

Specified by:
expectAnyConfirm in interface UserDialogExpect
Parameters:
whatToPress - button to press in confirm: either UserDialogExpect.PRESS_OK or UserDialogExpect.PRESS_CANCEL constant must be used.

expectConfirm

public void expectConfirm(java.lang.String expectedText,
                          int whatToPress)
Description copied from interface: UserDialogExpect
Setups confirmation dialog expectation with specified text.

Specified by:
expectConfirm in interface UserDialogExpect
Parameters:
expectedText - text a confirm must have
whatToPress - button to press in confirm: either UserDialogExpect.PRESS_OK or UserDialogExpect.PRESS_CANCEL constant must be used.

expectConfirm

public void expectConfirm(ConfirmAssert confirmAssert,
                          java.lang.String expectedConfirmDescription,
                          int whatToPress)
Description copied from interface: UserDialogExpect
Setups custom confirmation dialog expectation.

Specified by:
expectConfirm in interface UserDialogExpect
Parameters:
confirmAssert - custom confirmation assertion implementation making actual assertion
expectedConfirmDescription - Description for an expected confirmation dialog. This description is shown in logs in case when the expected dialog didn't occur.
whatToPress - button to press in confirm: either UserDialogExpect.PRESS_OK or UserDialogExpect.PRESS_CANCEL constant must be used.

expectAnyPrompt

public void expectAnyPrompt(java.lang.String newValue)
Description copied from interface: UserDialogExpect
Setups prompt dialog expectation.

Specified by:
expectAnyPrompt in interface UserDialogExpect
Parameters:
newValue - value to specify in prompt, if null then prompt will be cancelled

expectPromptWithText

public void expectPromptWithText(java.lang.String expectedText,
                                 java.lang.String newValue)
Description copied from interface: UserDialogExpect
Setups prompt dialog expectation with expected text.

Specified by:
expectPromptWithText in interface UserDialogExpect
Parameters:
expectedText - text a prompt must have
newValue - value to specify in prompt, if null then prompt will be cancelled

expectPromptWithTextAndValue

public void expectPromptWithTextAndValue(java.lang.String expectedText,
                                         java.lang.String expectedValue,
                                         java.lang.String newValue)
Description copied from interface: UserDialogExpect
Setups prompt dialog expectation with expected text and initial value.

Specified by:
expectPromptWithTextAndValue in interface UserDialogExpect
Parameters:
expectedText - text a prompt must have
expectedValue - initial value a prompt must have
newValue - value to specify in prompt, if null then prompt will be cancelled

expectPrompt

public void expectPrompt(PromptAssert promptAssert,
                         java.lang.String expectedPromptdescription,
                         java.lang.String newValue)
Description copied from interface: UserDialogExpect
Setups custom prompt dialog expectation.

Specified by:
expectPrompt in interface UserDialogExpect
Parameters:
promptAssert - custom prompt assertion implementation making actual assertion
expectedPromptdescription - Description for an expected prompt dialog. This description is shown in logs in case when the expected dialog didn't occur.
newValue - value to specify in prompt, if null then prompt will be cancelled

disableJavaScript

public void disableJavaScript(boolean deferred)
Description copied from interface: ActiwateSession
Disables JavaScript support in this session for all the session windows and frames. But you are still able to use enableJavaScript methods to execute your custom scripts. Does nothing if JavaScript already disabled.

Specified by:
disableJavaScript in interface ActiwateSession
Parameters:
deferred - if false then JavaScript will be disabled immediately. If true then JavaScript support will be disabled only after loading of a new HTML page in this session, no matter in which window or frame.
See Also:
ActiwateSession.enableJavaScript(), ActiwateSession.isJavaScriptAutoRunningEnabled(), Action.executeJavaScript(java.lang.String), Action.executeJavaScript(java.lang.String, org.w3c.dom.html.HTMLElement), Action.executeJavaScript(java.lang.String), Action.executeJavaScript(java.lang.String, org.w3c.dom.html.HTMLElement)

enableJavaScript

public void enableJavaScript()
Description copied from interface: ActiwateSession
Enables JavaScript support for all the session windows and frames. Does nothing if JavaScript already enabled. Enabling JavaScript will not automatically execute scripts associated with HTML pages in this session.

Specified by:
enableJavaScript in interface ActiwateSession
See Also:
ActiwateSession.disableJavaScript(boolean), ActiwateSession.isJavaScriptAutoRunningEnabled()

isJavaScriptAutoRunningEnabled

public boolean isJavaScriptAutoRunningEnabled()
Description copied from interface: ActiwateSession
Returns value indicating whether or not JavaScript support is enabled.

Specified by:
isJavaScriptAutoRunningEnabled in interface ActiwateSession
Returns:
value indicating whether or not JavaScript support is enabled.
See Also:
ActiwateSession.enableJavaScript(), ActiwateSession.disableJavaScript(boolean)

executeJavaScript

public java.lang.Object executeJavaScript(java.lang.String script)
Description copied from interface: Action
Executes specified JavaScript statements in the scope of the current page.

Specified by:
executeJavaScript in interface Action
Parameters:
script - JavaScript code to execute.
Returns:
result of JavaScript execution.

executeJavaScript

public java.lang.Object executeJavaScript(java.lang.String script,
                                          org.w3c.dom.html.HTMLElement element)
Description copied from interface: Action
Executes specified JavaScript statements in the scope of the current page.

Specified by:
executeJavaScript in interface Action
Parameters:
script - JavaScript code to execute.
element - scope of script execution.
Returns:
result of JavaScript execution.

runPageScripts

public void runPageScripts()
Description copied from interface: Action
Loads and executes all scripts associated with the current page. Does not execute OnLoad handlers.

Specified by:
runPageScripts in interface Action

back

public void back()
          throws HistoryExhaustedException,
                 PageExpiredException
Description copied from interface: Action
Emulates browser back function

Specified by:
back in interface Action
Throws:
HistoryExhaustedException - if there is no entries for the back operation in the history
PageExpiredException - if a previous request was a POST request

forward

public void forward()
             throws HistoryExhaustedException,
                    PageExpiredException
Description copied from interface: Action
Emulates browser forward function

Specified by:
forward in interface Action
Throws:
HistoryExhaustedException - if there is no entries for the forward operation in the history
PageExpiredException - if a previous request was a POST request

reload

public void reload()
            throws PageExpiredException
Description copied from interface: Action
Reloads the current page

Specified by:
reload in interface Action
Throws:
PageExpiredException - if the current page is a result of a POST request

goTo

public void goTo(HttpRequest request)
          throws java.lang.UnsupportedOperationException
Description copied from interface: Action
Sends arbitrary HTTP request.

Specified by:
goTo in interface Action
Parameters:
request - request to send
Throws:
java.lang.UnsupportedOperationException - if this method is called for frame or iframe.

shiftTime

public void shiftTime(long milliseconds)
Description copied from interface: ActiwateSession
Moves time ahead on the specified number of milliseconds. Time is moved in all windows of this session. All timers (setTimeout() and setInterval()) and meta refresh tags fallen into specified interval will be executed.

Specified by:
shiftTime in interface ActiwateSession
Parameters:
milliseconds - time to shift current time for (in milliseconds)

getAsyncEvents

public AsyncEvents getAsyncEvents()
Description copied from interface: ActiwateSession
Returns AsyncEvents class containing all sheduled but not executed async events.
For more information on async events see AsyncEvent.

Specified by:
getAsyncEvents in interface ActiwateSession
Returns:
AsyncEvents class containing all sheduled but not executed async events.

getExecAsyncEventsAutomatically

public boolean getExecAsyncEventsAutomatically()
Description copied from interface: ActiwateSession
Returns value specified in ActiwateSession.setExecAsyncEventsAutomatically(boolean).

Specified by:
getExecAsyncEventsAutomatically in interface ActiwateSession
Returns:
value specified in ActiwateSession.setExecAsyncEventsAutomatically(boolean).

setExecAsyncEventsAutomatically

public void setExecAsyncEventsAutomatically(boolean auto)
Description copied from interface: ActiwateSession
Specifies one of two modes of processing of async events:

Specified by:
setExecAsyncEventsAutomatically in interface ActiwateSession
Parameters:
auto - see above

getXmlHttpRequestConfig

public XmlHttpRequestConfig getXmlHttpRequestConfig()
Description copied from interface: ActiwateSession
Returns configuration for XmlHttpRequest async events.

Specified by:
getXmlHttpRequestConfig in interface ActiwateSession
Returns:
configuration for XmlHttpRequest async events.

getExecAsyncEventsOffset

public long getExecAsyncEventsOffset()
Description copied from interface: ActiwateSession
Returns value specified in ActiwateSession.setExecAsyncEventsOffset(long).

Specified by:
getExecAsyncEventsOffset in interface ActiwateSession
Returns:
value specified in ActiwateSession.setExecAsyncEventsOffset(long).

setExecAsyncEventsOffset

public void setExecAsyncEventsOffset(long offsetMillis)
Description copied from interface: ActiwateSession
Sets offset for automatic async events execution.

Specified by:
setExecAsyncEventsOffset in interface ActiwateSession
Parameters:
offsetMillis - offset for automatic async events execution.
See Also:
ActiwateSession.setExecAsyncEventsAutomatically(boolean)

setXmlHttpRequestConfig

public void setXmlHttpRequestConfig(XmlHttpRequestConfig xmlHttpRequestConfig)
Description copied from interface: ActiwateSession
Sets configuration for XmlHttpRequest async events.

Specified by:
setXmlHttpRequestConfig in interface ActiwateSession
Parameters:
xmlHttpRequestConfig - configuration for XmlHttpRequest async events.

setAutoExecMetaRefreshes

public void setAutoExecMetaRefreshes(boolean enabled)
Specifies one of two modes of processing of Meta Refreshes for the current session:

Specified by:
setAutoExecMetaRefreshes in interface ActiwateSession
Parameters:
enabled - see above

getAutoExecMetaRefreshes

public boolean getAutoExecMetaRefreshes()
Returns value specified in setAutoExecMetaRefreshes(boolean) method.

Specified by:
getAutoExecMetaRefreshes in interface ActiwateSession
Returns:
value specified in setAutoExecMetaRefreshes(boolean) method.

setConnectTimeout

public void setConnectTimeout(int seconds)
Description copied from interface: ActiwateSession
Sets the timeout until HTTP connection with a server is established. The value of zero means that timeout is not used. By default timeout is not used.

Specified by:
setConnectTimeout in interface ActiwateSession
Parameters:
seconds - Timeout value in seconds

setDataTimeout

public void setDataTimeout(int seconds)
Description copied from interface: ActiwateSession
Sets the time which actiWATE waits for data server after connection is established. The value of zero means that timeout is not used. By default timeout is not used.

Specified by:
setDataTimeout in interface ActiwateSession
Parameters:
seconds - Timeout value in seconds

tearDown

protected void tearDown()
Performs verification of expected user dialogs.


verifyUserDialogs

public void verifyUserDialogs()
Description copied from interface: UserDialogExpect
Verifies that all expected user dialogs are occurred.

Specified by:
verifyUserDialogs in interface UserDialogExpect

page

public Page page()
Description copied from interface: ActiwateSession
Returns current page.

Specified by:
page in interface ActiwateSession

imageMap

public ImageMap imageMap(java.lang.String nameOrId)
Description copied from interface: PageObjectLookup
Searches for map by name or id attribute value.

Specified by:
imageMap in interface PageObjectLookup
Parameters:
nameOrId - name or id attribute value
Returns:
ImageMap object for the first map found

imageMap

public ImageMap imageMap(int idx)
Description copied from interface: PageObjectLookup
Returns map by index on a page.

Specified by:
imageMap in interface PageObjectLookup
Parameters:
idx - index of map among other maps on a page, starting from zero.
Returns:
ImageMap object for the found table.

imageMaps

public ImageMap[] imageMaps()
Description copied from interface: PageObjectLookup
Returns all HTML maps found on a page. If no maps found then empty array is returned

Specified by:
imageMaps in interface PageObjectLookup
Returns:
an array of maps found on a page

debug

public static void debug(java.lang.String message)
Logs debug message in the log

Parameters:
message -

info

public static void info(java.lang.String message)
Logs info message in the log

Parameters:
message -

warn

public static void warn(java.lang.String message)
Logs warning message in the log

Parameters:
message -

error

public static void error(java.lang.String message)
Logs error message in the log

Parameters:
message -

fatal

public static void fatal(java.lang.String message)
Logs fatal message in the log

Parameters:
message -

getTestCaseName

public java.lang.String getTestCaseName()
Specified by:
getTestCaseName in interface com.actimind.actiwate.testing.logging.TestRunInfo

getTestMethodName

public java.lang.String getTestMethodName()
Specified by:
getTestMethodName in interface com.actimind.actiwate.testing.logging.TestRunInfo

getTestStartTimestamp

public java.util.Date getTestStartTimestamp()
Specified by:
getTestStartTimestamp in interface com.actimind.actiwate.testing.logging.TestRunInfo

setFailureReporter

public void setFailureReporter(com.actimind.actiwate.testing.logging.log4j.FailureReporter failureReporter)
Specified by:
setFailureReporter in interface com.actimind.actiwate.testing.logging.TestRunInfo

getFailureReporter

public com.actimind.actiwate.testing.logging.log4j.FailureReporter getFailureReporter()
Specified by:
getFailureReporter in interface com.actimind.actiwate.testing.logging.TestRunInfo

runBare

public void runBare()
             throws java.lang.Throwable
Throws:
java.lang.Throwable


Copyright © 2007 Actimind, Inc. All Rights Reserved.