net.thucydides.core.model
Class Screenshot
java.lang.Object
net.thucydides.core.model.Screenshot
public class Screenshot
- extends Object
Represents a screenshot stored during a test execution.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Screenshot
public Screenshot(String filename,
String description,
int width,
Throwable error)
Screenshot
public Screenshot(String filename,
String description,
int width)
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()
Copyright © 2011-2012 Wakaleo Consulting. All Rights Reserved.