Class Screenshot
java.lang.Object
net.thucydides.model.domain.screenshots.Screenshot
Represents a screenshot stored during a test execution.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionScreenshot(String filename, String description, int width, long timestamp) Screenshot(String filename, String description, int width, long timestamp, FailureCause error) Screenshot(String filename, String description, int width, long timestamp, FailureCause error, int depth) -
Method Summary
-
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
-
-
Method Details
-
getError
-
getErrorMessage
-
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
-
getDescription
-
getWidth
public int getWidth() -
getTimestamp
-
getDepth
public int getDepth() -
getHtml
-
withDescription
-
withDepth
-
before
-
equals
-
hashCode
public int hashCode()
-