public class TestStats
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLEANINGFACTOR_PROPDEFAULT |
static java.lang.String |
CLEANINGFACTOR_PROPNAME |
static java.lang.String |
CLEANINGLIMIT_PROPDEFAULT |
static java.lang.String |
CLEANINGLIMIT_PROPNAME |
Constructor and Description |
---|
TestStats(StorageRead storage)
Initiates a simple statistical report generator for the
latest test execution in the provided storage object.
|
TestStats(StorageRead storage,
java.lang.String testName)
Initiates a simple statistical report generator for the
given test execution in the provided storage object.
|
Modifier and Type | Method and Description |
---|---|
void |
compute(QuickstatProgress monitor)
The first call to this method actually reads measures and
computes statistics.
|
static TestDescriptor |
getLatestTest(StorageRead sr) |
void |
report(java.io.PrintStream out)
First calls the compute method() to make sure the statistics are
ready, then prints the report into the provided stream.
|
public static final java.lang.String CLEANINGFACTOR_PROPNAME
public static final java.lang.String CLEANINGFACTOR_PROPDEFAULT
public static final java.lang.String CLEANINGLIMIT_PROPNAME
public static final java.lang.String CLEANINGLIMIT_PROPDEFAULT
public TestStats(StorageRead storage) throws ClifException
storage
- a CLIF storage implementationClifException
- could not find a test executionpublic TestStats(StorageRead storage, java.lang.String testName) throws ClifException
storage
- a CLIF storage implementationtestName
- the name of the target test execution
When null or empty, the latest test execution is chosen.ClifException
- could not find the test executionpublic static TestDescriptor getLatestTest(StorageRead sr) throws ClifException
ClifException
public void compute(QuickstatProgress monitor) throws ClifException
monitor
- an optional object for monitoring
the progress of the statistics computation, and
possibly for stopping it.ClifException
- troubles with the CLIF storage
componentpublic void report(java.io.PrintStream out) throws ClifException
out
- the stream where to print the report.ClifException
compute(QuickstatProgress)