Rahul Maheshwari | bce8f71 | 2021-06-01 06:26:48 -0500 | [diff] [blame] | 1 | *** Settings *** |
| 2 | |
| 3 | Documentation Test OpenBMC GUI "Dumps" sub-menu of "Health" menu. |
| 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')] |
| 15 | |
| 16 | |
| 17 | *** Test Cases *** |
| 18 | |
| 19 | Verify Navigation To Dumps Page |
| 20 | [Documentation] Verify navigation to dumps page. |
| 21 | [Tags] Verify_Navigation_To_Dumps_Page |
| 22 | |
| 23 | Page Should Contain Element ${xpath_dumps_heading} |
| 24 | |
| 25 | |
| 26 | Verify Existence Of All Sections In Dump Page |
| 27 | [Documentation] Verify existence of all sections in dump page. |
| 28 | [Tags] Verify_Existence_Of_All_Sections_In_Dump_Page |
| 29 | |
| 30 | Page Should Contain Initiate dump |
| 31 | Page Should Contain Dumps available on BMC |
| 32 | |
| 33 | |
| 34 | Verify Existence Of All Buttons In Dump Page |
| 35 | [Documentation] Verify existence of all buttons in dump page. |
| 36 | [Tags] Verify_Existence_Of_All_Buttons_In_Dump_Page |
| 37 | |
| 38 | Page Should Contain Element ${xpath_initiate_dump_button} |
| 39 | |
| 40 | |
| 41 | *** Keywords *** |
| 42 | |
| 43 | Suite Setup Execution |
| 44 | [Documentation] Do test suite setup tasks. |
| 45 | |
| 46 | Launch Browser And Login GUI |
| 47 | Click Element ${xpath_health_menu} |
| 48 | Click Element ${xpath_dumps_sub_menu} |
| 49 | Wait Until Keyword Succeeds 30 sec 5 sec Location Should Contain dumps |