blob: c86b4e9ba26807ac99bc8c0c495935e25d13742a [file] [log] [blame]
Rahul Maheshwari1e18bb62020-07-07 00:45:50 -05001*** Settings ***
2
3Documentation Test OpenBMC GUI "Server power operations" sub-menu of "Server control".
4
5Resource ../../lib/resource.robot
6
7Suite Setup Launch Browser And Login GUI
8Suite Teardown Close Browser
9Test Setup Test Setup Execution
10
11
12*** Variables ***
13
manashsarma61649752020-08-19 07:01:19 -050014${xpath_enable_onetime_boot_checkbox} //*[contains(@class,'custom-checkbox')]
15${xpath_boot_option_select} //*[@id='boot-option']
Rahul Maheshwari1e18bb62020-07-07 00:45:50 -050016
17*** Test Cases ***
18
manashsarma61649752020-08-19 07:01:19 -050019Verify Existence Of All Input Boxes In Host Os Boot Settings
20 [Documentation] Verify existence of all input boxes in host os boot settings.
21 [Tags] Verify_Existence_Of_Input_Boxes_In_Host_Os_Boot_Settings
22
23 Page Should Contain Element ${xpath_enable_onetime_boot_checkbox}
24 Page Should Contain Element ${xpath_boot_option_select}
25
26
27Verify Existence Of All Sections In Host Os Boot Settings
28 [Documentation] Verify existence of all sections in host os boot settings.
29 [Tags] Verify_Existence_Of_All_Sections_In_Host_Os_Boot_Settings
30
31 Page Should Contain Boot settings override
32 Page Should Contain TPM required policy
33
34
Rahul Maheshwari1e18bb62020-07-07 00:45:50 -050035Verify Existence Of All Sections In Server Power Operations Page
36 [Documentation] Verify existence of all sections in Server Power Operations page.
37 [Tags] Verify_Existence_Of_All_Sections_In_Server_Power_Operations_Page
38
39 Page Should Contain Current status
40 Page Should Contain Host OS boot settings
41 Page Should Contain Operations
42
43
44*** Keywords ***
45
46Test Setup Execution
47 [Documentation] Do test case setup tasks.
48
49 Click Element ${xpath_control_menu}
50 Click Element ${xpath_server_power_operations_sub_menu}
51 Wait Until Keyword Succeeds 30 sec 10 sec Location Should Contain server-power-operations