blob: 89fd2a50f8db46e09ee8a42c2b55546ca787aa41 [file] [log] [blame]
Ashwini Chandrappa54cffa02021-06-01 06:16:30 -05001*** Settings ***
2
Rahul Maheshwari142642d2021-08-24 00:00:15 -05003Documentation Test OpenBMC GUI "Power restore policy" sub-menu of "Settings" menu.
Ashwini Chandrappa54cffa02021-06-01 06:16:30 -05004
5Resource ../../lib/gui_resource.robot
6
7Suite Setup Launch Browser And Login GUI
8Suite Teardown Close Browser
9Test Setup Test Setup Execution
10
Matt Fischer6fb70d92023-10-24 19:06:33 -060011Test Tags Power_Restore_Policy_Sub_Menu
Ashwini Chandrappa54cffa02021-06-01 06:16:30 -050012
13*** Variables ***
14
15${xpath_power_restore_policy_heading} //h1[text()="Power restore policy"]
16${xpath_AlwaysOn_radio} //input[@value='AlwaysOn']
17${xpath_AlwaysOff_radio} //input[@value='AlwaysOff']
18${xpath_LastState_radio} //input[@value='LastState']
rramyasr-inc6700922022-10-11 04:48:06 -050019${xpath_save_settings_button} //button[contains(text(),'Save')]
Ashwini Chandrappa54cffa02021-06-01 06:16:30 -050020
Ashwini Chandrappa54cffa02021-06-01 06:16:30 -050021*** Test Cases ***
22
23Verify Navigation To Power Restore Policy Page
24 [Documentation] Verify navigation to Power Restore Policy page.
25 [Tags] Verify_Navigation_To_Power_Restore_Policy_Page
26
27 Page Should Contain Element ${xpath_power_restore_policy_heading}
28
29
30Verify Existence Of All Sections In Power Restore Policy Page
31 [Documentation] Verify existence of all sections in Power Restore Policy page.
32 [Tags] Verify_Existence_Of_All_Sections_In_Power_Restore_Policy_Page
33
34 Page Should Contain Power restore policies
35
36
37Verify Existence Of All Buttons In Power Restore Policy Page
38 [Documentation] Verify existence of All Buttons.
George Keishingd6a77972022-01-31 12:50:29 -060039 [Tags] Verify_Existence_Of_All_Buttons_In_Power_Restore_Policy_Page
Ashwini Chandrappa54cffa02021-06-01 06:16:30 -050040
41 Page Should Contain Element ${xpath_AlwaysOn_radio}
42 Page Should Contain Element ${xpath_AlwaysOff_radio}
43 Page Should Contain Element ${xpath_LastState_radio}
44 Page Should Contain Element ${xpath_save_settings_button}
45
46
47*** Keywords ***
48
49Test Setup Execution
50 [Documentation] Do test case setup tasks.
51
Rahul Maheshwari142642d2021-08-24 00:00:15 -050052 Click Element ${xpath_settings_menu}
Ashwini Chandrappa54cffa02021-06-01 06:16:30 -050053 Click Element ${xpath_power_restore_policy_sub_menu}
54 Wait Until Keyword Succeeds 30 sec 10 sec Location Should Contain power-restore-policy
rramyasr-in74cbb182022-06-16 11:24:11 -050055 Wait Until Element Is Not Visible ${xpath_page_loading_progress_bar} timeout=30