com.atlassian.jira.functest.framework
Class FuncTestWebClientListener

java.lang.Object
  extended by com.atlassian.jira.functest.framework.FuncTestWebClientListener
All Implemented Interfaces:
com.meterware.httpunit.WebClientListener

public class FuncTestWebClientListener
extends Object
implements com.meterware.httpunit.WebClientListener

This counts and execution times the web requests

Since:
v4.0

Constructor Summary
FuncTestWebClientListener()
           
 
Method Summary
 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(com.meterware.httpunit.WebClient src, com.meterware.httpunit.WebRequest req)
           
 void responseParsed(com.meterware.httpunit.WebClient src, com.meterware.httpunit.WebResponse resp, long parseNanos)
           
 void responseReceived(com.meterware.httpunit.WebClient src, com.meterware.httpunit.WebResponse resp)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FuncTestWebClientListener

public FuncTestWebClientListener()
Method Detail

requestSent

public void requestSent(com.meterware.httpunit.WebClient src,
                        com.meterware.httpunit.WebRequest req)
Specified by:
requestSent in interface com.meterware.httpunit.WebClientListener

responseReceived

public void responseReceived(com.meterware.httpunit.WebClient src,
                             com.meterware.httpunit.WebResponse resp)
Specified by:
responseReceived in interface com.meterware.httpunit.WebClientListener

responseParsed

public void responseParsed(com.meterware.httpunit.WebClient src,
                           com.meterware.httpunit.WebResponse resp,
                           long parseNanos)
Specified by:
responseParsed in interface com.meterware.httpunit.WebClientListener

getLastResponses

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

getRequestCount

public long getRequestCount()
Returns:
The number of HTTP web requests that have been made

getRequestTime

public long getRequestTime()
Returns:
the time take in web requests

getParseCount

public long getParseCount()
Returns:
the number of parse invocations

getParseTimeNanos

public long getParseTimeNanos()
Returns:
the time of parse in nanoseconds

getPercentileRequestTime

public long getPercentileRequestTime(int percentile)


Copyright © 2002-2013 Atlassian. All Rights Reserved.