com.unitedinternet.portal.selenium.utils.logging
Class LoggingBean

java.lang.Object
  extended by com.unitedinternet.portal.selenium.utils.logging.LoggingBean

public class LoggingBean
extends java.lang.Object

All data of a Selenium command already processed by remote-control and other informations to be formatted and logged.

Author:
Robert Zimmermann $Id: LoggingBean.java 114 2008-05-02 13:10:44Z Steffen_K $

Constructor Summary
LoggingBean()
           
 
Method Summary
 void addChild(LoggingBean loggingBean)
           
 java.lang.String[] getArgs()
           
 java.lang.String getCallingClass()
           
 java.util.List<LoggingBean> getChildren()
           
 long getCmdEndMillis()
           
 long getCmdStartMillis()
           
 java.lang.String getCommandName()
           
 long getDeltaMillis()
          Return time spent depending on type of command.
 java.lang.String getResult()
           
 java.lang.String getSelResult()
          Extract core part out of combined result.
 java.lang.String getSourceMethod()
           
 java.lang.String getSrcResult()
          Extract remote-control part out of combined result.
 long getWaitDeltaMillis()
           
 boolean hasChildren()
           
 boolean isCommandSuccessful()
           
 boolean isExcludeFromLogging()
           
 boolean isWaitInvolved()
           
 void setArgs(java.lang.String[] args)
           
 void setCallingClass(java.lang.String callingClass)
           
 void setCmdEndMillis(long cmdEndMillis)
           
 void setCmdStartMillis(long cmdStartMillis)
           
 void setCommandName(java.lang.String commandName)
           
 void setCommandSuccessful(boolean commandSuccessful)
           
 void setExcludeFromLogging(boolean excludeFromLogging)
           
 void setResult(java.lang.String result)
           
 void setSourceMethod(java.lang.String sourceMethod)
           
 void setWaitDeltaMillis(long waitDeltaMillis)
           
 void setWaitInvolved(boolean waitInvolved)
           
 java.lang.String toString()
          Do not rely on stability of this method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LoggingBean

public LoggingBean()
Method Detail

addChild

public void addChild(LoggingBean loggingBean)

getChildren

public java.util.List<LoggingBean> getChildren()

hasChildren

public boolean hasChildren()

getCommandName

public java.lang.String getCommandName()

setCommandName

public void setCommandName(java.lang.String commandName)

getArgs

public java.lang.String[] getArgs()

setArgs

public void setArgs(java.lang.String[] args)

getResult

public java.lang.String getResult()

setResult

public void setResult(java.lang.String result)

getCallingClass

public java.lang.String getCallingClass()

setCallingClass

public void setCallingClass(java.lang.String callingClass)

isCommandSuccessful

public boolean isCommandSuccessful()

setCommandSuccessful

public void setCommandSuccessful(boolean commandSuccessful)

getSrcResult

public java.lang.String getSrcResult()
Extract remote-control part out of combined result.

Returns:
the remote-control part of the combined result

getSelResult

public java.lang.String getSelResult()
Extract core part out of combined result.

Returns:
the selenium-core part of the combined result

toString

public java.lang.String toString()
Do not rely on stability of this method. Subject to change in further releases.

Overrides:
toString in class java.lang.Object
Returns:
commandName and its args as one String

getCmdStartMillis

public long getCmdStartMillis()

setCmdStartMillis

public void setCmdStartMillis(long cmdStartMillis)

getCmdEndMillis

public long getCmdEndMillis()

setCmdEndMillis

public void setCmdEndMillis(long cmdEndMillis)

isWaitInvolved

public boolean isWaitInvolved()

setWaitInvolved

public void setWaitInvolved(boolean waitInvolved)

getSourceMethod

public java.lang.String getSourceMethod()

setSourceMethod

public void setSourceMethod(java.lang.String sourceMethod)

getDeltaMillis

public long getDeltaMillis()
Return time spent depending on type of command. Current differentiation: 1) inside Wait (wait's are combined into one event) 2) how long on single command took

Returns:
time (millis) spent for a command or summarized over all issued wait's

isExcludeFromLogging

public boolean isExcludeFromLogging()

setExcludeFromLogging

public void setExcludeFromLogging(boolean excludeFromLogging)

getWaitDeltaMillis

public long getWaitDeltaMillis()

setWaitDeltaMillis

public void setWaitDeltaMillis(long waitDeltaMillis)


Copyright © 2009. All Rights Reserved.