Rahul Maheshwari | 24ae96c | 2021-06-01 06:58:11 -0500 | [diff] [blame] | 1 | *** Settings *** |
| 2 | |
| 3 | Documentation Test suite for OpenBMC GUI "Factory reset" sub-menu of "Control" 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_factory_reset_heading} //h1[text()="Factory reset"] |
| 14 | ${xpath_reset_button} //button[contains(text(),'Reset')] |
| 15 | |
| 16 | |
| 17 | *** Test Cases *** |
| 18 | |
| 19 | Verify Navigation To Factory Reset Page |
| 20 | [Documentation] Verify navigation to factory reset page. |
| 21 | [Tags] Verify_Navigation_To_Factory_Reset_Page |
| 22 | |
| 23 | Page Should Contain Element ${xpath_factory_reset_heading} |
| 24 | |
| 25 | |
| 26 | Verify Existence Of All Sections In Factory Reset Page |
| 27 | [Documentation] Verify existence of all sections in factory reset page. |
| 28 | [Tags] Verify_Existence_Of_All_Sections_In_Factory_Reset_Page |
| 29 | |
| 30 | Page Should Contain Reset options |
| 31 | |
| 32 | |
| 33 | Verify Existence Of All Buttons In Factory Reset Page |
| 34 | [Documentation] Verify existence of all buttons in factory reset page. |
| 35 | [Tags] Verify_Existence_Of_All_Buttons_In_Factory_Reset_Page |
| 36 | |
| 37 | Page Should Contain Element ${xpath_reset_button} |
| 38 | |
| 39 | |
| 40 | *** Keywords *** |
| 41 | |
| 42 | Suite Setup Execution |
| 43 | [Documentation] Do test suite setup tasks. |
| 44 | |
| 45 | Launch Browser And Login GUI |
| 46 | Click Element ${xpath_control_menu} |
| 47 | Click Element ${xpath_factory_reset_sub_menu} |
| 48 | Wait Until Keyword Succeeds 30 sec 5 sec Location Should Contain factory-reset |