|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Metric
A metric is what's actually recorded. This provides a strategy for what to do with an object for a given product and should return a measurable result. For example it could serialize an object against a product and return how long it took to complete the operation.
Harness| Method Summary | |
|---|---|
boolean |
biggerIsBetter()
Whether a big result is better for this metric. |
double |
run(Product product,
Object object)
Deprecated. since 1.3 |
double |
run(Product product,
Target target)
Run the test and produce a metric. |
String |
unit()
The unit the metric is recorded in (for reporting purposes). |
| Method Detail |
|---|
double run(Product product,
Object object)
throws Exception
product - Product to use in test.object - A object to use against the product.
Exception - If this metric could not be obtained. This will
be reported back to the Reporter.
double run(Product product,
Target target)
throws Exception
product - Product to use in test.target - A target to use against the product.
Exception - If this metric could not be obtained. This will
be reported back to the Reporter.String unit()
boolean biggerIsBetter()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||