blob: 20224e4cf24126b4324cd56647a678eccb9b77d7 [file] [log] [blame]
Rahul Maheshwaribce8f712021-06-01 06:26:48 -05001*** Settings ***
2
3Documentation Test OpenBMC GUI "Dumps" sub-menu of "Health" menu.
4
5Resource ../../lib/gui_resource.robot
6
7Suite Setup Suite Setup Execution
8Suite 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')]
manashsarma16162632021-06-23 02:43:34 -050015${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 Chandrappa563b14a2021-07-26 03:36:34 -050018${xpath_dump_search_global} //*[contains(@id,"searchInput")]
Rahul Maheshwaribce8f712021-06-01 06:26:48 -050019
20
21*** Test Cases ***
22
23Verify 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
30Verify 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
38Verify 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
manashsarma16162632021-06-23 02:43:34 -050044Verify 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 Maheshwaribce8f712021-06-01 06:26:48 -050053
54*** Keywords ***
55
56Suite Setup Execution
57 [Documentation] Do test suite setup tasks.
58
59 Launch Browser And Login GUI
60 Click Element ${xpath_health_menu}
61 Click Element ${xpath_dumps_sub_menu}
62 Wait Until Keyword Succeeds 30 sec 5 sec Location Should Contain dumps