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 | |
Rahul Maheshwari | 41747da | 2020-11-17 09:09:52 -0600 | [diff] [blame] | 5 | Resource ../../lib/gui_resource.robot |
Sushma M M | 2cc49a4 | 2020-08-12 01:41:41 -0500 | [diff] [blame] | 6 | |
| 7 | Suite Setup Launch Browser And Login GUI |
| 8 | Suite Teardown Close Browser |
| 9 | Test Setup Test Setup Execution |
| 10 | |
| 11 | |
| 12 | *** Variables *** |
Rahul Maheshwari | 317c710 | 2020-08-30 21:10:22 -0500 | [diff] [blame] | 13 | |
Sushma M M | 2cc49a4 | 2020-08-12 01:41:41 -0500 | [diff] [blame] | 14 | ${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 Maheshwari | 317c710 | 2020-08-30 21:10:22 -0500 | [diff] [blame] | 18 | |
Sushma M M | 2cc49a4 | 2020-08-12 01:41:41 -0500 | [diff] [blame] | 19 | *** Test Cases *** |
| 20 | |
Rahul Maheshwari | 317c710 | 2020-08-30 21:10:22 -0500 | [diff] [blame] | 21 | Verify 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 M | 2cc49a4 | 2020-08-12 01:41:41 -0500 | [diff] [blame] | 28 | Verify 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 | |
| 36 | Verify 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 | |
| 45 | Test 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 |