|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.team.fvt.tests.performance.PerfResult
public class PerfResult
Performance Result class, for storing the information on a single performance page/action result.
The performance result class stores the information for a "unique" page/action and the performance timings gathered. Each individual PerfResult has a set of properties (titles and other identifier information) and a perfTimeList, which is a string of all the performance response times gathered for this particular PerfResult.
stepName
: step name for the current resulttestName
: test name for the current resulturl
: url for the current resultpageTitle
: page title for the current resultuserActionName
: optional user defined action name for the
current resultclientTimes
: client times; measured after server has finished sending data.serverTimes
: server times; measured from first client click till server finishes sending data.regressionTimes
: regression times; measurement based off the regressionType. If the regressionType
is "server" then the regressionTimes include only server time. If the regressionType is "client" then the
regressionTimes include client+server time.timeDateStamps
: time/date stamps taken at the start of the user action (start of server time measurment)regressionType
: the type of regression measurement (server/client) which should be measured.
Nested Class Summary | |
---|---|
static class |
PerfResult.TimeType
|
Constructor Summary | |
---|---|
PerfResult(java.lang.String stepName,
java.lang.String testName,
java.lang.String url,
java.lang.String pageTitle,
java.lang.String userActionName,
PerfManager.RegressionType regressionType,
double serverTime,
double clientTime,
long timeDateStamp)
|
Method Summary | |
---|---|
void |
addResponseTime(double serverTime,
double clientTime,
long timeDateStamp)
Add a new response time to the perfTimeList for the perf result |
boolean |
doesResultMatch(java.lang.String stepNameInput,
java.lang.String testNameInput,
java.lang.String pageTitleInput,
java.lang.String urlInput,
java.lang.String userActionNameInput)
Check if the current result matches the input values. |
java.lang.Double |
getLastRegressionTime()
Get the last regression time |
java.lang.String |
getLastTimeDateStamp()
Get the last timeDateStamp |
java.lang.String |
getPageTitle()
Get the pageTitle |
PerfManager.RegressionType |
getRegressionType()
Get the regression type |
static double |
getRegressionValue(double serverTime,
double clientTime,
PerfManager.RegressionType regType)
Get the regression value based off the regression type |
java.lang.String |
getStepName()
Get the stepName |
java.lang.String |
getTestName()
Get the testName |
java.lang.String |
getUrl()
Get url |
java.lang.String |
getUserActionName()
Get the userActionName |
static java.lang.String |
regressionTypeToString(PerfManager.RegressionType regressionType)
Returns the regressionType as a string |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PerfResult(java.lang.String stepName, java.lang.String testName, java.lang.String url, java.lang.String pageTitle, java.lang.String userActionName, PerfManager.RegressionType regressionType, double serverTime, double clientTime, long timeDateStamp)
Method Detail |
---|
public void addResponseTime(double serverTime, double clientTime, long timeDateStamp)
public boolean doesResultMatch(java.lang.String stepNameInput, java.lang.String testNameInput, java.lang.String pageTitleInput, java.lang.String urlInput, java.lang.String userActionNameInput)
stepNameInput
- : String of the stepName to match.testNameInput
- : String of the testName to match.pageTitleInput
- : String of the pageTitle to match.urlInput
- : String of the url to match.userActionNameInput
- : String of the userActionName to match.
Boolean
.public java.lang.String getLastTimeDateStamp()
String
.public java.lang.Double getLastRegressionTime()
Double
.public java.lang.String getPageTitle()
String
.public PerfManager.RegressionType getRegressionType()
PerfManager.RegressionType
.public static double getRegressionValue(double serverTime, double clientTime, PerfManager.RegressionType regType)
Double
.public java.lang.String getStepName()
String
.public java.lang.String getTestName()
String
.public java.lang.String getUrl()
String
.public java.lang.String getUserActionName()
String
.public static java.lang.String regressionTypeToString(PerfManager.RegressionType regressionType)
String
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |