blob: 80e918f2343fbe8204f7802f8fdba23f94052f98 [file] [log] [blame]
Rahul Maheshwaridd3bb602019-10-23 13:31:33 -05001*** Settings ***
2
3Documentation Test OpenBMC GUI "SNMP settings" sub-menu of "Server configuration".
4
5Resource ../../lib/resource.robot
6
7Suite Setup Launch Browser And Login OpenBMC GUI
8Suite Teardown Close Browser
9Test Setup Test Setup Execution
10
11
12*** Variables ***
13
14${xpath_add_manager_button} //button[text()[contains(.,"Add manager")]]
15
16
17*** Test Cases ***
18
19Verify Existence Of All Sections In SNMP Page
20 [Documentation] Verify existence of all sections in SNMP page.
21 [Tags] Verify_Existence_Of_All_Sections_In_SNMP_Page
22
23 Page Should Contain Managers
24
25
26Verify Existence Of All Buttons In SNMP Page
27 [Documentation] Verify existence of all buttons in SNMP page.
28 [Tags] Verify_Existence_Of_All_Buttons_In_SNMP_Page
29
30 Page Should Contain Element ${xpath_add_manager_button}
31 Page Should Contain Element ${xpath_save_setting_button}
32 Page Should Contain Element ${xpath_cancel_button}
33
34
35*** Keywords ***
36
37Test Setup Execution
38 [Documentation] Do test case setup tasks.
39
40 Wait Until Page Does Not Contain Element ${xpath_refresh_circle}
41 Click Element ${xpath_select_server_configuration}
42 Wait Until Page Does Not Contain Element ${xpath_refresh_circle}
43 Click Element ${xpath_select_snmp_settings}
44 Wait Until Page Contains SNMP settings