blob: 879d22e4989c77a203c8ed65b48f8bcbe41f3136 [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
Matt Fischer6fb70d92023-10-24 19:06:33 -060012Test Tags Reboot_BMC_Sub_Menu
Rahul Maheshwari1e18bb62020-07-07 00:45:50 -050013
14*** Variables ***
15
Rahul Maheshwari317c7102020-08-30 21:10:22 -050016${xpath_reboot_bmc_heading} //h1[text()="Reboot BMC"]
Rahul Maheshwari1e18bb62020-07-07 00:45:50 -050017${xpath_reboot_bmc_button} //button[contains(text(),'Reboot BMC')]
Sushma M M03e13242020-11-17 23:17:22 -060018${xpath_reboot_cancel_button} //button[contains(text(),'Cancel')]
Rahul Maheshwari1e18bb62020-07-07 00:45:50 -050019
Ashwini Chandrappa233d9652021-08-04 09:56:30 -050020
Rahul Maheshwari1e18bb62020-07-07 00:45:50 -050021*** Test Cases ***
22
Rahul Maheshwari317c7102020-08-30 21:10:22 -050023Verify Navigation To Reboot BMC Page
24 [Documentation] Verify navigation to reboot BMC page.
25 [Tags] Verify_Navigation_To_Reboot_BMC_Page
26
27 Page Should Contain Element ${xpath_reboot_bmc_heading}
28
29
Rahul Maheshwari1e18bb62020-07-07 00:45:50 -050030Verify Existence Of All Buttons In Reboot BMC Page
31 [Documentation] Verify existence of all buttons in reboot BMC page.
32 [Tags] Verify_Existence_Of_All_Buttons_In_Reboot_BMC_Page
33
34 Page Should Contain Element ${xpath_reboot_bmc_button}
35
36
Sushma M M1603ff92020-11-16 23:53:51 -060037Verify Existence Of All Sections In Reboot BMC Page
38 [Documentation] Verify Existence Of All Sections In Reboot BMC Page.
39 [Tags] Verify_Existence_Of_All_Sections_In_Reboot_BMC_Page
40
41 Page Should Contain Last BMC reboot
42
43
Sushma M M03e13242020-11-17 23:17:22 -060044Verify Canceling Operation On BMC Reboot Operation
45 [Documentation] Verify Canceling Operation On BMC Reboot operation
46 [Tags] Verify_Canceling_Operation_On_BMC_Reboot_Operation
47
48 Click Element ${xpath_reboot_bmc_button}
rramyasr-in30254ab2023-04-21 03:58:01 -050049
50 # Delay added for cancel button to appear.
51 Sleep 5s
52
rramyasr-inae3a98a2023-02-21 04:46:15 -060053 Click Element At Coordinates ${xpath_reboot_cancel_button} 0 0
Sushma M M03e13242020-11-17 23:17:22 -060054 Wait Until Element Is Not Visible ${xpath_reboot_cancel_button} timeout=15
55
56
Ashwini Chandrappa233d9652021-08-04 09:56:30 -050057Verify BMC Reboot Operation
58 [Documentation] Verify BMC Reboot operation
59 [Tags] Verify_BMC_Reboot_Operation
60
61 Click Element ${xpath_reboot_bmc_button}
rramyasr-in1fe0ccc2023-04-06 06:41:45 -050062
63 # Delay added for confirm button to appear.
64 Sleep 5s
rramyasr-inf8e80b42023-03-15 09:47:29 -050065 Click Element At Coordinates ${xpath_confirm_button} 0 0
Ashwini Chandrappa233d9652021-08-04 09:56:30 -050066
67 # Checks BMC gets into Unpingable state and later becomes Pingable.
Ashwini Chandrappa7edd9252021-09-13 02:37:34 -050068 Wait Until Keyword Succeeds 1 min 5 sec Is BMC Unpingable
Ashwini Chandrappa233d9652021-08-04 09:56:30 -050069 Wait For Host To Ping ${OPENBMC_HOST} 1 min
70
rramyasr-inf8e80b42023-03-15 09:47:29 -050071 Wait Until Keyword Succeeds 3 min 10 sec Is BMC Operational
Ashwini Chandrappa233d9652021-08-04 09:56:30 -050072
73 Click Element ${xpath_refresh_button}
74 Wait Until Element Is Visible ${xpath_reboot_bmc_button} timeout=10
75
76
Rahul Maheshwari1e18bb62020-07-07 00:45:50 -050077*** Keywords ***
78
79Test Setup Execution
80 [Documentation] Do test case setup tasks.
81
Rahul Maheshwari142642d2021-08-24 00:00:15 -050082 Click Element ${xpath_operations_menu}
Rahul Maheshwari1e18bb62020-07-07 00:45:50 -050083 Click Element ${xpath_reboot_bmc_sub_menu}
84 Wait Until Keyword Succeeds 30 sec 10 sec Location Should Contain reboot-bmc
rramyasr-in6dc57e52023-01-17 09:45:16 -060085 Wait Until Element Is Not Visible ${xpath_page_loading_progress_bar} timeout=30