Groovy Documentation

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


Method Summary
void addListener(ReportingListener listener)

Registers an object to be notified when a report is taken.

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

addListener

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.
Parameters:
listener


writeReport

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.


 

Groovy API Documentation for Geb 0.9.3 - Licensed under the Apache License, Version 2.0 - http://www.gebish.org