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

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

public class TestMetricsBean
extends java.lang.Object

Metrics and environment information (user-agent, versions) collected during test run. TODO: maybe also count commandsProcessed, verificationsProcessed which were not inside a Wait

Author:
robertzimmermann $Id: TestMetricsBean.java 96 2008-04-05 10:36:28Z bobbyde $

Constructor Summary
TestMetricsBean()
           
 
Method Summary
 java.lang.String[] getCommandsExcludedFromLogging()
           
 long getCommandsProcessed()
           
 long getEndTimeStamp()
           
 long getFailedCommands()
           
 java.lang.String getLastFailedCommandMessage()
           
 java.lang.String getLoggingSeleniumRevision()
           
 java.lang.String getSeleniumCoreRevision()
           
 java.lang.String getSeleniumCoreVersion()
           
 java.lang.String getSeleniumRcRevision()
           
 java.lang.String getSeleniumRcVersion()
           
 long getStartTimeStamp()
           
 long getTestDuration()
          Compute test duration out of startTimeStamp and endTimeStamp.
 java.lang.String getUserAgent()
           
 long getVerificationsProcessed()
           
 void incCommandsProcessed()
          Increment commandsProcessed by one.
 void incFailedCommands()
          Increment failedCommands by one.
 void incVerificationsProcessed()
          Increment verificationsProcessed by one.
 void setCommandsExcludedFromLogging(java.lang.String[] commandsExcludedFromLogging)
           
 void setCommandsProcessed(long commandsProcessed)
           
 void setEndTimeStamp(long endTimeStamp)
           
 void setFailedCommands(long failedCommands)
           
 void setLastFailedCommandMessage(java.lang.String lastFailedCommandMessage)
           
 void setSeleniumCoreRevision(java.lang.String seleniumCoreRevision)
           
 void setSeleniumCoreVersion(java.lang.String seleniumCoreVersion)
           
 void setSeleniumRcRevision(java.lang.String seleniumRcRevision)
           
 void setSeleniumRcVersion(java.lang.String seleniumRcVersion)
           
 void setStartTimeStamp(long startTimeStamp)
           
 void setUserAgent(java.lang.String userAgent)
           
 void setVerificationsProcessed(long verificationsProcessed)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestMetricsBean

public TestMetricsBean()
Method Detail

getStartTimeStamp

public long getStartTimeStamp()

setStartTimeStamp

public void setStartTimeStamp(long startTimeStamp)

getEndTimeStamp

public long getEndTimeStamp()

setEndTimeStamp

public void setEndTimeStamp(long endTimeStamp)

getCommandsProcessed

public long getCommandsProcessed()

setCommandsProcessed

public void setCommandsProcessed(long commandsProcessed)

incCommandsProcessed

public void incCommandsProcessed()
Increment commandsProcessed by one. Convenience method to shortcut usage like this: setCommandsProcessed(getCommandsProcessed()+1)


getFailedCommands

public long getFailedCommands()

setFailedCommands

public void setFailedCommands(long failedCommands)

incFailedCommands

public void incFailedCommands()
Increment failedCommands by one. Convenience method to shortcut usage like this: setFailedCommands(getFailedCommands()+1)


getTestDuration

public long getTestDuration()
Compute test duration out of startTimeStamp and endTimeStamp. wrong values are negative startTimeStamp or negative difference between endTimeStamp and startTimeStamp

Returns:
duration in millis. will be 0 in case of missing or wrong values

getVerificationsProcessed

public long getVerificationsProcessed()

setVerificationsProcessed

public void setVerificationsProcessed(long verificationsProcessed)

incVerificationsProcessed

public void incVerificationsProcessed()
Increment verificationsProcessed by one. Convenience method to shortcut usage like this: setVerificationsProcessed(getVerificationsProcessed()+1)


getUserAgent

public java.lang.String getUserAgent()

setUserAgent

public void setUserAgent(java.lang.String userAgent)

getSeleniumCoreVersion

public java.lang.String getSeleniumCoreVersion()

setSeleniumCoreVersion

public void setSeleniumCoreVersion(java.lang.String seleniumCoreVersion)

getSeleniumCoreRevision

public java.lang.String getSeleniumCoreRevision()

setSeleniumCoreRevision

public void setSeleniumCoreRevision(java.lang.String seleniumCoreRevision)

getSeleniumRcVersion

public java.lang.String getSeleniumRcVersion()

setSeleniumRcVersion

public void setSeleniumRcVersion(java.lang.String seleniumRcVersion)

getSeleniumRcRevision

public java.lang.String getSeleniumRcRevision()

setSeleniumRcRevision

public void setSeleniumRcRevision(java.lang.String seleniumRcRevision)

getLastFailedCommandMessage

public java.lang.String getLastFailedCommandMessage()

setLastFailedCommandMessage

public void setLastFailedCommandMessage(java.lang.String lastFailedCommandMessage)

getLoggingSeleniumRevision

public java.lang.String getLoggingSeleniumRevision()

getCommandsExcludedFromLogging

public java.lang.String[] getCommandsExcludedFromLogging()

setCommandsExcludedFromLogging

public void setCommandsExcludedFromLogging(java.lang.String[] commandsExcludedFromLogging)


Copyright © 2009. All Rights Reserved.