blob: d377a5a4a81616aeffe42901899f1e74572ba5c8 [file] [log] [blame]
Rahul Maheshwari24ae96c2021-06-01 06:58:11 -05001*** Settings ***
2
3Documentation Test suite for OpenBMC GUI "Factory reset" sub-menu of "Control" menu.
4
5Resource ../../lib/gui_resource.robot
6
7Suite Setup Suite Setup Execution
8Suite 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
19Verify 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
26Verify 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
33Verify 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
42Suite 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