blob: 79d61924968b9bb6ef9077c2bd50b1303370dd9a [file] [log] [blame]
Sivas SRR2757d6f2018-04-20 06:36:32 -05001*** Settings ***
2
3Documentation Test Open BMC GUI server configuration firmware update.
4
5Resource ../../lib/resource.robot
6
7Suite Setup Launch Browser And Login OpenBMC GUI
8Suite Teardown Logout And Close Browser
9Test 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
18Verify 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
26Verify 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
36Test 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}