Settings LoggingSettings/en

Aus expecco Wiki (Version 26.x)
(Weitergeleitet von Settings LoggingSettings)
Zur Navigation springen Zur Suche springen

Overview

Activity log entries remember the result of a step's execution. They usually include information about the input pin values, the execution time, the outcome (verdict) and the generated output value(s). The activity log is (currently) stored in memory, to avoid excessive slow-down of the tests execution. For long running tests, it can be swapped to a file.

The activity log as generated by long running extensive tests may become very large and consume lots of memory - sometimes more than can be kept and prunning (cutting off parts of the trace) is required. For such tests, it might be useful to disable the logging of certain actions and/or steps and/or pins. This can be controlled via popup menus of steps and pins in the diagram editor.

In contrast to activity logs, traces as sent to the Transcript (Console) are not persistent and will be lost when the Transcript window is closed (unless the contents is captured and saved explicitly, via one of the Transcript action blocks)

Logging Settings

These are found in "Settings" → "Execution" → "Activity Log".

Log Activities

If enabled, every activity is stored in the activity log. If disabled, only failed activities are stored. There will be always one master (top-level) entry stored, which keeps the overall outcome of an execution, even for passed runs with disabled logging.

This parameter can be set and saved directly in the test suite. When a new test suite is created, the value from the settings dialog is used as the default value.

Log Pin Data

If enabled, all input and output pin values are stored in the activity log. Otherwise all values are discarded and pin values cannot be inspected after the test run.

This parameter can be set and saved directly in the test suite. When a new test suite is created, the value from the settings dialog is used as the default value.

Log Info

If enabled, all information messages (i.e. messages as generated by explicit logInfo calls and logInfo blocks) are stored in the activity log. Otherwise information messages are discarded.

This parameter can be set and saved directly in the test suite. When a new test suite is created, the value from the settings dialog is used as the default value.

Swap Finished Activity Logs to a File

Intended for long running tests, whose activity log would otherwise fill up the memory. Off by default.

Activity log settings

If enabled, finished activities are written to a swap file in the background. When an activity has more subactivities than the given number, the oldest ones which were successful are dropped from memory and are read back from the file when they are opened. The log, the timeline, reports and result files (.elf) still contain them.

  • Max. Nr. of Subactivities Kept in Memory
how many subactivities per activity stay in memory. This is a cache size: nothing is lost beyond it. Empty means the default (100). While swapping is on, it is used instead of "Max. Nr. of kept Subactivities per Activity", beyond which the oldest entries would be lost.
  • Swap File Directory
directory for the swap file. Empty means the temporary directory. Set it if the temporary directory is a RAM disk or too small for long runs. The directory is checked when the settings are saved.

The setting takes effect with the next run. It is a user setting and is not saved in the test suite.

Notes:

  • Activities which were not successful stay in memory.
  • A swap file is only created when the limit is exceeded; short runs are not affected.
  • Swap files are temporary: they are removed when expecco quits, with "Remove all Results in System", or in a later run when no window shows the results any more. Save results you want to keep as a result file (.elf).
  • Values which cannot be stored in a file (e.g. sockets or handles) are kept as a text description only. Activities whose pin values refer to expecco's own model or user interface objects stay in memory.
  • At the end of a test case or run, expecco waits until all pending entries are written. With very large pin values this may take noticeable time.

Log GUI Screenshots Automatically on Error

If enabled, GUI action blocks which encounter an error (typically: element/xpath not found) will automatically generate a screenshot and add this to the activity log. Be aware that this may generate a huge number of images and lead to excessive memory use and even a failure when running out of memory (especially on 32bit machines). SO this feature should only be used during development.

Log External OS Commands

If enabled, all executed OS commands (shell/script interpreter calls, etc.) will be logged in the activity log.

Log System Activity Notifications

If enabled, activity information notifications (i.e. implicit notifications of the underlying language framework) are stored in the activity log as info log entries. Otherwise information messages are discarded.

The default is false (used to be true in pre 2.1 releases).

Timestamps have Microsecond Resolution

If enabled, timestamps are kept with microsecond resolution (if the underlying operating system supports them); otherwise, they are generated with millisecond resolution.

The default is false for backward compatibility with older expecco versions.

Ignore any "Skip in Trace" Attribute

Enforces an activity log/trace to be generated for all steps/pin values, even if individual steps/pins have the "Skip in Trace" attribute set.

Prefix for log output

An environment variable called__Transcript_Prefix__ can be defined in a test suite. When text from this test suite is written to Transcript, the value of the variable is also output as a prefix.

Tracing Settings

These are found in "Settings" → "Execution" → "Tracing".

Show Internal Warning and Info Messages

Probably only useful for diagnostics of expecco itself

Show Actions being Executed

If enabled, the currently executed action's name is shown in the lower info area (not in the Transcript). It can be further filtered by tag.

Logger Treshold

Defines a treshold which controls the set of Logger messages to be shown. Logger messages are typically produced internally eg. to display progress, errors etc. Many logger messages are meant for expecco developers, however some might be also of interest during test development. Logger messages are associated a severity, which can be TRACE, DEBUG, INFO, WARNING, ERROR or FATAL. Only logger messages with a greater-or-equal severity will be shown by the logger.
By default, this treshold is set to "WARNING".

Show External Commands on Transcript

If on, executed shell, batch, script and other OS commands will be traced on the Transcript.

Show Stdout and Stderr on Transcript

If on, the stdout/stderr of executed external programs is traced on the Transcript (stderr in red).

Show Outgoing HTTP Requests on Transcript

Outgoing HTTP requests (from the HTTP-get/put actions) will be traced on the Transcript.

Show Outgoing SOAP Requests on Transcript

Outgoing SOAP requests will be traced on the Transcript.

Show IMAP and POP3 Protocol on Transcript

Interactions with the mailbox are traced on the Transcript.

MessageTally on Execution

If checked, execution times of elementary activities are measured and an execution profile is generated after the execution (on the Transcript window). This is useful to find out where time is spent for performance optimizations.

Coverage Recording onExecution

If checked, executed actions are instrumented to record which parts are executed and which are not. (this is an unfinished feature, which may or may not work in your particular version of expecco)


Back to the main page "Settings"



Copyright © 2014-2024 eXept Software AG