webtester.packages.config
Class globalConfig

java.lang.Object
  |
  +--webtester.packages.config.globalConfig

public class globalConfig
extends java.lang.Object

Contains global configuration information, which is information that isn't specific to test cases.

Author:
Aaron DeLong

Field Summary
private  java.lang.String sConfigFile
          The configuration file used.
private  java.lang.String sDefaultNotificationAddress
          The address which receives all notifications sent by the application.
private  java.lang.String sFromAddress
          The from address used when sending email notifications.
private  java.lang.String sLoggingPath
          The path to use for writing logfiles.
private  java.lang.String sMailServer
          The mailserver to use for sending notifications.
private  java.lang.String sNotificationsEnabled
          Indicates whether notifications are enabled or disabled.
private  java.lang.String sNumberOfThreads
          The number of threads to use when executing test cases.
private  java.lang.String sRandomOrder
          Determines if test case are executed in random order.
private  java.lang.String sRunOnlyOnce
          Whether the application should run test cases once, or in a continuous loop.
private  java.lang.String sRunTime
          The time, in minutes, to execute the test case.
private  java.lang.String sSpamCount
          The number of messages sent before the application considers itself to be spamming.
private  java.lang.String sStatsEmail
          Determines if a statistics email will be sent when the application has finished executing.
private  java.lang.String sStatsReporting
          Indicates whether statisitics reporting to the webtester website is allowed.
 
Constructor Summary
globalConfig()
           
 
Method Summary
 java.lang.String getConfigFile()
          Return the filename of the config file being used.
 java.lang.String getDefaultNotificationAddress()
          Retrieve the default notification address.
 java.lang.String getFromAddress()
          Return the "FROM" address to be used for notifications.
 java.lang.String getLoggingPath()
          Return a value which indicates where logfiles will be written.
 java.lang.String getMailServer()
          Return the mail server to be used for sending notifications.
 java.lang.String getNotificationsEnabled()
          Return the value which indiciates if notifications are enabled.
 int getNumberOfThreads()
          Return the number of threads the application can use.
 java.lang.String getRandomOrder()
          Return a value which indicates if the test cases are executed in random order.
 java.lang.String getRunOnlyOnce()
          Return the value which indicates whether test cases should be executed only once.
 java.lang.String getRunTime()
          Retrieve the amount of time the test cases should be executed.
 int getSpamCount()
          Return a value which indicates how many notifications can be sent.
 java.lang.String getStatsEmail()
          Return the value which indicates whether an email containing statistical data should be sent.
 java.lang.String getStatsReporting()
          Return the value for statistics reporting.
 void setConfigFile(java.lang.String sFile)
          Set the filename of the config file being used.
 void setDefaultNotificationAddress(java.lang.String sAddress)
          Set the address which receives all notifications sent by the application.
 void setFromAddress(java.lang.String sAddr)
          Set the "FROM" address to be used when notifications are sent.
 void setLoggingPath(java.lang.String sPath)
          Set the value which indicates where logfiles will be written.
 void setMailServer(java.lang.String sServer)
          Set the mail server that should be used for sending notifications.
 void setNotificationsEnabled(java.lang.String sStr)
          Set the value which indicates whether notifications are enabled.
 void setNumberOfThreads(java.lang.String sNum)
          Set the number of threads the application can use.
 void setRandomOrder(java.lang.String sStr)
          Set the value which indicates if the test cases are executed in random order.
 void setRunOnlyOnce(java.lang.String sStr)
          Set a string which indicates whether test cases should be executed only once.
 void setRunTime(java.lang.String sStr)
          Set the amount of time test cases should be executed.
 void setSpamCount(java.lang.String sCount)
          Set a value which indicates how many notifications can be sent.
 void setStatsEmail(java.lang.String sValue)
          Set the value which indicates whether an email containing statistical data should be sent.
 void setStatsReporting(java.lang.String sValue)
          Set the value which indicates if statistics can be reported.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sDefaultNotificationAddress

private java.lang.String sDefaultNotificationAddress
The address which receives all notifications sent by the application.


sNumberOfThreads

private java.lang.String sNumberOfThreads
The number of threads to use when executing test cases.


sRunOnlyOnce

private java.lang.String sRunOnlyOnce
Whether the application should run test cases once, or in a continuous loop.


sMailServer

private java.lang.String sMailServer
The mailserver to use for sending notifications.


sLoggingPath

private java.lang.String sLoggingPath
The path to use for writing logfiles.


sSpamCount

private java.lang.String sSpamCount
The number of messages sent before the application considers itself to be spamming.


sFromAddress

private java.lang.String sFromAddress
The from address used when sending email notifications.


sNotificationsEnabled

private java.lang.String sNotificationsEnabled
Indicates whether notifications are enabled or disabled.


sStatsReporting

private java.lang.String sStatsReporting
Indicates whether statisitics reporting to the webtester website is allowed.


sStatsEmail

private java.lang.String sStatsEmail
Determines if a statistics email will be sent when the application has finished executing.


sRandomOrder

private java.lang.String sRandomOrder
Determines if test case are executed in random order.


sConfigFile

private java.lang.String sConfigFile
The configuration file used.


sRunTime

private java.lang.String sRunTime
The time, in minutes, to execute the test case.

Constructor Detail

globalConfig

public globalConfig()
Method Detail

setDefaultNotificationAddress

public void setDefaultNotificationAddress(java.lang.String sAddress)
Set the address which receives all notifications sent by the application.

Parameters:
sAddress - the email address which should receive all notifications

getDefaultNotificationAddress

public java.lang.String getDefaultNotificationAddress()
Retrieve the default notification address.

Returns:
a String which contains the email address that should receive all notifications

setNotificationsEnabled

public void setNotificationsEnabled(java.lang.String sStr)
Set the value which indicates whether notifications are enabled.

Parameters:
sStr - the value retrieved from the configuration file

getNotificationsEnabled

public java.lang.String getNotificationsEnabled()
Return the value which indiciates if notifications are enabled.

Returns:
the value retrieved from the configuration file

setNumberOfThreads

public void setNumberOfThreads(java.lang.String sNum)
Set the number of threads the application can use.

Parameters:
sNum - a String representing the number of threads that can be used

getNumberOfThreads

public int getNumberOfThreads()
Return the number of threads the application can use.

Returns:
an integer which indicates how many threads the application can use

setRunOnlyOnce

public void setRunOnlyOnce(java.lang.String sStr)
Set a string which indicates whether test cases should be executed only once.

Parameters:
sStr - a String which, if "NO", indicates that test cases should run in an infinite loop.

getRunOnlyOnce

public java.lang.String getRunOnlyOnce()
Return the value which indicates whether test cases should be executed only once.

Returns:
a String which, if "NO", indicates that the test cases should run in an infinite loop

setMailServer

public void setMailServer(java.lang.String sServer)
Set the mail server that should be used for sending notifications.

Parameters:
sServer - the mail server that should be used for sending notifications

getMailServer

public java.lang.String getMailServer()
Return the mail server to be used for sending notifications.

Returns:
a String which indicates the mail server to be used

setLoggingPath

public void setLoggingPath(java.lang.String sPath)
Set the value which indicates where logfiles will be written.

Parameters:
sPath - a String which indicates the path where logfiles will be written

getLoggingPath

public java.lang.String getLoggingPath()
Return a value which indicates where logfiles will be written.

Returns:
a String which indicates the path where logfiles will be written

setSpamCount

public void setSpamCount(java.lang.String sCount)
Set a value which indicates how many notifications can be sent.

Parameters:
sCount - the number of notifications which can be sentg

getSpamCount

public int getSpamCount()
Return a value which indicates how many notifications can be sent.

Returns:
an Integer which specifies the number of notifications that can be sent

setFromAddress

public void setFromAddress(java.lang.String sAddr)
Set the "FROM" address to be used when notifications are sent.

Parameters:
sAddr - the "FROM" address that appears in email notifications

getFromAddress

public java.lang.String getFromAddress()
Return the "FROM" address to be used for notifications.

Returns:
a String that contains the from address

setStatsReporting

public void setStatsReporting(java.lang.String sValue)
Set the value which indicates if statistics can be reported.

Parameters:
sValue - indicates whether the stats reporting feature is enabled

getStatsReporting

public java.lang.String getStatsReporting()
Return the value for statistics reporting.

Returns:
a String which represents the value for reporting statistics

setStatsEmail

public void setStatsEmail(java.lang.String sValue)
Set the value which indicates whether an email containing statistical data should be sent.

Parameters:
sValue - if ON, indicates that the feature is enabled

getStatsEmail

public java.lang.String getStatsEmail()
Return the value which indicates whether an email containing statistical data should be sent.

Returns:
a String which contains the value provided in the configuration file

setConfigFile

public void setConfigFile(java.lang.String sFile)
Set the filename of the config file being used.

Parameters:
sFile - the name of the config file being used

getConfigFile

public java.lang.String getConfigFile()
Return the filename of the config file being used.

Returns:
a String which represents the path and filename of the configuration file

getRandomOrder

public java.lang.String getRandomOrder()
Return a value which indicates if the test cases are executed in random order.

Returns:
a String which indicates if the test cases are executed in random order

setRandomOrder

public void setRandomOrder(java.lang.String sStr)
Set the value which indicates if the test cases are executed in random order.

Parameters:
sStr - the value which indicates if the test cases are executed in random order

getRunTime

public java.lang.String getRunTime()
Retrieve the amount of time the test cases should be executed.

Returns:
a String that specifies how long the test cases should be executed

setRunTime

public void setRunTime(java.lang.String sStr)
Set the amount of time test cases should be executed.

Parameters:
sStr - a String that specifies how long test cases should be executed