Rahul Maheshwari | 7ea47c4 | 2019-10-29 00:33:15 -0500 | [diff] [blame] | 1 | *** Settings *** |
| 2 | |
| 3 | Documentation Test OpenBMC GUI "Virtual Media" sub-menu of "Server control". |
| 4 | |
| 5 | Resource ../../lib/resource.robot |
| 6 | |
| 7 | Suite Setup Launch Browser And Login OpenBMC GUI |
| 8 | Suite Teardown Close Browser |
| 9 | Test Setup Test Setup Execution |
| 10 | |
| 11 | |
| 12 | *** Variables *** |
| 13 | |
| 14 | ${xpath_start_button} //*[@class='vm__upload-start'] |
| 15 | ${xpath_choose_file_button} //*[@class='vm__upload-choose-label'] |
| 16 | |
| 17 | |
| 18 | *** Test Cases *** |
| 19 | |
George Keishing | 58042c0 | 2019-11-12 12:35:26 -0600 | [diff] [blame] | 20 | Verify Existence Of All Sections In Virtual Media Page |
| 21 | [Documentation] Verify existence of all sections in virtual media page. |
| 22 | [Tags] Verify_Existence_Of_All_Sections_In_Virtual_Media_Page |
Rahul Maheshwari | 7ea47c4 | 2019-10-29 00:33:15 -0500 | [diff] [blame] | 23 | |
| 24 | Page Should Contain Virtual media device |
| 25 | |
| 26 | |
George Keishing | 58042c0 | 2019-11-12 12:35:26 -0600 | [diff] [blame] | 27 | Verify Existence Of All Buttons In Virtual Media Page |
Rahul Maheshwari | 7ea47c4 | 2019-10-29 00:33:15 -0500 | [diff] [blame] | 28 | [Documentation] Verify existence of all buttons in virtual media page. |
George Keishing | 58042c0 | 2019-11-12 12:35:26 -0600 | [diff] [blame] | 29 | [Tags] Verify_Existence_Of_All_Buttons_In_Virtual_Media_Page |
Rahul Maheshwari | 7ea47c4 | 2019-10-29 00:33:15 -0500 | [diff] [blame] | 30 | |
| 31 | Page Should Contain Element ${xpath_start_button} |
| 32 | Page Should Contain Element ${xpath_choose_file_button} |
| 33 | |
| 34 | |
| 35 | *** Keywords *** |
| 36 | |
| 37 | Test Setup Execution |
| 38 | [Documentation] Do test case setup tasks. |
| 39 | |
| 40 | Wait Until Page Does Not Contain Element ${xpath_refresh_circle} |
| 41 | Click Element ${xpath_select_server_control} |
| 42 | Wait Until Page Does Not Contain Element ${xpath_refresh_circle} |
| 43 | Click Element ${xpath_select_virtual_media} |
| 44 | Wait Until Page Contains Virtual media |