Project

General

Profile

action #41855

Updated by agraul over 5 years ago

# YaST Hostnames Module test plan 

 ## Introduction 

 YaST Hostnames is a module that helps system administrators with configuring 
 their `/etc/hosts` file. It has a Terminal and a Graphical User Interface and 
 validates input. 

 ## Features to be Tested 

 ### Included 

 - Terminal UI 
 - Graphical UI 
 - File reading + parsing 
 - File saving 
 - Input validation 
 - Aborting without damaging the existing content 

 ### Excluded 

 - Ease of use 
 - Performance 
 - Handling of large files (exact metric is not decided yet) 

 ## Test Strategy 

 The most important component is that saving the configuration creates a working 
 file, i.e. it is not corrupted or damaged. It is equally important that 
 cancellation keeps the old configuration intact. Therefore the biggest focus is 
 on disk IO. 
 Functionality only needs to be tested once, one of the two UIs is used to test 
 the functionality while the other is just checked for visual correctness. 
 Input validation, correct parsing of existing `/etc/hosts` file and aborting is 
 tested in the GUI, while the TUI only needs to render correctly and have working 
 keyboard shortcuts. 

 Test cases 1 and 2 will be executed on ARM, Power. 
 All test cases will be executed on x86\_64, using Qt GUI on GNOME (Xorg). 
 Additionally, test case 5 is executed using the ncurses TUI and Qt on GNOME 
 (Wayland). 
 On s390, only ncurses is used as UI in the tests. 

 placeholder

Back