1*7ea47c47SRahul Maheshwari*** Settings ***
2*7ea47c47SRahul Maheshwari
3*7ea47c47SRahul MaheshwariDocumentation  Test OpenBMC GUI "Virtual Media" sub-menu of "Server control".
4*7ea47c47SRahul Maheshwari
5*7ea47c47SRahul MaheshwariResource        ../../lib/resource.robot
6*7ea47c47SRahul Maheshwari
7*7ea47c47SRahul MaheshwariSuite Setup     Launch Browser And Login OpenBMC GUI
8*7ea47c47SRahul MaheshwariSuite Teardown  Close Browser
9*7ea47c47SRahul MaheshwariTest Setup      Test Setup Execution
10*7ea47c47SRahul Maheshwari
11*7ea47c47SRahul Maheshwari
12*7ea47c47SRahul Maheshwari*** Variables ***
13*7ea47c47SRahul Maheshwari
14*7ea47c47SRahul Maheshwari${xpath_start_button}        //*[@class='vm__upload-start']
15*7ea47c47SRahul Maheshwari${xpath_choose_file_button}  //*[@class='vm__upload-choose-label']
16*7ea47c47SRahul Maheshwari
17*7ea47c47SRahul Maheshwari
18*7ea47c47SRahul Maheshwari*** Test Cases ***
19*7ea47c47SRahul Maheshwari
20*7ea47c47SRahul MaheshwariVerify Existence Of All Sections In Virtaul Media Page
21*7ea47c47SRahul Maheshwari    [Documentation]  Verify existence of all sections in virtaul media page.
22*7ea47c47SRahul Maheshwari    [Tags]  Verify_Existence_Of_All_Sections_In_Virtaul_Media_Page
23*7ea47c47SRahul Maheshwari
24*7ea47c47SRahul Maheshwari    Page Should Contain  Virtual media device
25*7ea47c47SRahul Maheshwari
26*7ea47c47SRahul Maheshwari
27*7ea47c47SRahul MaheshwariVerify Existence Of All Buttons In Virtaul Media Page
28*7ea47c47SRahul Maheshwari    [Documentation]  Verify existence of all buttons in virtual media page.
29*7ea47c47SRahul Maheshwari    [Tags]  Verify_Existence_Of_All_Buttons_In_Virtaul_Media_Page
30*7ea47c47SRahul Maheshwari
31*7ea47c47SRahul Maheshwari    Page Should Contain Element  ${xpath_start_button}
32*7ea47c47SRahul Maheshwari    Page Should Contain Element  ${xpath_choose_file_button}
33*7ea47c47SRahul Maheshwari
34*7ea47c47SRahul Maheshwari
35*7ea47c47SRahul Maheshwari*** Keywords ***
36*7ea47c47SRahul Maheshwari
37*7ea47c47SRahul MaheshwariTest Setup Execution
38*7ea47c47SRahul Maheshwari    [Documentation]  Do test case setup tasks.
39*7ea47c47SRahul Maheshwari
40*7ea47c47SRahul Maheshwari    Wait Until Page Does Not Contain Element  ${xpath_refresh_circle}
41*7ea47c47SRahul Maheshwari    Click Element  ${xpath_select_server_control}
42*7ea47c47SRahul Maheshwari    Wait Until Page Does Not Contain Element  ${xpath_refresh_circle}
43*7ea47c47SRahul Maheshwari    Click Element  ${xpath_select_virtual_media}
44*7ea47c47SRahul Maheshwari    Wait Until Page Contains  Virtual media
45