Log Output
This topic describes how to configure the log information such as, log
file location, logging level and output format using the
testexecute.ini
file. For information on configuring log output,
such as log file location, logging level and output format, see
Configuration.
HTML log output
The HTML log file consists of the following information:
-
Colour coded copies of the script file commands: The
script commands are displayed in the following colours based on the status:
-
RED: Failed tests.
-
GREEN: Passed tests.
-
BLUE: Other tests.
-
Header information:
-
Synopsis of the test at the header region to list the count of
commands in the script file before execution.
-
Version number of TestExecute
.
-
A .ini
file value accessed in the test steps.
-
Test step information:
-
Timestamp, thread ID, filename and line number is provided for
each log message.
-
The logging information can be set to INFO
,
WARN
or ERR PRINTF MACROs
levels based on value set
for LogLevel key in testexecute.ini
.
-
Summary information: This includes individual summary
of test steps that have passed, failed or panicked. It also includes a summary
for test cases and their result classifications. A separate summary for the
RUN_PROGRAM
commands used in the script is also incuded.
The TEF script engine writes the summary of the result in
TestResults.htm
file using the file server. The file is placed in
the path where HTML logs are placed.
The following image illustrates a sample HTML log file:
The log file first prints each line in the script and the result of the
script line after execution.
XML logging
The XML logs consists of the following information:
An XML logging output file looks like the following:
The summary XML logging output looks like the following: