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"] |
| 18 | ${xpath_select_all_checkbox} //*[@data-test-id="postCode-checkbox-selectAll"] |
| 19 | ${xpath_progress_action_export} //*[contains(text(),"Export all")] |
| 20 | |
| 21 | |
| 22 | *** Test Cases *** |
| 23 | |
| 24 | Verify Navigation To Progress Logs Page |
| 25 | [Documentation] Verify navigation to progress logs page. |
| 26 | [Tags] Verify_Navigation_To_Progress_Logs_Page |
| 27 | |
| 28 | Page Should Contain Element ${xpath_progress_logs_heading} |
| 29 | |
| 30 | |
| 31 | Verify Existence Of All Buttons In Progress Logs Page |
| 32 | [Documentation] Verify existence of all buttons in progress logs page. |
| 33 | [Tags] Verify_Existence_Of_All_Buttons_In_Progress_Logs_Page |
| 34 | |
| 35 | Page Should Contain Element ${xpath_select_all_checkbox} limit=1 |
| 36 | Page Should Contain Element ${xpath_progress_action_export} limit=1 |
| 37 | |
| 38 | |
| 39 | Verify Existence Of All Input Boxes In Progress Logs Page |
| 40 | [Documentation] Verify existence of all input boxes in progress logs page. |
| 41 | [Tags] Verify_Existence_Of_All_Input_Boxes_In_Progress_Logs_Page |
| 42 | |
| 43 | # Search logs. |
| 44 | Page Should Contain Element ${xpath_search_logs_input} |
| 45 | |
| 46 | # Date filter. |
| 47 | Page Should Contain Element ${xpath_from_date_input} limit=1 |
| 48 | Page Should Contain Element ${xpath_to_date_input} limit=1 |
| 49 | |
| 50 | |
| 51 | *** Keywords *** |
| 52 | |
| 53 | Suite Setup Execution |
| 54 | [Documentation] Do suite setup tasks. |
| 55 | |
| 56 | Launch Browser And Login GUI |
| 57 | Click Element ${xpath_logs_menu} |
| 58 | Click Element ${xpath_progress_logs_sub_menu} |
| 59 | Wait Until Keyword Succeeds 30 sec 5 sec Location Should Contain post-code-logs |