blob: 224a2e9bd592f54fa550b0a00e78147a360c8dbe [file] [log] [blame]
Sushma M M2cc49a42020-08-12 01:41:41 -05001*** Settings ***
2
3Documentation Test OpenBMC GUI "KVM" sub-menu.
4
5Resource ../../lib/resource.robot
6
7Suite Setup Launch Browser And Login GUI
8Suite Teardown Close Browser
9Test Setup Test Setup Execution
10
11
12*** Variables ***
13${xpath_kvm_header} //h1[text()="KVM"]
14${xpath_new_tab_button} //button[contains(text(),'Open in new tab')]
15${xpath_send_button} //button[contains(text(),'Send Ctrl+Alt+Delete')]
16
17*** Test Cases ***
18
19Verify Existence Of All Sections In KVM Page
20 [Documentation] Verify existence of all sections in KVM page.
21 [Tags] Verify_Existence_Of_All_Sections_In_KVM_Page
22
23 Page Should Contain Element ${xpath_kvm_header}
24 Page Should Contain Access the KVM console
25
26
27Verify Existence Of All Buttons In KVM Page
28 [Documentation] Verify existence of all buttons in kvm page.
29 [Tags] Verify_Existence_Of_All_Buttons_In_Kvm_Page
30
31 Page Should Contain Element ${xpath_new_tab_button}
32
33
34*** Keywords ***
35
36Test Setup Execution
37 [Documentation] Do test case setup tasks.
38
39 Click Element ${xpath_control_menu}
40 Click Element ${xpath_kvm_sub_menu}
41 Wait Until Keyword Succeeds 30 sec 5 sec Location Should Contain kvm