|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LoggingResultsFormatter
The LoggingResultFormatter can be used to log in any format you want to. The formatter is responsible for writing results. Also the formatter is resposible for handling encodings right for whatever output storage is used. Currently there is an HtmlResultFormatter implemented. There could also be an CSVFormatter, DatabaseFormatter or whatever you want the log to look like.
Method Summary | |
---|---|
void |
booleanCommandLogEvent(LoggingBean loggingBean)
Formats an selenium command which has an boolean result. |
void |
commandLogEvent(LoggingBean loggingBean)
Formats an selenium command. |
void |
commentLogEvent(LoggingBean loggingBean)
Format a comment. |
void |
footerLogEvent()
Like formatHeader() but here after all commands have been formatted. |
java.lang.String |
generateFilenameForAutomaticScreenshot(java.lang.String baseName)
Generate an absolute filename for taking screenshots in case of an error (eg. timed out wait). |
java.lang.String |
getAutomaticScreenshotPath()
Path to the (filesystem-)location where screenshot should be saved. |
java.lang.String |
getScreenShotBaseUri()
Base URI to be linked to in the result. |
void |
headerLogEvent(TestMetricsBean metricsBean)
Whatever the formatter wants to do before any command will be formatted. |
void |
methodLogEvent(LoggingBean loggingBean)
Formats a Log Event for a complete Test Method. |
void |
setAutomaticScreenshotPath(java.lang.String automaticScreenshotPath)
Path to the (filesystem-)location where screenshot should be saved. |
void |
setScreenShotBaseUri(java.lang.String screenShotBaseUri)
Set a special uri for screenshots. |
Method Detail |
---|
void commentLogEvent(LoggingBean loggingBean)
loggingBean
- loggingBean containing the comment to be logged.void commandLogEvent(LoggingBean loggingBean)
loggingBean
- containing all informations for logging a selenium commandvoid booleanCommandLogEvent(LoggingBean loggingBean)
loggingBean
- containing all informations for logging a selenium commandvoid methodLogEvent(LoggingBean loggingBean)
loggingBean
- containing all informations for logging a test method and its commandsvoid headerLogEvent(TestMetricsBean metricsBean)
metricsBean
- metrics gathered during test-runvoid footerLogEvent()
java.lang.String getScreenShotBaseUri()
void setScreenShotBaseUri(java.lang.String screenShotBaseUri)
screenShotBaseUri
- the new uri for screenshotsjava.lang.String generateFilenameForAutomaticScreenshot(java.lang.String baseName)
baseName
- middle part of the name to be enhanced by whatever the implementation wants to
java.lang.String getAutomaticScreenshotPath()
void setAutomaticScreenshotPath(java.lang.String automaticScreenshotPath)
automaticScreenshotPath
- location (only path) to where screenshots should be saved
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |