|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--webtester.packages.stats.executionStats
Gathers runtime statistics which, if enabled, will be sent to the default notification address.
Field Summary | |
private globalConfig |
gConfig
Contains global configuration information. |
private java.util.HashMap |
hTestCaseBeginTimes
Contains times at which test cases were started. |
private java.util.HashMap |
hTestCaseEndTimes
Contains times at which test cases finished. |
private java.util.HashMap |
hUrlBeginTimes
Contains times when URLs were called. |
private java.util.HashMap |
hUrlBytesReturned
Contains the bytes returned for URLs. |
private java.util.HashMap |
hUrlEndTimes
Contains times when URLs finished responding. |
private static int |
iTimeConversion
Used to convert time from milliseconds to seconds. |
private testCaseConfig |
tConfig
Contains test case specific configuration information. |
Constructor Summary | |
executionStats(globalConfig gconfig,
testCaseConfig tconfig)
The constructor, which takes the configuration objects as arguments. |
Method Summary | |
void |
sendStatsEmail()
Send email which contains the statistics email. |
void |
setTestCaseBeginTime(java.lang.String sDescription)
Records the time at which the test case started executing. |
void |
setTestCaseEndTime(java.lang.String sDescription)
Records the time at which the test case stopped executing. |
void |
setUrlBeginTime(java.lang.String sURL)
Records the time at which the URL is being accessed. |
void |
setUrlBytesReturned(java.lang.String sURL,
int bytes)
Record the number of bytes read when the URL was accessed. |
void |
setUrlEndTime(java.lang.String sURL)
Records the time at which the URL returned all response data. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private java.util.HashMap hTestCaseBeginTimes
private java.util.HashMap hTestCaseEndTimes
private java.util.HashMap hUrlBeginTimes
private java.util.HashMap hUrlEndTimes
private java.util.HashMap hUrlBytesReturned
private globalConfig gConfig
private testCaseConfig tConfig
private static final int iTimeConversion
Constructor Detail |
public executionStats(globalConfig gconfig, testCaseConfig tconfig)
gconfig
- contains global configuration informationtconfig
- contains test case specific configuration informationMethod Detail |
public void setTestCaseBeginTime(java.lang.String sDescription)
sDescription
- the description of the test case being executedpublic void setTestCaseEndTime(java.lang.String sDescription)
sDescription
- the description of the test case that was executedpublic void setUrlBeginTime(java.lang.String sURL)
sURL
- the URL being accessedpublic void setUrlBytesReturned(java.lang.String sURL, int bytes)
sURL
- the URL that was recently accessedbytes
- the number of bytes read when the URL was accessedpublic void setUrlEndTime(java.lang.String sURL)
sURL
- the URL that was accessedpublic void sendStatsEmail()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |