public class

FuncTestWebClientListener

extends Object
implements WebClientListener
java.lang.Object
   ↳ com.atlassian.jira.functest.framework.FuncTestWebClientListener

Class Overview

This counts and execution times the web requests

Summary

Public Constructors
FuncTestWebClientListener()
Public Methods
List<String> getLastResponses()
We keep the previous response around in memory to help with problem diagnostics
long getParseCount()
long getParseTimeNanos()
long getPercentileRequestTime(int percentile)
long getRequestCount()
long getRequestTime()
void requestSent(WebClient src, WebRequest req)
void responseParsed(WebClient src, WebResponse resp, long parseNanos)
void responseReceived(WebClient src, WebResponse resp)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.meterware.httpunit.WebClientListener

Public Constructors

public FuncTestWebClientListener ()

Public Methods

public List<String> getLastResponses ()

We keep the previous response around in memory to help with problem diagnostics

Returns
  • a list of previous response if there are any other wise an EMPTY LIST

public long getParseCount ()

Returns
  • the number of parse invocations

public long getParseTimeNanos ()

Returns
  • the time of parse in nanoseconds

public long getPercentileRequestTime (int percentile)

public long getRequestCount ()

Returns
  • The number of HTTP web requests that have been made

public long getRequestTime ()

Returns
  • the time take in web requests

public void requestSent (WebClient src, WebRequest req)

public void responseParsed (WebClient src, WebResponse resp, long parseNanos)

public void responseReceived (WebClient src, WebResponse resp)