1*** Settings *** 2 3Documentation Test OpenBMC GUI "SNMP Alerts" sub-menu of "Settings". 4 5Resource ../../lib/gui_resource.robot 6Suite Setup Suite Setup Execution 7Suite Teardown Close Browser 8 9 10*** Variables *** 11 12${xpath_snmp_alerts_sub_menu} //*[@data-test-id='nav-item-snmp-alerts'] 13${xpath_snmp_alerts_heading} //h1[text()="SNMP Alerts"] 14${xpath_select_user} //*[@data-test-id='snmpAlerts-checkbox-selectAll'] 15${xpath_add_destination} //button[contains(text(),'Add destination')] 16${xpath_snmp_alert_destination_heading} //h5[contains(text(),'Add SNMP alert destination')] 17${xpath_ip_address_input_button} //*[@data-test-id='snmpAlerts-input-ipAddress'] 18${xpath_port_optional_input_button} //*[@data-test-id='snmpAlerts-input-port'] 19${xpath_snmp_add_destination_button} //*[@data-test-id='snmpAlerts-button-ok'] 20${xpath_cancel_button} //button[contains(text(),'Cancel')] 21 22 23*** Test Cases *** 24 25Verify Navigation To SNMP Alerts Page 26 [Documentation] Verify navigation to SNMP alerts page. 27 [Tags] Verify_Navigation_To_SNMP_Alerts_Page 28 29 Page Should Contain Element ${xpath_snmp_alerts_heading} 30 31 32Verify Existence Of All Input Boxes In SNMP Alerts Page 33 [Documentation] Verify existence of all sections in SNMP alerts page. 34 [Tags] Verify_Existence_Of_All_Input_Boxes_In_SNMP_Alerts_Page 35 36 Page Should Contain Checkbox ${xpath_select_user} 37 38 39Verify Existence Of All Buttons In SNMP Alerts Page 40 [Documentation] Verify existence of all buttons in SNMP alerts page. 41 [Tags] Verify_Existence_Of_All_Buttons_In_SNMP_Alerts_Page 42 43 Page should Contain Button ${xpath_add_destination} 44 45 46Verify Existence Of All Fields In Add Destination 47 [Documentation] Verify existence of all buttons and fields in add destination page. 48 [Tags] Verify_Existence_Of_All_Button_And_Fields_In_Add_Destination 49 [Teardown] Click Element ${xpath_cancel_button} 50 51 Click Element ${xpath_add_destination} 52 Wait Until Page Contains Element ${xpath_snmp_alert_destination_heading} 53 Page Should Contain Element ${xpath_ip_address_input_button} 54 Page Should Contain Element ${xpath_port_optional_input_button} 55 Page Should Contain Element ${xpath_cancel_button} 56 Page Should Contain Element ${xpath_snmp_add_destination_button} 57 58 59*** Keywords *** 60 61Suite Setup Execution 62 [Documentation] Do test case setup tasks. 63 64 Launch Browser And Login GUI 65 66 Click Element ${xpath_settings_menu} 67 Click Element ${xpath_snmp_alerts_sub_menu} 68 Wait Until Keyword Succeeds 30 sec 10 sec Location Should Contain snmp-alerts 69