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