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


public interface LoggingNotifier

Notification Interface for loggingselenium caller. If you are interested in notifications then instantiate the interface and set the instance with the setCallbackNotifier-function.

Author:
ralf2511

Method Summary
 java.lang.Boolean errorLogging(java.lang.Object instance, java.lang.String commandName, java.lang.String[] args, java.lang.String result, java.lang.Throwable exception, long cmdStartMillis)
          Call back function to inform the calling application in case of error.
 java.lang.Boolean makeScreenshot(java.lang.Object instance, java.lang.String pathFile)
          Call back function to inform the calling application in case of error.
 

Method Detail

errorLogging

java.lang.Boolean errorLogging(java.lang.Object instance,
                               java.lang.String commandName,
                               java.lang.String[] args,
                               java.lang.String result,
                               java.lang.Throwable exception,
                               long cmdStartMillis)
Call back function to inform the calling application in case of error. Then you can do additional logging or ring a bell or what ever you want.

Parameters:
instance - Instance of the calling application
commandName - The selenium command name
args - The Arguments of the selenium command
result - The selenium Answer
exception - The problem
cmdStartMillis - Start time
Returns:
True (default behavior): make screen shot after this call False: do not make a screen shot

makeScreenshot

java.lang.Boolean makeScreenshot(java.lang.Object instance,
                                 java.lang.String pathFile)
Call back function to inform the calling application in case of error. Then do can do your make your own screen shot in case of remote connection.

Parameters:
instance - Instance of the calling application
pathFile - Full path and file to the resource
Returns:
True (default behavior): make internal screen shot False: do not make a (additionally?!) screen shot


Copyright © 2009. All Rights Reserved.