|
IBM Rational Functional Tester Version 8.2.1 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.Object com.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 |
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, 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 ILog
getLogFilename
in class LogExtensionAdapter
public void initLog() throws LogException
initLog
in class LogExtensionAdapter
LogException
fileName
- The name of the html file.public void closeLog()
closeLog
in class LogExtensionAdapter
public void setPrintDateTime(boolean print)
print
- Whether to print the date/time.public void writeLog(ILogMessage message)
writeLog
in class LogExtensionAdapter
message
- The message (i.e. resultCode, eventCode,
note, and details)public boolean viewerKnowsHowToBringUpComparator()
viewerKnowsHowToBringUpComparator
in interface ILog
viewerKnowsHowToBringUpComparator
in class LogAdapter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |