1*** Settings *** 2 3Documentation Test OpenBMC GUI "Progress logs" sub-menu. 4 5Resource ../../lib/gui_resource.robot 6Resource ../../../lib/logging_utils.robot 7 8Suite Setup Suite Setup Execution 9Suite Teardown Close Browser 10 11Force Tags Progress_Logs_Sub_Menu 12 13*** Variables *** 14 15${xpath_progress_logs_heading} //h1[text()="Progress logs"] 16${xpath_search_logs_input} //*[contains(@id,"searchInput")] 17${xpath_from_date_input} //*[@id="input-from-date"] 18${xpath_to_date_input} //*[@id="input-to-date"] 19 20 21*** Test Cases *** 22 23Verify Navigation To Progress Logs Page 24 [Documentation] Verify navigation to progress logs page. 25 [Tags] Verify_Navigation_To_Progress_Logs_Page 26 27 Page Should Contain Element ${xpath_progress_logs_heading} 28 29 30Verify Existence Of All Input Boxes In Progress Logs Page 31 [Documentation] Verify existence of all input boxes in progress logs page. 32 [Tags] Verify_Existence_Of_All_Input_Boxes_In_Progress_Logs_Page 33 34 # Search logs. 35 Page Should Contain Element ${xpath_search_logs_input} 36 37 # Date filter. 38 Page Should Contain Element ${xpath_from_date_input} limit=1 39 Page Should Contain Element ${xpath_to_date_input} limit=1 40 41 42Verify Existence Of All Sections In Progress Logs Page 43 [Documentation] Verify existence of all sections in Progress Logs page. 44 [Tags] Verify_Existence_Of_All_Sections_In_Progress_Logs_Page 45 46 Page Should Contain Progress logs 47 48 49Verify Existence Of All Fields In Progress Logs Page 50 [Documentation] Verify existence of all fields in progress Logs page. 51 [Tags] Verify_Existence_Of_All_Fields_In_Progress_Logs_Page 52 [Template] Page Should Contain 53 54 # Expected parameters 55 Created 56 Time stamp offset 57 Boot count 58 Code 59 60 61*** Keywords *** 62 63Suite Setup Execution 64 [Documentation] Do suite setup tasks. 65 66 Launch Browser And Login GUI 67 Click Element ${xpath_logs_menu} 68 Click Element ${xpath_progress_logs_sub_menu} 69 Wait Until Keyword Succeeds 30 sec 5 sec Location Should Contain post-code-logs 70 Wait Until Element Is Not Visible ${xpath_page_loading_progress_bar} timeout=30 71