action #48647
closed[sle][functional][y][sporadic] test fails in yast2_nis - improve stability of transition to NFS Client Configuration view
0%
Description
Observation¶
openQA test in scenario sle-15-SP1-Installer-DVD-x86_64-yast2_ncurses@64bit fails in
yast2_nis
The test is pressing keystroke 'alt-s' until it reaches needle from the default view.
The stability issue is introduced in the transition when the initialization part takes longer or yast2 is a bit slower than expected.
YaST2 is clearly still loading data while the test is already interacting with YaST2 nis client module.
loading data vs. loaded data
send_key_until_needlematch('nfs-client-configuration', 'alt-s', 2, 5); # enter NFS configuration, sometimes fails, retry
send_key 'alt-a'; # add nfs settings
assert_screen 'nfs-server-hostname'; # check that type string is sucessful
Test suite description¶
Maintainer: zluo, riafarov Test for yast2 UI, ncurses only. Running on created gnome images which provides both text console for ncurses UI tests as well as the gnome environment for the GUI tests.
Reproducible¶
Fails since (at least) Build 126.1
Expected result¶
Last good: 125.1 (or more recent)
Further details¶
Always latest result in this scenario: latest
Updated by okurz about 5 years ago
- Due date set to 2019-03-26
- Status changed from New to Workable
- Target version set to Milestone 23
for tickets which are linked to currently failing test modules please regard priority as "High" at least. Also, your ticket already looks pretty "Workable", at least we have a "last good", that should suffice :) Please feel free in the future to set tickets to "Workable" and also for what looks like clear regressions propose a schedule, e.g. for the following sprint.
Updated by riafarov about 5 years ago
- Subject changed from [sle][functional][y] test fails in yast2_nis - improve stability of transition to NFS Client Configuration view to [sle][functional][y][sporadic] test fails in yast2_nis - improve stability of transition to NFS Client Configuration view
Updated by riafarov about 5 years ago
- Related to action #41297: [sle][funtional][y] test fails in yast2_nis - Wrong tab navigation added
Updated by JRivrain about 5 years ago
mloviska wrote:
Observation¶
The test is pressing keystroke 'alt-s' until it reaches needle from the default view.
send_key_until_needlematch('nfs-client-configuration', 'alt-s', 2, 5); # enter NFS configuration, sometimes fails, retry send_key 'alt-a'; # add nfs settings assert_screen 'nfs-server-hostname'; # check that type string is sucessful
After further inverstigation, we should in fact never reach that screen. What is expected in a working run is this. But in the failing case the needle was not yet matched and openqa sends alt-s once again, so we end up on the wrong screen.
An easy solution is to replace the current needles to match the highlighted area.
EDIT : modifying the needle will make the cause of failure more obvious, but not actually fix the problem. I'm looking for a better solution.
Updated by JRivrain about 5 years ago
- Status changed from Workable to In Progress
Updated by JERiveraMoya about 5 years ago
I believe you need to ensure NFS Shares tab is selected: modifying the needle (all letters in yellow) and replacing send_key_until_needlematch
by assert_screen
forgetting about 'alt-s' that does not make sense (it might be there because of different tab was selected in the past?) and leads us to wrong screen (the other tab) as you stated. Besides I would add a few extra screenshots to not need to take a look to the video.
Updated by JERiveraMoya about 5 years ago
Moving to next sprint. Still in investigation.
Updated by JERiveraMoya about 5 years ago
- Due date changed from 2019-03-26 to 2019-04-09
Updated by JRivrain about 5 years ago
Updated by riafarov about 5 years ago
- Target version changed from Milestone 23 to Milestone 24
Updated by JRivrain about 5 years ago
- Status changed from In Progress to Feedback
Updated by JRivrain about 5 years ago
Updated by JRivrain about 5 years ago
- Status changed from Feedback to Resolved
Working in production: https://openqa.suse.de/tests/2752714#step/yast2_nis/22