Package: geb.report

## [Groovy] Interface Reporter

-     interface Reporter

  A reporter can take a snapshot of the browser state, using a given name as the base for whatever it produces. A common usage of a reporter is to take snapshots before and after test methods.

  See Also:
    ReporterSupport
    ScreenshotReporter

- - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `abstract void` | `addListener(ReportingListener listener)` Registers an object to be notified when a report is taken.
    `` | `abstract void` | `writeReport(ReportState reportState)` Takes a snapshot of the given browser's state, using the given name as the base name for anything (e.g. file) that is produced.

- - ### Method Detail

    - #### abstract void addListener(ReportingListener listener)

      Registers an object to be notified when a report is taken. Adding a listener that has previously been added (based on equals()) is a noop.

    - #### abstract void writeReport(ReportState reportState)

      Takes a snapshot of the given browser's state, using the given name as the base name for anything (e.g. file) that is produced.