| java.lang.Object abbot.script.Step abbot.script.Call abbot.script.PropertyCall abbot.script.Sample
Sample | public class Sample extends PropertyCall (Code) | | Encapsulate capture of a value. Usage:
<sample property="..." method="assertXXX" [class="..."]>
<sample property="..." method="(get|is|has)XXX" component="component_id">
The sample step stores the value found from the given method
abbot.tester.ComponentTester class; the class tag is required for
methods based on a class derived from
abbot.tester.ComponentTester ;
the class tag indicates the
java.awt.Component class, not the
Tester class (the appropriate tester class will be derived automatically).
The second format indicates a property sample on the given component.
In both cases, the result of the invocation will be saved in the current
abbot.script.Resolver as a property with the given property name.
|
Constructor Summary | |
public | Sample(Resolver resolver, Map attributes) | public | Sample(Resolver resolver, String description, String methodName, String id, String propName) Component property sample. | public | Sample(Resolver resolver, String description, String className, String methodName, String[] args, String propName) Static method property sample. |
getAttributes | public Map getAttributes()(Code) | | |
getDefaultDescription | public String getDefaultDescription()(Code) | | |
invoke | protected Object invoke() throws Throwable(Code) | | Store the results of the invocation in the designated property as a
String-encoded value.
|
setPropertyName | public void setPropertyName(String name)(Code) | | |
|
|