blob: 8582bbe94c8c318784529b5ece380b3e3e85dda7 [file] [log] [blame]
Anusha Dathatrie11a54d2020-08-31 08:35:47 -05001*** Settings ***
2
3Documentation Test OpenBMC Firmware Update" sub menu of "Configuration".
4
Rahul Maheshwari41747da2020-11-17 09:09:52 -06005Resource ../../lib/gui_resource.robot
Anusha Dathatrie11a54d2020-08-31 08:35:47 -05006
7Suite Setup Suite Setup Execution
8Suite Teardown Close Browser
9
10*** Variables ***
11
12${xpath_firmware_heading} //h1[text()="Firmware"]
13${xpath_change_image_and_reboot} //button[contains(text(),'Change image and reboot BMC')]
14${xpath_upload_image_and_reboot} //button[contains(text(),'Upload and reboot BMC')]
15
16*** Test Cases ***
17
18Verify Navigation To Firmware Page
19 [Documentation] Verify navigation to firmware page.
20 [Tags] Verify_Navigation_To_Firmware_Page
21
22 Page Should Contain Element ${xpath_firmware_heading}
23
24
25Verify Existence Of All Sections In Firmware Page
26 [Documentation] Verify existence of all sections in firmware page.
27 [Tags] Verify_Existence_Of_All_Sections_In_Firmware_Page
28
29 Page Should Contain Firmware on system
30 Page Should Contain Change to backup image
31 Page Should Contain Update code
32
33
34Verify Existence Of All Buttons In Firmware Page
35 [Documentation] Verify existence of all buttons in firmware page.
36 [Tags] Verify_Existence_Of_All_Buttons_In_Firmware_Page
37
38 Page Should Contain Element ${xpath_change_image_and_reboot}
39 Page Should Contain Element ${xpath_upload_image_and_reboot}
40
41
42*** Keywords ***
43
44Suite Setup Execution
45 [Documentation] Do test case setup tasks.
46
47 Launch Browser And Login GUI
48 Click Element ${xpath_server_configuration}
49 Click Element ${xpath_firmware_update_sub_menu}
50 Wait Until Keyword Succeeds 30 sec 10 sec Location Should Contain firmware