|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.canoo.webtest.boundary.ResetScriptRunner
public class ResetScriptRunner
This class is used to run BSF scripts
| Constructor Summary | |
|---|---|
ResetScriptRunner()
|
|
| Method Summary | |
|---|---|
void |
addBean(String key,
Object bean)
Add a single object into the script context. |
void |
addBeans(Map dictionary)
Add a list of named objects to the list to be exported to the script |
void |
addText(String text)
Set the script text. |
String |
evalScript(String execName)
Do the work. |
void |
executeScript(String execName)
Do the work. |
String |
getLanguage()
Get the script language |
void |
reset()
|
void |
setLanguage(String lang)
Defines the language (required). |
void |
setSrc(File file)
Load the script from an external file ; optional. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResetScriptRunner()
| Method Detail |
|---|
public void reset()
public void addBeans(Map dictionary)
dictionary - a map of objects to be placed into the script context
indexed by String names.
public void addBean(String key,
Object bean)
key - the name in the context this object is to stored under.bean - the object to be stored in the script context.
public void executeScript(String execName)
throws BuildException
execName - the name that will be passed to BSF for this script
execution.
BuildException - if someting goes wrong exectuing the script.
public String evalScript(String execName)
throws BuildException
execName - the name that will be passed to BSF for this script
execution.
BuildException - if someting goes wrong exectuing the script.public void setLanguage(String lang)
lang - the scripting language name for the script.public String getLanguage()
public void setSrc(File file)
file - the file containing the script source.public void addText(String text)
text - a component of the script text to be added.
|
Copyright © 2001-2007 Canoo Engineering AG, Basel. All rights reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||