org.apache.commons.latka.event
Interface LatkaEventListener

All Known Subinterfaces:
LatkaEventInfo
All Known Implementing Classes:
LatkaEventPublisher

public interface LatkaEventListener

Event listener used during the execution of Latka tests.

Author:
Rodney Waldhoff, Morgan Delagrange

Method Summary
 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

requestError

public 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.

requestFailed

public 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

public 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.

requestSucceeded

public void requestSucceeded(RequestEvent event)
Invoked if the request succeeds
Parameters:
event - a successful request event

suiteCompleted

public void suiteCompleted(SuiteEvent event)
Invoke when all requests completed.
Parameters:
event - suite event


Copyright © 2001 Apache Software Foundation. Documenation generated September 13 2001.