Project

General

Profile

Actions

action #89482

closed

coordination #89476: Develop logging to the libyui REST API tests

Improve post_fail_hooks logging for libyui REST API tests

Added by riafarov over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
SUSE QA - SLE 15 SP3
Start date:
2021-03-04
Due date:
% Done:

0%

Estimated time:

Description

We have all agreed that stack trace is very helpful in case of failures during execution of tests, as show the flow of the failed call.

Another good idea is to log json output of the currently displayed widgets, so it's easy to spot if e.g. id of the control has changed.

assert_true calls already print stacktrace, so we can take a look how it's done in Test::Assert library (https://metacpan.org/pod/Test::Assert).

Logging should be improved for the installation tests and tests in the installed system.

Acceptance criteria

  1. Full stack trace is logged in case of failures
  2. Screenshot is added for any failure in yast related tests
  3. Currently displayed widgets are dumped to log file (only in case REST API is enabled)
Actions #1

Updated by riafarov over 3 years ago

  • Subject changed from Log full stacktrace and save screenshot in all yast related post_fail_hooks to Improve post_fail_hooks logging for libyui REST API tests
  • Description updated (diff)
Actions #2

Updated by riafarov over 3 years ago

  • Description updated (diff)
  • Status changed from New to Workable
Actions #3

Updated by JERiveraMoya over 3 years ago

  • Status changed from Workable to In Progress
  • Assignee set to JERiveraMoya
Actions #4

Updated by JERiveraMoya over 3 years ago

  • Status changed from In Progress to Feedback
Actions #5

Updated by JERiveraMoya over 3 years ago

  • Status changed from Feedback to Closed
Actions

Also available in: Atom PDF