Dne 03. 10. 18 v 12:15 Lukas Ocilka napsal(a):
> Dne 03. 10. 18 v 11:00 Ladislav Slezak napsal(a):

> I'll definitely support THIS way of development. It solves more things at 
> once. 
> Not only automated testing. Can it run the "UI" actually WITHOUT the UI, just 
> the 
> libyui layer, but without qt/ncurses called? E.g., libyui-rest-api?

Unfortunately not, the REST API needs to be hooked deep into the respective UI
implementation (libyui-qt/libyui-ncurses), it cannot work on the shared level
(libyui). You would need some new dummy UI implementation for that.

But we already have one dummy UI for running the old tests but that's "dumb 
dummy"
UI, it does not track the UI state (widget values) but always returns nil for 
what
ever you ask it. You would need to add code to keep the widget state.

But I think the easier solution would be to simply use some fake the 
environment for
the qt or ncurses UI. Like using xvfb/xvnc for Qt or screen/tmux for ncurses 
UI. You
would run the YaST modules with regular UI but hidden in background.

>> The YaST UI actions which can be done by user are quite limited (e.g. you 
>> can 
>> press a button, select a checkbox, write something to an input field... and 
>> that's basically it). So made a simple Cucumber wrapper which defines such 
>> steps.
> 
> Yes, select a radio button, edit (editable) combo-box, but in general, it's 
> true.

The main point is that the list of actions and results is limited and is very 
small.
With unit tests the actions and expected results are basically unlimited.

> I'm wondering why I haven't asked for continuing on the project 
> out-of-hackweek? 
> Probably bugs and features are the reason.

As usually... The problem is that we are developing several products in parallel
(SLE15-SP1/Leap15.1, SLE11-SP4, Kubic/CaaSP) so there less time for some long 
running
projects like this.

>> If you have any questions about this project just ask me.
> 
> When you can finish that :)?

Um, it's mostly working, but you know the 80/20 rule, don't you? :-)

>> Note: Because this REST API is available for any libyui application and is 
>> not 
>> YaST specific we could possibly cooperate with the Mageia (formerly 
>> Mandriva, 
>> formerly Mandrake) developers, their management tools also use the libyui 
>> [5] 
>> and having a testing framework would probably help them as well...
> 
> Cool stuff, cool ideas, I must have been blind that I haven't seen the 
> potential 
> as I see it now :)

I hope spreading the word about this project could attract some external 
contributors.



-- 
Ladislav Slezák
YaST Developer

SUSE LINUX, s.r.o.
Corso IIa
Křižíkova 148/34
18600 Praha 8
-- 
To unsubscribe, e-mail: [email protected]
To contact the owner, e-mail: [email protected]

Reply via email to