net.thucydides.core.model
Class Screenshot

Package class diagram package Screenshot
java.lang.Object
  extended by net.thucydides.core.model.Screenshot

public class Screenshot
extends Object

Represents a screenshot stored during a test execution.


Nested Class Summary
 class Screenshot.HtmlFormattedInfo
           
 
Constructor Summary
Screenshot(String filename, String description, int width)
           
Screenshot(String filename, String description, int width, Throwable error)
           
 
Method Summary
 String getDescription()
           
 Throwable getError()
           
 String getErrorMessage()
           
 String getFilename()
           
 Screenshot.HtmlFormattedInfo getHtml()
           
 String getShortErrorMessage()
          Returns the first line only of the error message.
 int getWidth()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Screenshot

public Screenshot(String filename,
                  String description,
                  int width,
                  Throwable error)

Screenshot

public Screenshot(String filename,
                  String description,
                  int width)
Method Detail

getError

public Throwable 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.

Returns:

getFilename

public String getFilename()

getDescription

public String getDescription()

getWidth

public int getWidth()

getHtml

public Screenshot.HtmlFormattedInfo getHtml()


Copyright © 2011-2013 Wakaleo Consulting. All Rights Reserved.