Rahul Maheshwari | bce8f71 | 2021-06-01 06:26:48 -0500 | [diff] [blame] | 1 | *** Settings *** |
| 2 | |
Rahul Maheshwari | 142642d | 2021-08-24 00:00:15 -0500 | [diff] [blame] | 3 | Documentation Test OpenBMC GUI "Dumps" sub-menu of "Logs" menu. |
Rahul Maheshwari | bce8f71 | 2021-06-01 06:26:48 -0500 | [diff] [blame] | 4 | |
| 5 | Resource ../../lib/gui_resource.robot |
| 6 | |
| 7 | Suite Setup Suite Setup Execution |
| 8 | Suite Teardown Close Browser |
| 9 | |
| 10 | |
| 11 | *** Variables *** |
| 12 | |
| 13 | ${xpath_dumps_heading} //h1[text()="Dumps"] |
| 14 | ${xpath_initiate_dump_button} //button[contains(text(),'Initiate dump')] |
manashsarma | 1616263 | 2021-06-23 02:43:34 -0500 | [diff] [blame] | 15 | ${xpath_select_dump_type} //*[@id="selectDumpType"] |
| 16 | ${xpath_dump_from_date} //*[@id="input-from-date"] |
| 17 | ${xpath_dump_to_date} //*[@id="input-to-date"] |
Ashwini Chandrappa | 563b14a | 2021-07-26 03:36:34 -0500 | [diff] [blame] | 18 | ${xpath_dump_search_global} //*[contains(@id,"searchInput")] |
Rahul Maheshwari | bce8f71 | 2021-06-01 06:26:48 -0500 | [diff] [blame] | 19 | |
| 20 | |
| 21 | *** Test Cases *** |
| 22 | |
| 23 | Verify Navigation To Dumps Page |
| 24 | [Documentation] Verify navigation to dumps page. |
| 25 | [Tags] Verify_Navigation_To_Dumps_Page |
| 26 | |
| 27 | Page Should Contain Element ${xpath_dumps_heading} |
| 28 | |
| 29 | |
| 30 | Verify Existence Of All Sections In Dump Page |
| 31 | [Documentation] Verify existence of all sections in dump page. |
| 32 | [Tags] Verify_Existence_Of_All_Sections_In_Dump_Page |
| 33 | |
| 34 | Page Should Contain Initiate dump |
| 35 | Page Should Contain Dumps available on BMC |
| 36 | |
| 37 | |
| 38 | Verify Existence Of All Buttons In Dump Page |
| 39 | [Documentation] Verify existence of all buttons in dump page. |
| 40 | [Tags] Verify_Existence_Of_All_Buttons_In_Dump_Page |
| 41 | |
| 42 | Page Should Contain Element ${xpath_initiate_dump_button} |
| 43 | |
manashsarma | 1616263 | 2021-06-23 02:43:34 -0500 | [diff] [blame] | 44 | Verify Existence Of All Input Boxes In Dump Page |
| 45 | [Documentation] Verify existence of all input boxes in dump page. |
| 46 | [Tags] Verify_Existence_Of_All_Input_Boxes_In_Dump_Page |
| 47 | |
| 48 | Page Should Contain Element ${xpath_select_dump_type} |
| 49 | Page Should Contain Element ${xpath_dump_from_date} |
| 50 | Page Should Contain Element ${xpath_dump_to_date} |
| 51 | Page Should Contain Element ${xpath_dump_search_global} |
| 52 | |
Rahul Maheshwari | bce8f71 | 2021-06-01 06:26:48 -0500 | [diff] [blame] | 53 | |
| 54 | *** Keywords *** |
| 55 | |
| 56 | Suite Setup Execution |
| 57 | [Documentation] Do test suite setup tasks. |
| 58 | |
| 59 | Launch Browser And Login GUI |
Rahul Maheshwari | 142642d | 2021-08-24 00:00:15 -0500 | [diff] [blame] | 60 | Click Element ${xpath_logs_menu} |
Rahul Maheshwari | bce8f71 | 2021-06-01 06:26:48 -0500 | [diff] [blame] | 61 | Click Element ${xpath_dumps_sub_menu} |
| 62 | Wait Until Keyword Succeeds 30 sec 5 sec Location Should Contain dumps |