Groovy Documentation

geb.report
[Groovy] Interface ReportingListener


interface ReportingListener

Gets notified whenever a report is taken. Reporting listeners are notified by reporters whenever reports are taken. This can be used to output links to report files which is sometimes utilized by continuous integration servers.

They can be registered via the config mechanism…

 reportingListener = new ReportingListener() {
   void onReport(Reporter reporter, ReportState reportState, List reportFiles) {
 	   reportFiles.each {
 	     println "Report taken: $it.absolutePath"
 	   }
   }
 }
 


Method Summary
void onReport(Reporter reporter, ReportState reportState, List reportFiles)

Called when a report is taken.

 

Method Detail

onReport

void onReport(Reporter reporter, ReportState reportState, List reportFiles)
Called when a report is taken.
Parameters:
reporter - The reporter instance that created the report.
reportState - Information about what was reported on.
reportFiles - The report files that the reporter created.


 

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