|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.team.fvt.tests.performance.PerfManager
public class PerfManager
Performance Manager class, for gathering and storing the information for multiple performance page/action result.
The performance manager class gathers and stores the information for multiple performance results. Gathering of the results is called from a general instrumentation in the ClmWebPage where step, test, and page/element details are recorded along with the response time the action took. All of this data is managed inside of the performance manager class and at the end of the run written out to a csv file.
PERFORMANCE_ENABLED
: Optional user provided value to enable/disable performance gathering.PERFORMANCE_FILE_LOCATION
: Optional user provided value to set the csv file output location/file.PERFORMANCE_DEBUG_ENABLED
: Optional user provided value to enable/disable performance debug messages/images.PERFORMANCE_DEBUG_LOCATION
: Optional user provided value to set the debug folder output location.PERFORMANCE_DELAY_WINDOW
: Optional user provided value to change the default delay window during client monitoring.PERFORMANCE_MAXIMUM_DELAY_WINDOW
: Optional user provided value to change the default maximum delay window during client monitoring.taskDataWriter
:Task data writer for writing the final results to file.debugLogWriter
:Debug log writer for writing debug messages to file.perfResults
: ArrayList of the PerfResults gathered by the manager.stepName
: step name for the current result.testName
: test name for the current result.userActionName
: optional user defined action name for the current result.regressionType
: the type of regression measurement (server/client) which should be measured.regressionTypeLocked
: boolean which indicates if the regression type is locked and should not be changed.clientTimer
: client stop watch timer.serverTimer
: server stop watch timer.clientLoadTime
: current client load time measurement.serverLoadTime
: current server load time measurement.timeDateStamp
: time/date stamp taken at start of server measurement.pageLoading
: boolean which indicates if the current page is loading.
Nested Class Summary | |
---|---|
static class |
PerfManager.RegressionType
|
Field Summary | |
---|---|
static boolean |
PERFORMANCE_ENABLED
|
static int |
PERFORMANCE_LOOPS
|
static java.lang.String |
USER_ACTION_NOT_PROVIDED
|
Method Summary | |
---|---|
void |
addPerfResult(java.lang.String pageTitle,
java.lang.String url)
Add a new performance timing result to the PerfManager. |
void |
close()
Close the writers |
static PerfManager |
createInstance(WebBrowser browser)
Create an instance of the performance manager using the given browser. |
void |
endServerTimer()
End serverTimer and properly set serverLoadTime to the total time recorded. |
java.lang.String |
getUserActionName()
Get the userActionName |
void |
loadClient()
Close the writer when writing is complete. |
void |
reset()
Reset the user action name, regression type, load times, and timers. |
void |
resetRegressionType()
Reset the regression type and clear the lock. |
void |
setPageLoading(boolean loadingState)
Set pageLoading to true/false |
void |
setRegressionType(PerfManager.RegressionType regressionType,
boolean override)
Set the default regression type to provided regressionType. |
void |
setStepName(java.lang.String currentStepName)
Set step name to keep track of the current step name. |
void |
setTestName(java.lang.String currentTestName)
Set test name to keep track of the current test name. |
void |
setUserActionName(java.lang.String name)
Set userActionName to provided name |
void |
startServerTimer()
Start serverTimer if page is NOT loading |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String USER_ACTION_NOT_PROVIDED
public static final boolean PERFORMANCE_ENABLED
public static final int PERFORMANCE_LOOPS
Method Detail |
---|
public static PerfManager createInstance(WebBrowser browser)
Warning: this method returns null
if the performance
are not activated during the scenario execution (see PERFORMANCE_ENABLED
).
browser
- The browser using the current performance manager
PerfManager
or null
if the performances are not managed during the scenario execution.public void addPerfResult(java.lang.String pageTitle, java.lang.String url)
public void close()
public void endServerTimer()
public java.lang.String getUserActionName()
String
.public void loadClient()
public void reset()
public void resetRegressionType()
public void setRegressionType(PerfManager.RegressionType regressionType, boolean override)
regressionType
- : Regression type to apply.override
- : True will override and lock the regression type,
while false will only change the regression type if it is not locked.public void setPageLoading(boolean loadingState)
public void setStepName(java.lang.String currentStepName)
public void setTestName(java.lang.String currentTestName)
public void setUserActionName(java.lang.String name)
public void startServerTimer()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |