|
|||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |
See:
Description
Interface Summary | |
---|---|
LoggingNotifier | Notification Interface for loggingselenium caller. |
LoggingResultsFormatter | The LoggingResultFormatter can be used to log in any format you want to. |
LoggingSelenium | Extends Selenium with ability to log comments and write the log. |
Class Summary | |
---|---|
EventQueuePostProcessor | Post process LoggingBean events queue. |
HtmlResultFormatter | Formats all logging events as HTML. |
LoggingAssert | Wrapped junit4 assertions to enable logging them. |
LoggingBean | All data of a Selenium command already processed by remote-control and other informations to be formatted and logged. |
LoggingCommandProcessor | Logs processed selenium commands (processed via remote-control) with an arbitrary LoggingResultsFormatter. |
LoggingDefaultSelenium | Adds ability to log comments to DefaultSelenium. |
LoggingUtils | Utility Methods to support easy usage from an (junit4 driven) selenium test. |
LoggingWait | Extends the selenium wait class with error handling. |
StackTraceUtils | Utility Methods to support searching in StackStraces related to Selenium and the logging extension. |
TestMetricsBean | Metrics and environment information (user-agent, versions) collected during test run. |
XmlResultFormatter | Formats all logging events as XML. |
Enum Summary | |
---|---|
SeleniumCommandExtensions | Special logging commands to extend CommandProcessor of Selenium. |
Logging extension to Selenium Remote Control.
LoggingResultsFormatter
s:
HtmlResultFormatter
which outputs HTML and XmlResultFormatter
which outputs XML.@Before public void setUp() { final String resultPath = "absolute-path-to-where-your-result-will-be-written/"; final String resultHtmlFileName = resultPath + "result.html"; final String resultEncoding = "UTF-8" loggingWriter = LoggingUtils.createWriter(resultHtmlFileName, resultEncoding); LoggingResultsFormatter htmlFormatter = new HtmlResultFormatter(loggingWriter, resultEncoding); htmlFormatter.setScreenShotBaseUri(""); // this is for linking to the screenshots htmlFormatter.setAutomaticScreenshotPath(resultPath); LoggingCommandProcessor myProcessor = new LoggingCommandProcessor(new HttpCommandProcessor(your-configs), htmlFormatter); selenium = new LoggingDefaultSelenium(myProcessor); selenium.start(); } @After public void tearDown() { selenium.stop(); try { if (null != loggingWriter) { loggingWriter.close(); } } catch (IOException e) { // do nothing } }
|
|||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |