|
IBM Rational Functional Tester Version 8.1.1000 IBM Rational Functional Tester API Reference Project Version 2.3 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.rational.test.ft.services.SimpleLogAdapter
com.rational.test.ft.services.LogAdapter
com.rational.test.ft.services.LogExtensionAdapter
com.rational.test.ft.services.ExecutionHistoryLog
public class ExecutionHistoryLog
Controls output of log messages into a Hyades Execution History stream. This output is generated in several ways:
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.rational.test.ft.services.LogExtensionAdapter |
|---|
LogExtensionAdapter.ImageMetadata |
| Field Summary | |
|---|---|
static java.lang.String[] |
RftExecutionHistoryEventTypes
|
| Fields inherited from class com.rational.test.ft.services.LogExtensionAdapter |
|---|
MAX_IMAGE_DIMENSION |
| Fields inherited from class com.rational.test.ft.services.LogAdapter |
|---|
spaceDelimeter |
| Fields inherited from interface com.rational.test.ft.services.ISimpleLog |
|---|
DISABLE_LOGGING, EVENT_APPLICATION_END, EVENT_APPLICATION_START, EVENT_APPLICATON_ACTION, EVENT_CALL_SCRIPT, EVENT_CONFIGURATION, EVENT_GENERAL, EVENT_SCRIPT_END, EVENT_SCRIPT_START, EVENT_TIMER_END, EVENT_TIMER_START, EVENT_VP, LOG_DISABLE_GUI_ACTION, LOG_ENABLE_GUI_ACTION, LOG_FAILURE, LOG_FAILURES, LOG_FAILURES_WARNINGS, LOG_FAILURES_WARNINGS_PASS, LOG_FAILURES_WARNINGS_PASS_INFO, LOG_INFORMATION, LOG_PASS, LOG_WARNING |
| Constructor Summary | |
|---|---|
ExecutionHistoryLog()
|
|
ExecutionHistoryLog(IExecutionHistoryLog executionHistory)
Construct an Execution History type object. |
|
ExecutionHistoryLog(java.lang.String project,
java.lang.String script,
java.lang.String logName,
java.lang.String logDirectory)
Construct an Execution History type object. |
|
| Method Summary | |
|---|---|
void |
closeLog()
This method closes the html file. |
static ExecutionHistoryLog |
getActiveLog()
|
java.lang.String |
getLogFilename()
Returns the name of the log filename including the file extension but no directory. |
void |
initLog()
This method opens an html file with the specified name. |
void |
setPrintDateTime(boolean print)
Set whether to print the date/time in the log entry |
boolean |
viewerKnowsHowToBringUpComparator()
This answers yes/no whether the log-viewer associated with this log knows how to bring up our comparator. |
void |
writeLog(ILogMessage message)
Write a message into the log. |
| Methods inherited from class com.rational.test.ft.services.LogExtensionAdapter |
|---|
applicationStart, applicationStart, callScript, close, configuration, createApplicationStartMessage, createConfigurationMessage, createTestResultMessage, createTimerEndMessage, createTimerStartMessage, createVPMessage, exception, exception, getScriptName, getTimestamp, open, persistImage, scriptEnd, scriptStart, setLogDirectory, setLogName, timerEnd, timerStart, write, write |
| Methods inherited from class com.rational.test.ft.services.SimpleLogAdapter |
|---|
openLogViewer |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.rational.test.ft.services.ISimpleLog |
|---|
openLogViewer |
| Field Detail |
|---|
public static final java.lang.String[] RftExecutionHistoryEventTypes
| Constructor Detail |
|---|
public ExecutionHistoryLog()
public ExecutionHistoryLog(java.lang.String project,
java.lang.String script,
java.lang.String logName,
java.lang.String logDirectory)
script - The script name (optionally includes package(s))logname - The subdirectory under logs we will write to (defaults to scriptname if null is passed)public ExecutionHistoryLog(IExecutionHistoryLog executionHistory)
script - The script name (optionally includes package(s))logname - The subdirectory under logs we will write to (defaults to scriptname if null is passed)| Method Detail |
|---|
public static ExecutionHistoryLog getActiveLog()
public java.lang.String getLogFilename()
getLogFilename in interface ILoggetLogFilename in class LogExtensionAdapter
public void initLog()
throws LogException
initLog in class LogExtensionAdapterLogExceptionfileName - The name of the html file.public void closeLog()
closeLog in class LogExtensionAdapterpublic void setPrintDateTime(boolean print)
print - Whether to print the date/time.public void writeLog(ILogMessage message)
writeLog in class LogExtensionAdaptermessage - The message (i.e. resultCode, eventCode,
note, and details)public boolean viewerKnowsHowToBringUpComparator()
viewerKnowsHowToBringUpComparator in interface ILogviewerKnowsHowToBringUpComparator in class LogAdapter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||