blob: e09d6d3989e3ab57521171462fff5f9d770aa6e7 [file] [log] [blame]
Rahul Maheshwari7ea47c42019-10-29 00:33:15 -05001*** Settings ***
2
3Documentation Test OpenBMC GUI "Virtual Media" sub-menu of "Server control".
4
5Resource ../../lib/resource.robot
6
7Suite Setup Launch Browser And Login OpenBMC GUI
8Suite Teardown Close Browser
9Test Setup Test Setup Execution
10
11
12*** Variables ***
13
14${xpath_start_button} //*[@class='vm__upload-start']
15${xpath_choose_file_button} //*[@class='vm__upload-choose-label']
16
17
18*** Test Cases ***
19
George Keishing58042c02019-11-12 12:35:26 -060020Verify Existence Of All Sections In Virtual Media Page
21 [Documentation] Verify existence of all sections in virtual media page.
22 [Tags] Verify_Existence_Of_All_Sections_In_Virtual_Media_Page
Rahul Maheshwari7ea47c42019-10-29 00:33:15 -050023
24 Page Should Contain Virtual media device
25
26
George Keishing58042c02019-11-12 12:35:26 -060027Verify Existence Of All Buttons In Virtual Media Page
Rahul Maheshwari7ea47c42019-10-29 00:33:15 -050028 [Documentation] Verify existence of all buttons in virtual media page.
George Keishing58042c02019-11-12 12:35:26 -060029 [Tags] Verify_Existence_Of_All_Buttons_In_Virtual_Media_Page
Rahul Maheshwari7ea47c42019-10-29 00:33:15 -050030
31 Page Should Contain Element ${xpath_start_button}
32 Page Should Contain Element ${xpath_choose_file_button}
33
34
35*** Keywords ***
36
37Test Setup Execution
38 [Documentation] Do test case setup tasks.
39
40 Wait Until Page Does Not Contain Element ${xpath_refresh_circle}
41 Click Element ${xpath_select_server_control}
42 Wait Until Page Does Not Contain Element ${xpath_refresh_circle}
43 Click Element ${xpath_select_virtual_media}
44 Wait Until Page Contains Virtual media