George Keishing | 8b082fd | 2017-05-03 13:42:39 -0500 | [diff] [blame] | 1 | *** Settings *** |
| 2 | Documentation Stress the system using HTX exerciser. |
| 3 | |
| 4 | Resource ../syslib/utils_os.robot |
George Keishing | ffbe8ce | 2017-05-04 12:08:54 -0500 | [diff] [blame] | 5 | |
George Keishing | ae5d978 | 2017-06-12 13:35:59 -0500 | [diff] [blame] | 6 | Suite Setup Run Key Start SOL Console Logging |
George Keishing | ffbe8ce | 2017-05-04 12:08:54 -0500 | [diff] [blame] | 7 | Test Setup Pre Test Case Execution |
| 8 | Test Teardown Post Test Case Execution |
George Keishing | 8b082fd | 2017-05-03 13:42:39 -0500 | [diff] [blame] | 9 | |
| 10 | *** Variables **** |
| 11 | |
George Keishing | ffbe8ce | 2017-05-04 12:08:54 -0500 | [diff] [blame] | 12 | ${stack_mode} skip |
| 13 | |
George Keishing | 8b082fd | 2017-05-03 13:42:39 -0500 | [diff] [blame] | 14 | *** Test Cases *** |
| 15 | |
| 16 | Hard Bootme Test |
| 17 | [Documentation] Stress the system using HTX exerciser. |
George Keishing | ffbe8ce | 2017-05-04 12:08:54 -0500 | [diff] [blame] | 18 | [Tags] Hard_Bootme_Test |
George Keishing | 8b082fd | 2017-05-03 13:42:39 -0500 | [diff] [blame] | 19 | |
George Keishing | ffbe8ce | 2017-05-04 12:08:54 -0500 | [diff] [blame] | 20 | Rprintn |
| 21 | Rpvars HTX_DURATION HTX_INTERVAL |
| 22 | |
| 23 | Repeat Keyword ${HTX_LOOP} times Start HTX Exerciser |
| 24 | |
| 25 | |
| 26 | *** Keywords *** |
| 27 | |
| 28 | Start HTX Exerciser |
| 29 | [Documentation] Start HTX exerciser. |
| 30 | # Test Flow: |
| 31 | # - Power on |
| 32 | # - Establish SSH connection session |
| 33 | # - Create HTX mdt profile |
| 34 | # - Run HTX exerciser |
| 35 | # - Check HTX status for errors |
| 36 | # - Power off |
| 37 | |
| 38 | Boot To OS |
| 39 | |
| 40 | # Post Power off and on, the OS SSH session needs to be established. |
George Keishing | 8b082fd | 2017-05-03 13:42:39 -0500 | [diff] [blame] | 41 | Login To OS |
| 42 | |
George Keishing | 13f44e5 | 2017-05-12 15:28:12 -0500 | [diff] [blame] | 43 | Run Keyword If '${HTX_MDT_PROFILE}' == 'mdt.bu' |
| 44 | ... Create Default MDT Profile |
George Keishing | 8b082fd | 2017-05-03 13:42:39 -0500 | [diff] [blame] | 45 | |
George Keishing | 13f44e5 | 2017-05-12 15:28:12 -0500 | [diff] [blame] | 46 | Run MDT Profile |
George Keishing | 8b082fd | 2017-05-03 13:42:39 -0500 | [diff] [blame] | 47 | |
| 48 | Loop HTX Health Check |
| 49 | |
George Keishing | ffbe8ce | 2017-05-04 12:08:54 -0500 | [diff] [blame] | 50 | Shutdown HTX Exerciser |
| 51 | |
| 52 | Power Off Host |
| 53 | |
George Keishing | ae5d978 | 2017-06-12 13:35:59 -0500 | [diff] [blame] | 54 | # Close all SSH and REST active sessions. |
| 55 | Close All Connections |
| 56 | Flush REST Sessions |
| 57 | |
George Keishing | ffbe8ce | 2017-05-04 12:08:54 -0500 | [diff] [blame] | 58 | Rprint Timen HTX Test ran for: ${HTX_DURATION} |
George Keishing | 8b082fd | 2017-05-03 13:42:39 -0500 | [diff] [blame] | 59 | |
George Keishing | 13f44e5 | 2017-05-12 15:28:12 -0500 | [diff] [blame] | 60 | |
George Keishing | 8b082fd | 2017-05-03 13:42:39 -0500 | [diff] [blame] | 61 | Loop HTX Health Check |
George Keishing | ffbe8ce | 2017-05-04 12:08:54 -0500 | [diff] [blame] | 62 | [Documentation] Run until HTX exerciser fails. |
| 63 | |
George Keishing | 8b082fd | 2017-05-03 13:42:39 -0500 | [diff] [blame] | 64 | Repeat Keyword ${HTX_DURATION} |
| 65 | ... Run Keywords Check HTX Run Status |
| 66 | ... AND Sleep ${HTX_INTERVAL} |
| 67 | |
| 68 | |
George Keishing | ffbe8ce | 2017-05-04 12:08:54 -0500 | [diff] [blame] | 69 | Post Test Case Execution |
| 70 | [Documentation] Do the post test teardown. |
| 71 | # 1. Shut down HTX exerciser if test Failed. |
| 72 | # 2. Capture FFDC on test failure. |
| 73 | # 3. Close all open SSH connections. |
| 74 | |
George Keishing | 1a23b69 | 2017-05-06 12:19:41 -0500 | [diff] [blame] | 75 | # Keep HTX running if user set HTX_KEEP_RUNNING to 1. |
| 76 | Run Keyword If '${TEST_STATUS}' == 'FAIL' and ${HTX_KEEP_RUNNING} == ${0} |
George Keishing | ffbe8ce | 2017-05-04 12:08:54 -0500 | [diff] [blame] | 77 | ... Shutdown HTX Exerciser |
| 78 | |
George Keishing | ae5d978 | 2017-06-12 13:35:59 -0500 | [diff] [blame] | 79 | ${keyword_buf}= Catenate Stop SOL Console Logging |
| 80 | ... \ targ_file_path=${EXECDIR}${/}logs${/}SOL.log |
| 81 | Run Key ${keyword_buf} |
| 82 | |
George Keishing | ffbe8ce | 2017-05-04 12:08:54 -0500 | [diff] [blame] | 83 | FFDC On Test Case Fail |
| 84 | Close All Connections |