public interface DocumentWrapper extends TestWrapper
T-Plan Robot Enterprise, (C) 2009-2022 T-Plan Limited. All rights reserved.
WRAPPER_TYPE_BLOCK, WRAPPER_TYPE_INCLUDE, WRAPPER_TYPE_JAVA, WRAPPER_TYPE_PROCEDURE, WRAPPER_TYPE_RUN, WRAPPER_TYPE_SCRIPT, WRAPPER_TYPE_UNKNOWN
Modifier and Type | Method and Description |
---|---|
boolean |
canPause() |
void |
exit() |
int |
getElementIndex(Element e)
Get index of an element in the DOM (Document Object Model).
|
Map |
getLocalVariables() |
Element |
getNextElement(Element element,
boolean validationMode,
ScriptingContext context)
Get an element which follows the argument one in the DOM (Document Object Model).
|
File |
getScriptFile() |
Element |
getStartElement()
Get the the first document element (i.e.
|
Object |
getVariable(String name) |
boolean |
isExecutionAllowed() |
boolean |
isExit() |
boolean |
isSelectionMode()
This method should return false if whole document content is to be executed or validated.
|
boolean |
isWithinSelection(Element e,
boolean validationMode,
ScriptingContext context)
Find out if an element is within execution selection, i.e.
|
void |
setLocalVariables(Map table) |
void |
setParentWrapper(DocumentWrapper parentWrapper) |
void |
setVariable(ScriptingContext ctx,
String name,
Object value) |
getDocument, getLineNumber, getParentWrapper, getTestSource, getWrapperType, setDocument
boolean isSelectionMode()
Element getStartElement()
boolean isWithinSelection(Element e, boolean validationMode, ScriptingContext context)
e
- a document element. Each element represents a single line of text in the document.validationMode
- true indicates that we are just validating (compiling) the code, false means that we are executing it.context
- execution or validation context.Element getNextElement(Element element, boolean validationMode, ScriptingContext context)
element
- a document element.validationMode
- true indicates that we are just validating (compiling) the code, false means that we are executing it.context
- execution or validation context.int getElementIndex(Element e)
e
- a document element.void setParentWrapper(DocumentWrapper parentWrapper)
void setVariable(ScriptingContext ctx, String name, Object value)
Map getLocalVariables()
void setLocalVariables(Map table)
boolean isExecutionAllowed()
boolean canPause()
void exit()
boolean isExit()
File getScriptFile()
getScriptFile
in interface TestWrapper