blob: 4daab829c5c85fdf240a97db3a088f4ca320fd13 [file] [log] [blame]
Rahul Maheshwari1e18bb62020-07-07 00:45:50 -05001*** Settings ***
2
3Documentation Test OpenBMC GUI "Manage power usage" 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
Rahul Maheshwari317c7102020-08-30 21:10:22 -050014${xpath_manage_power_heading} //h1[text()="Manage power usage"]
15
Rahul Maheshwari1e18bb62020-07-07 00:45:50 -050016
17*** Test Cases ***
18
Rahul Maheshwari317c7102020-08-30 21:10:22 -050019Verify Navigation To Manage Power Usage Page
20 [Documentation] Verify navigation to manage power usage page.
21 [Tags] Verify_Navigation_To_Manage_Power_Usage_Page
22
23 Page Should Contain Element ${xpath_manage_power_heading}
24
25
Rahul Maheshwari1e18bb62020-07-07 00:45:50 -050026Verify Existence Of All Sections In Manage Power Usage Page
27 [Documentation] Verify existence of all sections in Manage Power Usage page.
28 [Tags] Verify_Existence_Of_All_Sections_In_Manage_Power_Usage_Page
29
30 Page Should Contain Current power consumption
31 Page Should Contain Power cap setting
32 Page Should Contain Power cap value
33
34
35*** Keywords ***
36
37Test Setup Execution
38 [Documentation] Do test case setup tasks.
39
40 Click Element ${xpath_control_menu}
41 Click Element ${xpath_manage_power_usage_sub_menu}
42 Wait Until Keyword Succeeds 30 sec 10 sec Location Should Contain manage-power-usage