blob: b65c7f6d591911facfdabb0739456085b5b32866 [file] [log] [blame]
Sushma M M2cc49a42020-08-12 01:41:41 -05001*** Settings ***
2
3Documentation Test OpenBMC GUI "KVM" sub-menu.
4
Rahul Maheshwari41747da2020-11-17 09:09:52 -06005Resource ../../lib/gui_resource.robot
Sushma M M2cc49a42020-08-12 01:41:41 -05006
7Suite Setup Launch Browser And Login GUI
8Suite Teardown Close Browser
9Test Setup Test Setup Execution
10
11
12*** Variables ***
Rahul Maheshwari317c7102020-08-30 21:10:22 -050013
Sushma M M2cc49a42020-08-12 01:41:41 -050014${xpath_kvm_header} //h1[text()="KVM"]
15${xpath_new_tab_button} //button[contains(text(),'Open in new tab')]
16${xpath_send_button} //button[contains(text(),'Send Ctrl+Alt+Delete')]
17
Rahul Maheshwari317c7102020-08-30 21:10:22 -050018
Sushma M M2cc49a42020-08-12 01:41:41 -050019*** Test Cases ***
20
Rahul Maheshwari317c7102020-08-30 21:10:22 -050021Verify Navigation To KVM Page
22 [Documentation] Verify navigation to KVM page.
23 [Tags] Verify_Navigation_To_KVM_Page
24
25 Page Should Contain Element ${xpath_kvm_header}
26
27
Sushma M M2cc49a42020-08-12 01:41:41 -050028Verify Existence Of All Sections In KVM Page
29 [Documentation] Verify existence of all sections in KVM page.
30 [Tags] Verify_Existence_Of_All_Sections_In_KVM_Page
31
32 Page Should Contain Element ${xpath_kvm_header}
33 Page Should Contain Access the KVM console
34
35
36Verify Existence Of All Buttons In KVM Page
37 [Documentation] Verify existence of all buttons in kvm page.
38 [Tags] Verify_Existence_Of_All_Buttons_In_Kvm_Page
39
40 Page Should Contain Element ${xpath_new_tab_button}
41
42
43*** Keywords ***
44
45Test Setup Execution
46 [Documentation] Do test case setup tasks.
47
48 Click Element ${xpath_control_menu}
49 Click Element ${xpath_kvm_sub_menu}
50 Wait Until Keyword Succeeds 30 sec 5 sec Location Should Contain kvm