|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectavignon.handlers.TestScriptHandler
Includes an Avignon test script in the current test.
Attributes:
| Constructor Summary | |
TestScriptHandler()
|
|
| Method Summary | |
void |
end(AvignonTestState state)
Causes the script to be executed. |
void |
executeScript(AvignonTestState state,
java.lang.String name)
Replaces any parameters specified in calls to setScriptParameter and executes the script. |
static java.lang.String |
getExecutedScript()
Determines the name of the last script to be executed. |
void |
setScriptParameter(java.lang.String name,
java.lang.String value)
Adds a parameter to be replaced before the script is executed. |
void |
start(AvignonTestState state,
org.xml.sax.Attributes attributes)
Sets the name of the script to be executed. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TestScriptHandler()
| Method Detail |
public static java.lang.String getExecutedScript()
public void setScriptParameter(java.lang.String name,
java.lang.String value)
name - Name of the parameter to replace. In the included file, the text #name# will be replaced with the given value.value - Value of the parameter to used when executing the script.
public void start(AvignonTestState state,
org.xml.sax.Attributes attributes)
start in interface AvignonTagHandlerstate - Not used.attributes - The name attribute must be set to the relative path of the script to be executed.public void end(AvignonTestState state)
end in interface AvignonTagHandlerstate - AvignonTestState with which to execute the test.
public void executeScript(AvignonTestState state,
java.lang.String name)
executeScript in interface ScriptRunnerstate - The AvignonTestState on which to execute the test. By default, this will be same state that is being used for the surrounding
test.name - File name, relative to the ScriptRoot property, of the script to execute.
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||