blob: fe5602697917741512f891dc5793a2aab799814c [file] [log] [blame]
*** Settings ***
Documentation Test OpenBMC GUI "Dumps" sub-menu of "Health" menu.
Resource ../../lib/gui_resource.robot
Suite Setup Suite Setup Execution
Suite Teardown Close Browser
*** Variables ***
${xpath_dumps_heading} //h1[text()="Dumps"]
${xpath_initiate_dump_button} //button[contains(text(),'Initiate dump')]
*** Test Cases ***
Verify Navigation To Dumps Page
[Documentation] Verify navigation to dumps page.
[Tags] Verify_Navigation_To_Dumps_Page
Page Should Contain Element ${xpath_dumps_heading}
Verify Existence Of All Sections In Dump Page
[Documentation] Verify existence of all sections in dump page.
[Tags] Verify_Existence_Of_All_Sections_In_Dump_Page
Page Should Contain Initiate dump
Page Should Contain Dumps available on BMC
Verify Existence Of All Buttons In Dump Page
[Documentation] Verify existence of all buttons in dump page.
[Tags] Verify_Existence_Of_All_Buttons_In_Dump_Page
Page Should Contain Element ${xpath_initiate_dump_button}
*** Keywords ***
Suite Setup Execution
[Documentation] Do test suite setup tasks.
Launch Browser And Login GUI
Click Element ${xpath_health_menu}
Click Element ${xpath_dumps_sub_menu}
Wait Until Keyword Succeeds 30 sec 5 sec Location Should Contain dumps