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 booleanevaluatesToTrue(String jsExpression) Returns whether or not the given expression evaluates totrue.protected StringResolves the given string.protected StringresolveKey(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
nullif not found
-
evaluatesToTrue
Returns whether or not the given expression evaluates totrue.- Parameters:
jsExpression- the JavaScript expression to evaluate- Returns:
trueif and only if the given JavaScript expression is not blank and evaluates totrue
-