java.lang.Object
net.thucydides.model.domain.screenshots.Screenshot

public class Screenshot extends Object
Represents a screenshot stored during a test execution.
  • Constructor Details

    • Screenshot

      public Screenshot(String filename, String description, int width, long timestamp, FailureCause error)
    • Screenshot

      public Screenshot(String filename, String description, int width, long timestamp, FailureCause error, int depth)
    • Screenshot

      public Screenshot(String filename, String description, int width, long timestamp)
  • Method Details

    • getError

      public FailureCause getError()
    • getErrorMessage

      public String getErrorMessage()
    • getShortErrorMessage

      public String getShortErrorMessage()
      Returns the first line only of the error message. This avoids polluting the UI with unnecessary details such as browser versions and so forth.
    • getFilename

      public String getFilename()
    • getDescription

      public String getDescription()
    • getWidth

      public int getWidth()
    • getTimestamp

      public Long getTimestamp()
    • getDepth

      public int getDepth()
    • getHtml

      public Screenshot.HtmlFormattedInfo getHtml()
    • withDescription

      public Screenshot withDescription(String description)
    • withDepth

      public Screenshot withDepth(int depth)
    • before

      public Screenshot before()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object