Project

General

Profile

action #89482

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

Improve post_fail_hooks logging for libyui REST API tests

Added by riafarov 9 months ago. Updated 7 months 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)

History

#1 Updated by riafarov 9 months 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)

#2 Updated by riafarov 9 months ago

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

#3 Updated by JERiveraMoya 8 months ago

  • Status changed from Workable to In Progress
  • Assignee set to JERiveraMoya

#4 Updated by JERiveraMoya 8 months ago

  • Status changed from In Progress to Feedback

#5 Updated by JERiveraMoya 7 months ago

  • Status changed from Feedback to Closed

Also available in: Atom PDF