xref: /openbmc/openbmc-test-automation/gui/test/server_config/test_obmc_gui_snmp_settings.robot (revision b2a2d948d555cb6e5169b9f21d489a3b089b4387)
1*** 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
11Test Tags       OBMC_GUI_SNMP_Settings
12
13*** Variables ***
14
15${xpath_add_manager_button}           //button[text()[contains(.,"Add manager")]]
16
17
18*** Test Cases ***
19
20Verify Existence Of All Sections In SNMP Page
21    [Documentation]  Verify existence of all sections in SNMP page.
22    [Tags]  Verify_Existence_Of_All_Sections_In_SNMP_Page
23
24    Page Should Contain  Managers
25
26
27Verify Existence Of All Buttons In SNMP Page
28    [Documentation]  Verify existence of all buttons in SNMP page.
29    [Tags]  Verify_Existence_Of_All_Buttons_In_SNMP_Page
30
31    Page Should Contain Element  ${xpath_add_manager_button}
32    Page Should Contain Element  ${xpath_save_setting_button}
33    Page Should Contain Element  ${xpath_cancel_button}
34
35
36*** Keywords ***
37
38Test Setup Execution
39   [Documentation]  Do test case setup tasks.
40
41    Wait Until Page Does Not Contain Element  ${xpath_refresh_circle}
42    Click Element  ${xpath_select_server_configuration}
43    Wait Until Page Does Not Contain Element  ${xpath_refresh_circle}
44    Click Element  ${xpath_select_snmp_settings}
45    Wait Until Page Contains  SNMP settings
46