Class AbstractHtmlUnitScriptModule
java.lang.Object
com.xceptance.xlt.api.engine.scripting.AbstractHtmlUnitScriptModule
- Direct Known Subclasses:
AbstractHtmlUnitActionsModule
,AbstractHtmlUnitCommandsModule
Base class of command modules.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
evaluatesToTrue
(String jsExpression) Returns whether or not the given expression evaluates totrue
.protected String
Resolves the given string.protected String
resolveKey
(String key) Resolves the given test data key.
-
Constructor Details
-
AbstractHtmlUnitScriptModule
public AbstractHtmlUnitScriptModule()
-
-
Method Details
-
resolve
Resolves the given string.- Parameters:
resolvable
- the string to be resolved- Returns:
- the resolved string
-
resolveKey
Resolves the given test data key.- Parameters:
key
- the key string containing only the name of a test data field- Returns:
- resolved string or
null
if not found
-
evaluatesToTrue
Returns whether or not the given expression evaluates totrue
.- Parameters:
jsExpression
- the JavaScript expression to evaluate- Returns:
true
if and only if the given JavaScript expression is not blank and evaluates totrue
-