Project

General

Profile

Actions

action #48647

closed

[sle][functional][y][sporadic] test fails in yast2_nis - improve stability of transition to NFS Client Configuration view

Added by mloviska about 5 years ago. Updated about 5 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Bugs in existing tests
Target version:
SUSE QA - Milestone 24
Start date:
2019-03-04
Due date:
2019-04-09
% Done:

0%

Estimated time:
3.00 h
Difficulty:

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


Related issues 1 (0 open1 closed)

Related to openQA Tests - action #41297: [sle][funtional][y] test fails in yast2_nis - Wrong tab navigationRejectedriafarov2018-09-19

Actions
Actions #1

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.

Actions #2

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
Actions #3

Updated by riafarov about 5 years ago

  • Estimated time set to 3.00 h
Actions #4

Updated by riafarov about 5 years ago

  • Related to action #41297: [sle][funtional][y] test fails in yast2_nis - Wrong tab navigation added
Actions #5

Updated by JRivrain about 5 years ago

  • Assignee set to JRivrain
Actions #6

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.

Actions #7

Updated by JRivrain about 5 years ago

  • Status changed from Workable to In Progress
Actions #8

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.

Actions #9

Updated by JERiveraMoya about 5 years ago

Moving to next sprint. Still in investigation.

Actions #10

Updated by JERiveraMoya about 5 years ago

  • Due date changed from 2019-03-26 to 2019-04-09
Actions #12

Updated by riafarov about 5 years ago

  • Target version changed from Milestone 23 to Milestone 24
Actions #13

Updated by JRivrain about 5 years ago

  • Status changed from In Progress to Feedback
Actions #15

Updated by JRivrain about 5 years ago

  • Status changed from Feedback to Resolved
Actions

Also available in: Atom PDF