org.apache.commons.latka.event
Interface LatkaEventListener

All Known Subinterfaces:
LatkaEventInfo
All Known Implementing Classes:
AbstractReporter, DefaultLatkaEventInfo, JUnitEventReporter, LatkaEventPublisher, XMLReporter

public interface LatkaEventListener

Event listener used during the execution of Latka tests.

Version:
$Id: LatkaEventListener.java 155424 2005-02-26 13:09:29Z dirkv $
Author:
Rodney Waldhoff, Morgan Delagrange, dIon Gillard

Method Summary
 void reportMessage(ReportMessageEvent event)
          Invoked if a Latka suite wants to send a message to the report generated for the test.
 void requestError(RequestEvent event)
          Invoked if a request error occurs.
 void requestFailed(RequestEvent event)
          Invoked if the request failed.
 void requestSkipped(RequestEvent event)
          A skipped request.
 void requestSucceeded(RequestEvent event)
          Invoked if the request succeeds
 void suiteCompleted(SuiteEvent event)
          Invoke when all requests completed.
 

Method Detail

requestSucceeded

void requestSucceeded(RequestEvent event)
Invoked if the request succeeds

Parameters:
event - a successful request event

requestFailed

void requestFailed(RequestEvent event)
Invoked if the request failed. A request "failure" is defined as a request that successfully received a reponse from the server, but that response failed validation (threw a ValidationException).

Parameters:
event - a "failed" request event. This request should still have a response, although the response was not expected by the test.

requestSkipped

void requestSkipped(RequestEvent event)
A skipped request. Most Latka suites will skip any further requests inside a session upon the first failed request.

Parameters:
event - a "skipped" request. Skipped requests have no valid response.

requestError

void requestError(RequestEvent event)
Invoked if a request error occurs. A request "error" designates an inability to communicate with the target HTTP server (typically an IOException or a related exception).

Parameters:
event - a request "error" event. This request has no valid response.

reportMessage

void reportMessage(ReportMessageEvent event)
Invoked if a Latka suite wants to send a message to the report generated for the test. Some implementations of the LatkaEventListener may not generate reports.

Parameters:
event - Event containing the report message

suiteCompleted

void suiteCompleted(SuiteEvent event)
Invoke when all requests completed.

Parameters:
event - suite event


Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.