Sivas SRR | 2757d6f | 2018-04-20 06:36:32 -0500 | [diff] [blame] | 1 | *** Settings *** |
| 2 | |
| 3 | Documentation Test Open BMC GUI server configuration firmware update. |
| 4 | |
| 5 | Resource ../../lib/resource.robot |
| 6 | |
| 7 | Suite Setup Launch Browser And Login OpenBMC GUI |
| 8 | Suite Teardown Logout And Close Browser |
| 9 | Test Setup Test Setup Execution |
| 10 | |
| 11 | *** Variables *** |
| 12 | ${xpath_select_server_config} //*[@id="nav__top-level"]/li[4]/button |
| 13 | ${xpath_select_firmware} //a[@href='#/configuration/firmware'] |
| 14 | ${xpath_choose_file_button} //*[@id="firmware__upload-form"]/div[1]/label/span[1] |
| 15 | |
| 16 | *** Test Cases *** |
| 17 | |
| 18 | Verify Select Firmware From Server Configuration |
| 19 | [Documentation] Verify ability to select firmware option from server |
| 20 | ... configuration sub-menu. |
| 21 | [Tags] Verify_Select_Firmware_From_Server_Configuration |
| 22 | |
| 23 | Wait Until Page Contains Firmware |
| 24 | Page Should contain Manage BMC and server firmware |
| 25 | |
| 26 | Verify Choose File Button Click |
| 27 | [Documentation] Verify choose file button is clickable. |
| 28 | [Tags] Verify_Choose_File_Button_Click |
| 29 | |
| 30 | Page Should Contain No file chosen |
| 31 | Page Should Contain Element ${xpath_choose_file_button} |
| 32 | Click Element ${xpath_choose_file_button} |
| 33 | |
| 34 | *** Keywords *** |
| 35 | |
| 36 | Test Setup Execution |
| 37 | [Documentation] Do test case setup tasks. |
| 38 | |
| 39 | Click Element ${xpath_select_server_config} |
| 40 | Wait Until Page Does Not Contain Element ${xpath_refresh_circle} |
| 41 | Click Element ${xpath_select_firmware} |