Actions
action #89482
closedcoordination #89476: Develop logging to the libyui REST API tests
Improve post_fail_hooks logging for libyui REST API tests
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¶
- Full stack trace is logged in case of failures
- Screenshot is added for any failure in yast related tests
- Currently displayed widgets are dumped to log file (only in case REST API is enabled)
Actions