Class ErrorSource

java.lang.Object
jp.vmi.selenium.selenese.ErrorSource
All Implemented Interfaces:
ITestTarget, Selenese
Direct Known Subclasses:
ErrorTestCase, ErrorTestSuite

public abstract class ErrorSource
extends Object
implements Selenese
  • Constructor Details

    • ErrorSource

      public ErrorSource()
  • Method Details

    • initialize

      public ErrorSource initialize​(String filename, InvalidSeleneseException e)
      Initialize.
      Parameters:
      filename - Selenese script file.
      e - InvalidSeleneseException or null.
      Returns:
      this.
    • isError

      public boolean isError()
      Is error object?
      Specified by:
      isError in interface ITestTarget
      Returns:
      true.
    • getName

      public String getName()
      Description copied from interface: ITestTarget
      Get test-target name.
      Specified by:
      getName in interface ITestTarget
      Returns:
      test-target name.
    • getId

      public String getId()
      Description copied from interface: Selenese
      Get id.
      Specified by:
      getId in interface Selenese
      Returns:
      id.
    • getFilename

      public String getFilename()
      Get filename.
      Returns:
      filename.
    • getBaseName

      public String getBaseName()
      Description copied from interface: ITestTarget
      Get test-target file base name. For example, return "def" when file name is "/abc/def.html".
      Specified by:
      getBaseName in interface ITestTarget
      Returns:
      test-target file base name.
    • getStopWatch

      public StopWatch getStopWatch()
      Description copied from interface: ITestTarget
      Get stop watch.
      Specified by:
      getStopWatch in interface ITestTarget
      Returns:
      stop watch.
    • execute

      public Result execute​(Selenese parent, Context context) throws InvalidSeleneseException
      Description copied from interface: Selenese
      Execute script.
      Specified by:
      execute in interface Selenese
      Parameters:
      parent - parent selenese instance or null.
      context - Selenese Runner context.
      Returns:
      result.
      Throws:
      InvalidSeleneseException - failed in parsing or executing selenese.
    • getResult

      public Result getResult()
      Get result.
      Specified by:
      getResult in interface Selenese
      Returns:
      result.
    • toString

      public String toString()
      Overrides:
      toString in class Object