1*** Settings *** 2 3Documentation Test OpenBMC GUI "Date and time settings" sub-menu of 4... "Server configuration". 5 6Resource ../../lib/resource.robot 7 8Suite Setup Launch Browser And Login OpenBMC GUI 9Suite Teardown Close Browser 10Test Setup Test Setup Execution 11 12 13*** Variables *** 14 15${xpath_set_time_from_ntp} //*[@for="ntp-time"] 16${xpath_add_new_ntp_server} //button[contains(text(), "Add new NTP server")] 17${xpath_set_time_manually} //*[@for="manual-time"] 18${xpath_set_date} //input[@type="date"] 19${xpath_set_time} //input[@type="time"] 20${xpath_set_time_owner} //select[@id="date-time-owner"] 21 22 23*** Test Cases *** 24 25Verify Existence Of All Sections In Date And Time Settings Page 26 [Documentation] Verify existence of all sections in date and time settings 27 ... page. 28 [Tags] Verify_Existence_Of_All_Sections_In_Date_And_Time_Settings_Page 29 30 Page Should Contain Set date and time manually or configure a Network Time 31 ... Protocol (NTP) Server 32 33 34Verify Existence Of All Buttons In Date And Time Settings Page 35 [Documentation] Verify existence of all buttons in date and time settings 36 ... page. 37 [Tags] Verify_Existence_Of_All_Buttons_In_Date_And_Time_Settings_Page 38 39 Page Should Contain Element ${xpath_set_time_from_ntp} 40 Page Should Contain Element ${xpath_add_new_ntp_server} 41 Page Should Contain Element ${xpath_set_time_manually} 42 Page Should Contain Element ${xpath_set_date} 43 Page Should Contain Element ${xpath_set_time} 44 Page Should Contain Element ${xpath_set_time_owner} 45 Page Should Contain Element ${xpath_cancel_button} 46 Page Should Contain Element ${xpath_save_setting_button} 47 48 49*** Keywords *** 50 51Test Setup Execution 52 [Documentation] Do test case setup tasks. 53 54 Wait Until Page Does Not Contain Element ${xpath_refresh_circle} 55 Click Element ${xpath_select_server_configuration} 56 Wait Until Page Does Not Contain Element ${xpath_refresh_circle} 57 Click Element ${xpath_select_date_time_settings} 58 Wait Until Page Contains Date and time settings 59