|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--webtester.packages.stats.usageStats
Gathers basic usage statistics and sends them to a hard-coded URL at sourceforge.net.
Field Summary | |
private long |
appExecBeginTime
The time at which the application started. |
private long |
appExecEndTime
The time at which the application finished executing. |
private float |
avgUrlsPerTestCase
The average number of URLs per test case. |
private boolean |
bRunOnlyOnce
Indicates whether the run only once parameter was set. |
private globalConfig |
gConfig
The global configuration class. |
private static int |
iTimeConversion
Used to convert from milliseconds to seconds. |
private int |
numTestCases
The number of test cases executed. |
private int |
numThreads
The number of threads used. |
private testCaseConfig |
tConfig
The test case configuration class. |
private float |
totalAppExecTime
The total time it took for the application to execute. |
private int |
totalURLs
The total URLs called. |
Constructor Summary | |
usageStats(globalConfig configGlobal,
testCaseConfig configTest)
Constructor, which takes the configuration classes as arguments. |
Method Summary | |
float |
getApplicationExecTime()
Return the total time it took for the application to execute. |
private float |
getAverageURLs()
Get the average number of URLs per test case. |
void |
getBasicStats()
Retrieves basic configuration information. |
private void |
getTotalURLs()
Get the total number of URLs in the configuration file. |
void |
sendStatistics()
Send the statistics information by calling the necessary URL. |
void |
setApplicationBeginTime()
Records the time at which the application started executing. |
void |
setApplicationEndTime()
Records the time at which the application stopped executing. |
void |
setRunOnlyOnce(boolean bVal)
Set the value which indicates if the application is running continuously or only once. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private int numTestCases
private int numThreads
private float avgUrlsPerTestCase
private int totalURLs
private long appExecBeginTime
private long appExecEndTime
private float totalAppExecTime
private boolean bRunOnlyOnce
private globalConfig gConfig
private testCaseConfig tConfig
private static final int iTimeConversion
Constructor Detail |
public usageStats(globalConfig configGlobal, testCaseConfig configTest)
configGlobal
- an instance of the globalConfig classconfigTest
- an instance of the testCaseConfig classMethod Detail |
public void setApplicationBeginTime()
public void setApplicationEndTime()
public float getApplicationExecTime()
public void getBasicStats()
private float getAverageURLs()
private void getTotalURLs()
public void setRunOnlyOnce(boolean bVal)
bVal
- boolean value which indicates TRUE or FALSE for this conditionpublic void sendStatistics()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |