com.unitedinternet.portal.selenium.utils.logging
Interface LoggingSelenium

All Superinterfaces:
com.thoughtworks.selenium.Selenium
All Known Implementing Classes:
LoggingDefaultSelenium

public interface LoggingSelenium
extends com.thoughtworks.selenium.Selenium

Extends Selenium with ability to log comments and write the log.

Author:
Robert Zimmermann $Id: LoggingSelenium.java 111 2008-04-18 15:21:02Z ralf2511 $

Method Summary
 void logAssertion(java.lang.String assertionName, java.lang.String assertionMessage, java.lang.String assertionCondition)
          Log an assertion.
 void logAutomaticScreenshot(java.lang.String baseName)
          Take a screen shot and write the location to the log.
 void logComment(java.lang.String comment)
          Extension of Selenium to provide ability to log comments.
 void logResource(java.lang.String description, java.lang.String pathFile)
          Log an resource (binary) file.
 
Methods inherited from interface com.thoughtworks.selenium.Selenium
addLocationStrategy, addSelection, allowNativeXpath, altKeyDown, altKeyUp, answerOnNextPrompt, assignId, attachFile, captureEntirePageScreenshot, captureScreenshot, check, chooseCancelOnNextConfirmation, chooseOkOnNextConfirmation, click, clickAt, close, contextMenu, contextMenuAt, controlKeyDown, controlKeyUp, createCookie, deleteAllVisibleCookies, deleteCookie, doubleClick, doubleClickAt, dragAndDrop, dragAndDropToObject, dragdrop, fireEvent, focus, getAlert, getAllButtons, getAllFields, getAllLinks, getAllWindowIds, getAllWindowNames, getAllWindowTitles, getAttribute, getAttributeFromAllWindows, getBodyText, getConfirmation, getCookie, getCookieByName, getCursorPosition, getElementHeight, getElementIndex, getElementPositionLeft, getElementPositionTop, getElementWidth, getEval, getExpression, getHtmlSource, getLocation, getMouseSpeed, getPrompt, getSelectedId, getSelectedIds, getSelectedIndex, getSelectedIndexes, getSelectedLabel, getSelectedLabels, getSelectedValue, getSelectedValues, getSelectOptions, getSpeed, getTable, getText, getTitle, getValue, getWhetherThisFrameMatchFrameExpression, getWhetherThisWindowMatchWindowExpression, getXpathCount, goBack, highlight, ignoreAttributesWithoutValue, isAlertPresent, isChecked, isConfirmationPresent, isCookiePresent, isEditable, isElementPresent, isOrdered, isPromptPresent, isSomethingSelected, isTextPresent, isVisible, keyDown, keyDownNative, keyPress, keyPressNative, keyUp, keyUpNative, metaKeyDown, metaKeyUp, mouseDown, mouseDownAt, mouseMove, mouseMoveAt, mouseOut, mouseOver, mouseUp, mouseUpAt, open, openWindow, refresh, removeAllSelections, removeSelection, runScript, select, selectFrame, selectWindow, setBrowserLogLevel, setContext, setCursorPosition, setMouseSpeed, setSpeed, setTimeout, shiftKeyDown, shiftKeyUp, shutDownSeleniumServer, start, stop, submit, type, typeKeys, uncheck, waitForCondition, waitForFrameToLoad, waitForPageToLoad, waitForPopUp, windowFocus, windowMaximize
 

Method Detail

logComment

void logComment(java.lang.String comment)
Extension of Selenium to provide ability to log comments.

Parameters:
comment - the comment to be handled by the used formatter

logAutomaticScreenshot

void logAutomaticScreenshot(java.lang.String baseName)
Take a screen shot and write the location to the log. Will be used in case of an error (thrown exception).

Parameters:
baseName - middle part of the generated filename. can be extended (with e.g. a timestamp) by the used LoggingResultsFormatter.

logAssertion

void logAssertion(java.lang.String assertionName,
                  java.lang.String assertionMessage,
                  java.lang.String assertionCondition)
Log an assertion. Needed by LoggingAssert class, which wraps junit4 assertions.

Parameters:
assertionName - Name of the thrown assertion
assertionMessage - Message of the thrown assertion
assertionCondition - Failed condition which led to this assertion.

logResource

void logResource(java.lang.String description,
                 java.lang.String pathFile)
Log an resource (binary) file. Normally use in case of error to add screen shot or more informations about test conditions to the log.

Parameters:
description - A text that describes the reource
pathFile - Full path and file to the resource


Copyright © 2009. All Rights Reserved.