Project

General

Profile

Actions

action #65960

closed

coordination #36712: [saga] Use YaST specific framework for GUI testing

coordination #62726: [functional][y][epic] Create separate Ruby Gem representing libyui Client API

[functional][y] Implement libyui_client widgets required to make test for registration module

Added by oorlov about 4 years ago. Updated over 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
Start date:
2020-04-22
Due date:
2020-05-19
% Done:

0%

Estimated time:
8.00 h

Description

Motivation

https://gist.github.com/lslezak/ed9d54b91dc3cdec865ce289d01ac0c2

registration module is proposed as the first module to test with libyui-client. Though it is unsure if all the widgets to communicate with the module already created.

To install packages for libyui-rest-api one can use this repo (in case we cannot find packages in SLES repos):
https://download.opensuse.org/repositories/YaST:/Head/openSUSE_Factory/
But it's packaged for SLE 15 SP2: https://build.suse.de/package/show/SUSE:SLE-15-SP2:GA/libyui-rest-api
We just don't know in which repo it's published.

See initial PR from Alex: https://github.com/jknphy/libyui_client/pull/6

Acceptance Criteria

  1. All libyui_client widgets required to make test for registration module for both Qt and ncurses are implemented;
  2. Unit tests for methods introduced in the widgets are created and passed;
  3. Rubocop checks passed.

Proposed steps

  1. Install latest version of Sle15-SP2 with libyui-rest-api (as currently it is not clear where the package is located, e.g. enable all patterns during installation);
  2. Run registration module in both ncurses and Qt (e.g. for Qt xdg-su -c "env YUI_HTTP_REMOTE=1 YUI_HTTP_PORT=9998 /sbin/yast2 registration")
  3. Connect to the module with browser/curl or any other client which allows to make GET requests and provide easy visualization of returned JSON;
  4. Identify all the Widgets that are used in registration module;
  5. Implement the widgets in libyui_client.
Actions

Also available in: Atom PDF