Rahul Maheshwari | f3fa674 | 2020-05-18 06:24:04 -0500 | [diff] [blame] | 1 | *** Settings *** |
| 2 | |
| 3 | Documentation Test OpenBMC GUI header. |
| 4 | |
Rahul Maheshwari | 41747da | 2020-11-17 09:09:52 -0600 | [diff] [blame] | 5 | Resource ../../lib/gui_resource.robot |
Rahul Maheshwari | f3fa674 | 2020-05-18 06:24:04 -0500 | [diff] [blame] | 6 | |
| 7 | Suite Setup Launch Browser And Login GUI |
| 8 | Suite Teardown Close Browser |
| 9 | |
George Keishing | 0302e9a | 2023-10-12 21:48:35 +0530 | [diff] [blame] | 10 | Force Tags GUI_Header |
Rahul Maheshwari | f3fa674 | 2020-05-18 06:24:04 -0500 | [diff] [blame] | 11 | |
| 12 | *** Variables *** |
| 13 | |
Sushma M M | 840f2d8 | 2020-08-24 04:34:36 -0500 | [diff] [blame] | 14 | ${xpath_header_text} //*[contains(@class, "navbar-text")] |
Rahul Maheshwari | f3fa674 | 2020-05-18 06:24:04 -0500 | [diff] [blame] | 15 | |
Rahul Maheshwari | f3fa674 | 2020-05-18 06:24:04 -0500 | [diff] [blame] | 16 | *** Test Cases *** |
| 17 | |
| 18 | Verify GUI Header Text |
| 19 | [Documentation] Verify text in GUI header. |
| 20 | [Tags] Verify_GUI_Header_Text |
| 21 | |
| 22 | ${gui_header_text}= Get Text ${xpath_header_text} |
| 23 | Should Contain ${gui_header_text} BMC System Management |
| 24 | |
| 25 | |
Sushma M M | 7fe0b42 | 2020-08-19 05:59:24 -0500 | [diff] [blame] | 26 | Verify Server Health Button |
| 27 | [Documentation] Verify event log page on clicking health button. |
| 28 | [Tags] Verify_Server_Health_Button |
| 29 | |
| 30 | Wait Until Element Is Visible ${xpath_server_health_header} |
| 31 | Click Element ${xpath_server_health_header} |
rramyasr-in | 732cc3f | 2022-11-16 05:30:57 -0600 | [diff] [blame] | 32 | Wait Until Page Contains Element ${xpath_event_logs_heading} timeout=15s |
Sushma M M | 7fe0b42 | 2020-08-19 05:59:24 -0500 | [diff] [blame] | 33 | |
| 34 | |
Sushma M M | 0ecc735 | 2020-08-20 01:19:35 -0500 | [diff] [blame] | 35 | Verify Server Power Button |
| 36 | [Documentation] Verify server power operations page on clicking power button. |
| 37 | [Tags] Verify_Server_Power_Button |
| 38 | |
| 39 | Wait Until Element Is Visible ${xpath_server_power_header} |
| 40 | Click Element ${xpath_server_power_header} |
| 41 | Wait Until Page Contains Server power operations |
| 42 | |
| 43 | |
Rahul Maheshwari | f3fa674 | 2020-05-18 06:24:04 -0500 | [diff] [blame] | 44 | Verify GUI Logout |
| 45 | [Documentation] Verify OpenBMC GUI logout. |
| 46 | [Tags] Verify_GUI_Logout |
| 47 | |
Sushma M M | ff03a21 | 2020-08-18 07:32:50 -0500 | [diff] [blame] | 48 | Click Element ${xpath_root_button_menu} |
Rahul Maheshwari | f3fa674 | 2020-05-18 06:24:04 -0500 | [diff] [blame] | 49 | Click Element ${xpath_logout_button} |
Sushma M M | 840f2d8 | 2020-08-24 04:34:36 -0500 | [diff] [blame] | 50 | Wait Until Page Contains Element ${xpath_login_button} timeout=15s |
rramyasr-in | 9e2c96f | 2023-01-24 07:59:34 -0600 | [diff] [blame] | 51 | Wait Until Element Is Not Visible ${xpath_page_loading_progress_bar} timeout=30 |
rramyasr-in | 48734d7 | 2023-10-27 03:50:50 -0500 | [diff] [blame] | 52 | |
| 53 | |
| 54 | Verify System Serial And Model Number In GUI Header Page |
| 55 | [Documentation] Verify system serial and model number in GUI header page. |
| 56 | [Tags] Verify_System_Serial_And_Model_Number_In_GUI_Header_Page |
| 57 | |
| 58 | # Model. |
| 59 | ${redfish_model_number}= Redfish.Get Attribute ${SYSTEM_BASE_URI} Model |
| 60 | Element Should Be Visible //*[@data-test-id='appHeader-container-overview'] |
| 61 | ... /following-sibling::*/*[text()='${redfish_model_number}'] |
| 62 | |
| 63 | # Serial Number. |
| 64 | ${redfish_serial_number}= Redfish.Get Attribute ${SYSTEM_BASE_URI} SerialNumber |
| 65 | Element Should Be Visible //*[@data-test-id='appHeader-container-overview'] |
| 66 | ... /following-sibling::*/*[text()='${redfish_serial_number}'] |