Project

General

Profile

Actions

action #70507

closed

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

[y] Add support for reading values from YDateField and YTimeField

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

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
SUSE QA - SLE 15 SP3
Start date:
2020-08-25
Due date:
2020-09-08
% Done:

0%

Estimated time:
5.00 h

Description

While implementing support for the YDateField and YTimeField widgets I have missed that value is not stored as value property and hence not provided by the libyui REST API.

So as of now, it's only possible to set values.

Server-side: https://github.com/libyui/libyui-rest-api
Client-side: https://github.com/qa-sle-yast/libyui_client

Scope of this ticket is implement this for both: server and client side.

Actions #1

Updated by riafarov over 3 years ago

  • Description updated (diff)
  • Status changed from New to Workable
  • Estimated time set to 5.00 h
Actions #2

Updated by JERiveraMoya over 3 years ago

  • Assignee set to JERiveraMoya
Actions #3

Updated by JERiveraMoya over 3 years ago

  • Status changed from Workable to In Progress
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 Resolved

In case it could be of some help (when not using Tumbleweed), I needed a the following packages to make it work in Leap 15.2:

make -f Makefile.cvs
    zypper in cmake
    zypper in libyui-devel
    zypper addrepo https://download.opensuse.org/repositories/devel:libraries:c_c++/openSUSE_Leap_15.2/devel:libraries:c_c++.repo
    zypper refresh
    zypper install jsoncpp
make -C build/ install
    zypper ar https://download.opensuse.org/repositories/YaST:/Head/openSUSE_Leap_15.2/YaST:Head.repo
    zypper ref
    zypper in libyui-qt13
    sudo zypper dup --allow-vendor-change --from YaST_Head
    sudo zypper rm libyui11

zypper in yast2-ycp-ui-bindings-devel

git clone https://github.com/libyui/libyui-ncurses-rest-api
git clone https://github.com/libyui/libyui-qt-rest-api

zypper in libQt5Core-devel
zypper in libQt5Gui-devel
zypper in libQt5Widgets-devel
zypper in libQt5Svg-devel
zypper in libqt5-qtx11extras-devel
zypper in libyui-qt libyui-qt-devel
su -c /bin/sh -c 'YUI_HTTP_PORT=9999 /sbin/yast2 examples/DateField1.rb --qt
su -c /bin/sh -c 'YUI_HTTP_PORT=9999 /sbin/yast2 examples/DateField1.rb --ncurses
Actions

Also available in: Atom PDF