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 | |
George Keishing | 0302e9a | 2023-10-12 21:48:35 +0530 | [diff] [blame^] | 11 | Force Tags Progress_Logs_Sub_Menu |
Ashwini Chandrappa | 71c003f | 2021-08-26 06:50:46 -0500 | [diff] [blame] | 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"] |
Ashwini Chandrappa | 71c003f | 2021-08-26 06:50:46 -0500 | [diff] [blame] | 19 | |
| 20 | |
| 21 | *** Test Cases *** |
| 22 | |
| 23 | Verify 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 | |
Ashwini Chandrappa | 71c003f | 2021-08-26 06:50:46 -0500 | [diff] [blame] | 30 | Verify 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 | |
rramyasr-in | 6b664a2 | 2023-01-03 02:46:02 -0600 | [diff] [blame] | 42 | Verify 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 | |
| 49 | Verify 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 | |
Ashwini Chandrappa | 71c003f | 2021-08-26 06:50:46 -0500 | [diff] [blame] | 61 | *** Keywords *** |
| 62 | |
| 63 | Suite 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 |
rramyasr-in | 9e2c96f | 2023-01-24 07:59:34 -0600 | [diff] [blame] | 70 | Wait Until Element Is Not Visible ${xpath_page_loading_progress_bar} timeout=30 |