Sushma M M | 2cc49a4 | 2020-08-12 01:41:41 -0500 | [diff] [blame] | 1 | *** Settings *** |
| 2 | |
| 3 | Documentation Test OpenBMC GUI "KVM" sub-menu. |
| 4 | |
| 5 | Resource ../../lib/resource.robot |
| 6 | |
| 7 | Suite Setup Launch Browser And Login GUI |
| 8 | Suite Teardown Close Browser |
| 9 | Test 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 | |
| 19 | Verify 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 | |
| 27 | Verify 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 | |
| 36 | Test 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 |