net.grinder.statistics
Class TestStatisticsQueries

java.lang.Object
  extended by net.grinder.statistics.TestStatisticsQueries

public final class TestStatisticsQueries
extends Object

Common queries against the standard statistics.

Author:
Philip Aston

Method Summary
 double getAverageTestTime(StatisticsSet statistics)
          Return the value obtained by dividing the timedTests sample statistics total attribute by its count attribute.
 long getNumberOfErrors(StatisticsSet statistics)
          Return the value of the errors statistic.
 long getNumberOfTests(StatisticsSet statistics)
          Return the number of tests.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getNumberOfTests

public long getNumberOfTests(StatisticsSet statistics)
Return the number of tests. This is equal to the sum of the timedTests count value and the untimedTests value.

Parameters:
statistics - The statistics to query.
Returns:
a long value

getNumberOfErrors

public long getNumberOfErrors(StatisticsSet statistics)
Return the value of the errors statistic.

Parameters:
statistics - The statistics to query.
Returns:
a long value

getAverageTestTime

public double getAverageTestTime(StatisticsSet statistics)
Return the value obtained by dividing the timedTests sample statistics total attribute by its count attribute.

Parameters:
statistics - The statistics to query.
Returns:
a double value


Copyright © 2000-2013. All Rights Reserved.