blob: 1624c22c69d1129326e02f3a2ff6f00bb16644f9 [file] [log] [blame]
Rahul Maheshwari1e18bb62020-07-07 00:45:50 -05001*** Settings ***
2
Rahul Maheshwari142642d2021-08-24 00:00:15 -05003Documentation Test OpenBMC GUI "Reboot BMC" sub-menu of "Operation" menu.
Rahul Maheshwari1e18bb62020-07-07 00:45:50 -05004
Rahul Maheshwari41747da2020-11-17 09:09:52 -06005Resource ../../lib/gui_resource.robot
Ashwini Chandrappa233d9652021-08-04 09:56:30 -05006Resource ../../../lib/common_utils.robot
Rahul Maheshwari1e18bb62020-07-07 00:45:50 -05007
8Suite Setup Launch Browser And Login GUI
9Suite Teardown Close Browser
10Test Setup Test Setup Execution
11
12
13*** Variables ***
14
Rahul Maheshwari317c7102020-08-30 21:10:22 -050015${xpath_reboot_bmc_heading} //h1[text()="Reboot BMC"]
Rahul Maheshwari1e18bb62020-07-07 00:45:50 -050016${xpath_reboot_bmc_button} //button[contains(text(),'Reboot BMC')]
Sushma M M03e13242020-11-17 23:17:22 -060017${xpath_reboot_cancel_button} //button[contains(text(),'Cancel')]
Rahul Maheshwari1e18bb62020-07-07 00:45:50 -050018
Ashwini Chandrappa233d9652021-08-04 09:56:30 -050019
Rahul Maheshwari1e18bb62020-07-07 00:45:50 -050020*** Test Cases ***
21
Rahul Maheshwari317c7102020-08-30 21:10:22 -050022Verify Navigation To Reboot BMC Page
23 [Documentation] Verify navigation to reboot BMC page.
24 [Tags] Verify_Navigation_To_Reboot_BMC_Page
25
26 Page Should Contain Element ${xpath_reboot_bmc_heading}
27
28
Rahul Maheshwari1e18bb62020-07-07 00:45:50 -050029Verify Existence Of All Buttons In Reboot BMC Page
30 [Documentation] Verify existence of all buttons in reboot BMC page.
31 [Tags] Verify_Existence_Of_All_Buttons_In_Reboot_BMC_Page
32
33 Page Should Contain Element ${xpath_reboot_bmc_button}
34
35
Sushma M M1603ff92020-11-16 23:53:51 -060036Verify Existence Of All Sections In Reboot BMC Page
37 [Documentation] Verify Existence Of All Sections In Reboot BMC Page.
38 [Tags] Verify_Existence_Of_All_Sections_In_Reboot_BMC_Page
39
40 Page Should Contain Last BMC reboot
41
42
Sushma M M03e13242020-11-17 23:17:22 -060043Verify Canceling Operation On BMC Reboot Operation
44 [Documentation] Verify Canceling Operation On BMC Reboot operation
45 [Tags] Verify_Canceling_Operation_On_BMC_Reboot_Operation
46
47 Click Element ${xpath_reboot_bmc_button}
48 Click Element ${xpath_reboot_cancel_button}
49 Wait Until Element Is Not Visible ${xpath_reboot_cancel_button} timeout=15
50
51
Ashwini Chandrappa233d9652021-08-04 09:56:30 -050052Verify BMC Reboot Operation
53 [Documentation] Verify BMC Reboot operation
54 [Tags] Verify_BMC_Reboot_Operation
55
56 Click Element ${xpath_reboot_bmc_button}
57 Click Element ${xpath_confirm_button}
58
59 # Checks BMC gets into Unpingable state and later becomes Pingable.
Ashwini Chandrappa7edd9252021-09-13 02:37:34 -050060 Wait Until Keyword Succeeds 1 min 5 sec Is BMC Unpingable
Ashwini Chandrappa233d9652021-08-04 09:56:30 -050061 Wait For Host To Ping ${OPENBMC_HOST} 1 min
62
63 # Checks BMC gets into ready state.
64 Wait Until Keyword Succeeds 5 min 10 sec Is BMC Ready
65
66 Click Element ${xpath_refresh_button}
67 Wait Until Element Is Visible ${xpath_reboot_bmc_button} timeout=10
68
69
Rahul Maheshwari1e18bb62020-07-07 00:45:50 -050070*** Keywords ***
71
72Test Setup Execution
73 [Documentation] Do test case setup tasks.
74
Rahul Maheshwari142642d2021-08-24 00:00:15 -050075 Click Element ${xpath_operations_menu}
Rahul Maheshwari1e18bb62020-07-07 00:45:50 -050076 Click Element ${xpath_reboot_bmc_sub_menu}
77 Wait Until Keyword Succeeds 30 sec 10 sec Location Should Contain reboot-bmc