|
Jetif v1.8.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjetif.Framework
This Framework class contains several methods to access
the environment properties of the Jetif framework and the logger object.
| Field Summary | |
static String |
LOGGER_TYPE
The property name of the log type: jetif.log. |
static String |
OUTPUT_DIRECTORY
The property name of the output directory: jetif.output.dir. |
static String |
PROXY_AGENT_URI
The property name of proxy agent URI. |
static String |
TEST_CLASS_PATH
The property name of extra class path for Jetif: jetif.class.path. |
| Method Summary | |
static void |
cleanup()
Cleanup the Jetif framework environment. |
static SpecLoader |
createSpecLoader(String type)
Create a spec loader instance according specified type. |
static ClassLoader |
getClassLoader()
Returns the class loader for testing. |
static Logger |
getLogger()
Returns the logger of this framework. |
static String |
getMessage(String id)
Get a localized message from resource bundle. |
static Properties |
getProperties()
Returns Jetif framework properties. |
static String |
getProperty(String key)
Returns a property of Jetif framework |
static String |
getProperty(String key,
String defaultValue)
Returns a property of Jetif framework. |
static void |
init(Properties props)
Initialize the Jetif framework object with a properties object. |
static void |
setProperty(String key,
String value)
Set property of Jetif framework. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String LOGGER_TYPE
public static final String OUTPUT_DIRECTORY
public static final String TEST_CLASS_PATH
public static final String PROXY_AGENT_URI
| Method Detail |
public static void init(Properties props)
throws FrameworkException
jetif.log The logger type, can be "none", "text" or "log4j". jetif.output.dir The output directory of results, logs. jetif.class.path The classpath used to load test classes. jetif.listener.type The result listener type, can be "text", "xml" or "html". jetif.listener.date.format The date format for test listener recording.Below properties will be applicable if the jetif.log is set to "text".
jetif.log.file The log file name. jetif.log.encoding The log encoding.Below property will be applicable if the jetif.log is set to "log4j".
log4j.configuration The configuration file for Log4J.
props - the environment properties of the framework.
FrameworkExceptionpublic static void cleanup()
public static void setProperty(String key,
String value)
key - the key of the propertyvalue - the value of the propertypublic static String getProperty(String key)
key - the key of the property
public static String getProperty(String key,
String defaultValue)
key - the key of the propertydefaultValue - the default value of the property
public static Properties getProperties()
public static Logger getLogger()
public static SpecLoader createSpecLoader(String type)
type - the spec loader type
public static ClassLoader getClassLoader()
public static String getMessage(String id)
id - the message id.
|
Jetif v1.8.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||