public class ScreenshotCard extends Card
container, listener
Constructor and Description |
---|
ScreenshotCard() |
Modifier and Type | Method and Description |
---|---|
protected void |
addHTMLToContainer(org.concordion.api.Element container)
Add HTML to the storyboard to display the card details
|
protected void |
captureData()
Write the data to a file
|
protected void |
cleanupData()
Override this method to clean up data belonging to this card - likely to be used in
conjunction with the shouldAppend() method
|
boolean |
isDeleteIfSuccessful() |
void |
setDeleteIfSuccessful(boolean deleteIfSuccessful) |
void |
setImageName(java.lang.String imageName,
java.awt.Dimension imageSize)
Use an existing image rather than have this class attempt to capture a screenshot.
|
protected void |
setScreenshotTaker(org.concordion.ext.ScreenshotTaker screenshotTaker) |
protected boolean |
shouldAppend(boolean hasFailure)
Override this method to update whether the card should be added to the storyboard or not.
|
getDescription, getFileName, setDescription
getItemIndex, getResource, getResult, getTarget, getTitle, setContainer, setResult, setStoryboardListener, setTitle
protected void setScreenshotTaker(org.concordion.ext.ScreenshotTaker screenshotTaker)
public boolean isDeleteIfSuccessful()
public void setDeleteIfSuccessful(boolean deleteIfSuccessful)
protected void captureData()
Card
captureData
in class Card
protected boolean shouldAppend(boolean hasFailure)
Card
shouldAppend
in class Card
hasFailure
- True if the test failed, or if within a section break, the section was marked as failureprotected void cleanupData()
Card
cleanupData
in class Card
protected void addHTMLToContainer(org.concordion.api.Element container)
Card
addHTMLToContainer
in class Card
container
- The card elementpublic void setImageName(java.lang.String imageName, java.awt.Dimension imageSize)
imageName
- Relative path to the imageimageSize
- Dimesion of image