Package com.xceptance.xlt.api.engine.scripting

# Class AbstractHtmlUnitScriptModule

java.lang.Object
com.xceptance.xlt.api.engine.scripting.AbstractHtmlUnitScriptModule

Direct Known Subclasses:
  `AbstractHtmlUnitActionsModule`, `AbstractHtmlUnitCommandsModule`

public abstract class AbstractHtmlUnitScriptModule extends Object
Base class of command modules.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `AbstractHtmlUnitScriptModule()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `protected boolean`
  `evaluatesToTrue(String jsExpression)`
  Returns whether or not the given expression evaluates to `true`.
  `protected String`
  `resolve(String resolvable)`
  Resolves the given string.
  `protected String`
  `resolveKey(String key)`
  Resolves the given test data key.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### AbstractHtmlUnitScriptModule

    public AbstractHtmlUnitScriptModule()

- ## Method Details

  - ### resolve

    protected String resolve(String resolvable)
    Resolves the given string.
    Parameters:
      `resolvable` - the string to be resolved
    Returns:
      the resolved string

  - ### resolveKey

    protected String resolveKey(String key)
    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

    protected boolean evaluatesToTrue(String jsExpression)
    Returns whether or not the given expression evaluates to `true`.
    Parameters:
      `jsExpression` - the JavaScript expression to evaluate
    Returns:
      `true` if and only if the given JavaScript expression is not blank and evaluates to `true`