1*f86353a3SRahul Maheshwari*** Settings ***
2*f86353a3SRahul Maheshwari
3*f86353a3SRahul MaheshwariDocumentation  Test OpenBMC GUI "SOL console" sub-menu of "Server control".
4*f86353a3SRahul Maheshwari
5*f86353a3SRahul MaheshwariResource        ../../lib/resource.robot
6*f86353a3SRahul Maheshwari
7*f86353a3SRahul MaheshwariSuite Setup     Launch Browser And Login OpenBMC GUI
8*f86353a3SRahul MaheshwariSuite Teardown  Close Browser
9*f86353a3SRahul MaheshwariTest Setup      Test Setup Execution
10*f86353a3SRahul Maheshwari
11*f86353a3SRahul Maheshwari
12*f86353a3SRahul Maheshwari*** Variables ***
13*f86353a3SRahul Maheshwari
14*f86353a3SRahul Maheshwari${xpath_open_in_new_tab_button}  //button[text()[contains(.,"Open in new tab")]]
15*f86353a3SRahul Maheshwari
16*f86353a3SRahul Maheshwari
17*f86353a3SRahul Maheshwari*** Test Cases ***
18*f86353a3SRahul Maheshwari
19*f86353a3SRahul MaheshwariVerify Existence Of All Sections In SOL Console Page
20*f86353a3SRahul Maheshwari    [Documentation]  Verify existence of all sections in SOL console page.
21*f86353a3SRahul Maheshwari    [Tags]  Verify_Existence_Of_All_Sections_In_SOL_Console_Page
22*f86353a3SRahul Maheshwari
23*f86353a3SRahul Maheshwari    Page Should Contain  Access the Serial over LAN console
24*f86353a3SRahul Maheshwari
25*f86353a3SRahul Maheshwari
26*f86353a3SRahul MaheshwariVerify Existence Of All Buttons In SOL Console Page
27*f86353a3SRahul Maheshwari    [Documentation]  Verify existence of all buttons in SOL console page.
28*f86353a3SRahul Maheshwari    [Tags]  Verify_Existence_Of_All_Buttons_In_SOL_Console_Page
29*f86353a3SRahul Maheshwari
30*f86353a3SRahul Maheshwari    Page Should Contain Element  ${xpath_open_in_new_tab_button}
31*f86353a3SRahul Maheshwari
32*f86353a3SRahul Maheshwari
33*f86353a3SRahul Maheshwari*** Keywords ***
34*f86353a3SRahul Maheshwari
35*f86353a3SRahul MaheshwariTest Setup Execution
36*f86353a3SRahul Maheshwari    [Documentation]  Do test case setup tasks.
37*f86353a3SRahul Maheshwari
38*f86353a3SRahul Maheshwari    Wait Until Page Does Not Contain Element  ${xpath_refresh_circle}
39*f86353a3SRahul Maheshwari    Click Element  ${xpath_select_server_control}
40*f86353a3SRahul Maheshwari    Wait Until Page Does Not Contain Element  ${xpath_refresh_circle}
41*f86353a3SRahul Maheshwari    Click Element  ${xpath_select_sol_console}
42*f86353a3SRahul Maheshwari    Wait Until Page Contains  Serial over LAN console
43