Class StartMarker

java.lang.Object
jp.vmi.selenium.selenese.command.StartMarker
All Implemented Interfaces:
ArgumentInfo, ICommand

public class StartMarker
extends Object
implements ICommand
Start marker for result sequence.
  • Constructor Details

    • StartMarker

      public StartMarker​(ICommand command, String message)
      Constructor.
      Parameters:
      command - real command.
      message - message for log.
  • Method Details

    • getSource

      public String[] getSource()
      Description copied from interface: ICommand
      Get source elements.
      Specified by:
      getSource in interface ICommand
      Returns:
      array of source elements. (always 3 elements)
    • getIndex

      public int getIndex()
      Description copied from interface: ICommand
      Get index in selenese script file (1 origin).
      Specified by:
      getIndex in interface ICommand
      Returns:
      index.
    • getArguments

      public String[] getArguments()
      Description copied from interface: ICommand
      Get command arguments.
      Specified by:
      getArguments in interface ICommand
      Returns:
      command arguments.
    • getName

      public String getName()
      Description copied from interface: ICommand
      Get command name.
      Specified by:
      getName in interface ICommand
      Returns:
      command name.
    • convertLocators

      @Deprecated public String[] convertLocators​(String[] args)
      Deprecated.
      Description copied from interface: ICommand
      Convert locators from arguments.
      Specified by:
      convertLocators in interface ICommand
      Parameters:
      args - the command arguments.
      Returns:
      converted locators.
    • mayUpdateScreen

      public boolean mayUpdateScreen()
      Description copied from interface: ICommand
      May the command update screen?
      Specified by:
      mayUpdateScreen in interface ICommand
      Returns:
      true if the command may update screen.
    • execute

      public Result execute​(Context context, String... curArgs)
      Description copied from interface: ICommand
      Execute the command.

      Note: set the command result to testCase in this method.

      Specified by:
      execute in interface ICommand
      Parameters:
      context - Selenese Runner context.
      curArgs - current arugments. (the variables in it are extracted)
      Returns:
      the command result.
    • getResult

      public Result getResult()
      Description copied from interface: ICommand
      Get the command result.
      Specified by:
      getResult in interface ICommand
      Returns:
      the command result.
    • setBlockStart

      public void setBlockStart​(BlockStart blockStart)
      Description copied from interface: ICommand
      Set beginning-of-block command.
      Specified by:
      setBlockStart in interface ICommand
      Parameters:
      blockStart - beginning-of-block command.
    • getBlockStart

      public BlockStart getBlockStart()
      Description copied from interface: ICommand
      Get beginning-of-block command.
      Specified by:
      getBlockStart in interface ICommand
      Returns:
      beginning-of-block command.
    • setStartLoop

      @Deprecated public void setStartLoop​(StartLoop startLoop)
      Deprecated.
      Description copied from interface: ICommand
      Set beginning-of-loop command.
      Specified by:
      setStartLoop in interface ICommand
      Parameters:
      startLoop - beginning-of-loop command.
    • getStartLoop

      @Deprecated public StartLoop getStartLoop()
      Deprecated.
      Description copied from interface: ICommand
      Get beginning-of-loop command.
      Specified by:
      getStartLoop in interface ICommand
      Returns:
      beginning-of-loop command.
    • addScreenshot

      public void addScreenshot​(String path, String label)
      Description copied from interface: ICommand
      Add screenshot image.
      Specified by:
      addScreenshot in interface ICommand
      Parameters:
      path - image path.
      label - image label.
    • getScreenshots

      public List<Screenshot> getScreenshots()
      Description copied from interface: ICommand
      Get list of screenshot images.
      Specified by:
      getScreenshots in interface ICommand
      Returns:
      list of image path of sreenshot.
    • setSideCommand

      public void setSideCommand​(SideCommand sideCommand)
      Description copied from interface: ICommand
      Set side command.
      Specified by:
      setSideCommand in interface ICommand
      Parameters:
      sideCommand - SIDE command.