| |
|
| java.lang.Object com.canoo.webtest.boundary.ResetScriptRunner
ResetScriptRunner | public class ResetScriptRunner (Code) | | This class is used to run BSF scripts
|
addBean | public void addBean(String key, Object bean)(Code) | | Add a single object into the script context.
Parameters: key - the name in the context this object is to stored under. Parameters: bean - the object to be stored in the script context. |
addBeans | public void addBeans(Map dictionary)(Code) | | Add a list of named objects to the list to be exported to the script
Parameters: dictionary - a map of objects to be placed into the script contextindexed by String names. |
addText | public void addText(String text)(Code) | | Set the script text.
Parameters: text - a component of the script text to be added. |
evalScript | public String evalScript(String execName) throws BuildException(Code) | | Do the work.
Parameters: execName - the name that will be passed to BSF for this scriptexecution. throws: BuildException - if someting goes wrong exectuing the script. |
executeScript | public void executeScript(String execName) throws BuildException(Code) | | Do the work.
Parameters: execName - the name that will be passed to BSF for this scriptexecution. throws: BuildException - if someting goes wrong exectuing the script. |
getLanguage | public String getLanguage()(Code) | | Get the script language
the script language |
reset | public void reset()(Code) | | |
setLanguage | public void setLanguage(String lang)(Code) | | Defines the language (required).
Parameters: lang - the scripting language name for the script. |
setSrc | public void setSrc(File file)(Code) | | Load the script from an external file ; optional.
Parameters: file - the file containing the script source. |
|
|
|