public class ExecutionHistoryLog extends LogExtensionAdapter
LogExtensionAdapter.ImageMetadata| Modifier and Type | Field and Description |
|---|---|
static java.lang.String[] |
RftExecutionHistoryEventTypes |
MAX_IMAGE_DIMENSIONASTERISK, DOT, spaceDelimeterKEY_POST_EXECUTION_END_MESSAGE, KEY_PRE_EXECUTION_START_MESSAGE, MASKED_PROP_GUI_ACTION_METHOD_ARGS, MASKED_PROP_GUI_ACTION_METHOD_NAME, PROP_ACTUAL, PROP_ADDITIONAL_INFO, PROP_APP_TYPE, PROP_APPLICATION, PROP_APPTYPE, PROP_ARGUMENTS, PROP_ASSIGNEDVARIABLE_NAME, PROP_BASELINE, PROP_BUFFERED_SNAPSHOT, PROP_DATAPOOL_STORE, PROP_DEFAULT_SCRIPT_DATAPOOL_NAME, PROP_ELAPSED_TIME, PROP_EXCEPTION_CONTEXT, PROP_EXCEPTION_MESSAGE, PROP_EXCEPTION_NAME, PROP_EXCEPTION_STACK, PROP_EXECUTABLE, PROP_EXPECTED, PROP_FAILURE_DESCRIPTION, PROP_ITERATION_COUNT, PROP_LINENUMBER, PROP_NAME, PROP_PROPERTY_NAME, PROP_PROPERTY_VALUE, PROP_SCREEN_SNAPSHOT, PROP_SCRIPT_ID, PROP_SCRIPT_NAME, PROP_SIMPLIFIEDSCRIPT_GRPNAME, PROP_SIMPLIFIEDSCRIPT_LINE, PROP_SIMPLIFIEDSCRIPT_LINENUMBER, PROP_TESTCASE_DESCRIPTION, PROP_TESTCASE_NAME, PROP_USER_SCREEN_SNAPSHOT, PROP_VP_TYPE, PROP_WORKINGDIRECTORY, SCREEN_SNAPSHOT_FILE_BASE, SCREEN_SNAPSHOT_FILE_EXT, SCREEN_SNAPSHOT_FILE_NAME, USER_SCREEN_SNAPSHOT_FILE_BASE, VP_DIFF_TYPE, VP_IMAGE_ACT, VP_IMAGE_EXP, VP_JSON_FILE_PATH, VP_TYPE_ALPHA_NUM, VP_TYPE_CLIPBOARD, VP_TYPE_FILE_COMPARE, VP_TYPE_FILE_EXIST, VP_TYPE_FULL_IMAGE, VP_TYPE_MENU, VP_TYPE_MODULE_EXIST, VP_TYPE_OBJECT_DATA, VP_TYPE_OBJECT_PROP, VP_TYPE_OCR_IMAGE, VP_TYPE_REGION_IMAGE, VP_TYPE_WEBSITE_COMPARE, VP_TYPE_WEBSITE_SCAN, VP_TYPE_WINDOW_EXIST, VP_TYPE_WINDOW_IMAGEDISABLE_LOGGING, EVENT_APPLICATION_END, EVENT_APPLICATION_START, EVENT_APPLICATON_ACTION, EVENT_CALL_SCRIPT, EVENT_CONFIGURATION, EVENT_CUSTOM, EVENT_EXPORT, EVENT_GENERAL, EVENT_SCRIPT_END, EVENT_SCRIPT_START, EVENT_TIMER_END, EVENT_TIMER_START, EVENT_VP, LOG_DISABLE_GUI_ACTION, LOG_DISABLE_GUI_SNAPSHOT_ACTION, LOG_ENABLE_GUI_ACTION, LOG_ENABLE_GUI_SNAPSHOT_ACTION, LOG_FAILURE, LOG_FAILURES, LOG_FAILURES_WARNINGS, LOG_FAILURES_WARNINGS_PASS, LOG_FAILURES_WARNINGS_PASS_INFO, LOG_INFORMATION, LOG_PASS, LOG_WARNING| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
applicationStart, applicationStart, callScript, close, configuration, createApplicationStartMessage, createConfigurationMessage, createTestResultMessage, createTimerEndMessage, createTimerStartMessage, createVPMessage, exception, exception, getLocationForImagePersistance, getTimestamp, isVisualStudioPlayback, open, persistImage, scriptEnd, scriptStart, setLogDirectory, setLogName, timerEnd, timerStart, write, writeappendLogProperties, applicationStart, createApplicationStartMessage, createAssignActionMessage, createGUIActionMessage, createGUIActionMessage, createLogParticipantMessage, createMessage, createMessage, createTimerEndMessage, ensureLogDirectory, getCurrentDatapool, getCurrentLogFilter, getCurrentScriptResult, getExportLogDirectory, getExportReportParam, getLastScriptResult, getLogDirectory, getLogName, getLogType, getNextUserSnapshotName, getNextUserSnapshotNumber, getScreenShotFile, getScriptName, getScriptPlaybackParams, getSimplifiedScriptElement, getSSGroupForLine, getSummaryEvent, getTestResult, getTimerAndEnd, getTimerValue, info, isLoggingEnabled, isLogGuiActionEnabled, isLogScreenSnapshotActionEnabled, logRootException, processPostGuiAction, processPreGuiAction, setCurrentLogFilter, setExportLogDirectory, setExportReportParam, setLogGUIAction, setLogScreenSnapshotAction, setLogType, setScriptPlaybackParams, setTopResult, shouldBringUpLog, timerEnd, writeGUIActionopenLogViewerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitopenLogViewerpublic static final java.lang.String[] RftExecutionHistoryEventTypes
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)public static ExecutionHistoryLog getActiveLog()
public java.lang.String getLogFilename()
getLogFilename in interface ILoggetLogFilename in class LogExtensionAdapterpublic 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