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