|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.grinder.common.AbstractTestSemantics
net.grinder.script.Test
public class Test
Scripts create Test instances which can then be used
to wrap(java.lang.Object) other Jython objects.
To The Grinder, a test is a unit of work against which statistics are recorded. Tests are uniquely defined by a test number and may also have a description. Scripts can report many different types of thing against the same test, The Grinder will aggregate the results.
Creating a Test will automatically update The
Grinder console with the test number and the description. If
two Tests are created with the same number but a
different description, the console will show the first
description.
| Constructor Summary | |
|---|---|
Test(int number,
String description)
Creates a new Test instance. |
|
| Method Summary | |
|---|---|
String |
getDescription()
Get the test description. |
int |
getNumber()
Get the test number. |
void |
record(Object target)
Instrument the supplied target object. |
Object |
wrap(Object target)
Creates a proxy script object that has the same interface as the passed object. |
| Methods inherited from class net.grinder.common.AbstractTestSemantics |
|---|
compareTo, equals, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Test(int number,
String description)
Test instance.
number - Test number.description - Test description.| Method Detail |
|---|
public final int getNumber()
getNumber in interface Testpublic final String getDescription()
getDescription in interface Test
public final Object wrap(Object target)
throws NotWrappableTypeException
Test statistics. This method can be called many
times, for many different targets.
target - Object to wrap.
NotWrappableTypeException - If the target object could not be
wrapped.
public final void record(Object target)
throws NonInstrumentableTypeException
target object. Subsequent calls to target will be recorded against the statistics for this Test.
target - Object to instrument.
NonInstrumentableTypeException - If target could not be instrumented.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||