blob: 9aedb6372030afc626f0c190fe7a3fd2b3102b29 [file] [log] [blame]
Rahul Maheshwarif3fa6742020-05-18 06:24:04 -05001*** Settings ***
2
3Documentation Test OpenBMC GUI header.
4
Rahul Maheshwari41747da2020-11-17 09:09:52 -06005Resource ../../lib/gui_resource.robot
Rahul Maheshwarif3fa6742020-05-18 06:24:04 -05006
7Suite Setup Launch Browser And Login GUI
8Suite Teardown Close Browser
9
10
11*** Variables ***
12
Sushma M M840f2d82020-08-24 04:34:36 -050013${xpath_header_text} //*[contains(@class, "navbar-text")]
Rahul Maheshwarif3fa6742020-05-18 06:24:04 -050014
15
16*** Test Cases ***
17
18Verify 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 M7fe0b422020-08-19 05:59:24 -050026Verify 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-in732cc3f2022-11-16 05:30:57 -060032 Wait Until Page Contains Element ${xpath_event_logs_heading} timeout=15s
Sushma M M7fe0b422020-08-19 05:59:24 -050033
34
Sushma M M0ecc7352020-08-20 01:19:35 -050035Verify 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 Maheshwarif3fa6742020-05-18 06:24:04 -050044Verify GUI Logout
45 [Documentation] Verify OpenBMC GUI logout.
46 [Tags] Verify_GUI_Logout
47
Sushma M Mff03a212020-08-18 07:32:50 -050048 Click Element ${xpath_root_button_menu}
Rahul Maheshwarif3fa6742020-05-18 06:24:04 -050049 Click Element ${xpath_logout_button}
Sushma M M840f2d82020-08-24 04:34:36 -050050 Wait Until Page Contains Element ${xpath_login_button} timeout=15s
rramyasr-in9e2c96f2023-01-24 07:59:34 -060051 Wait Until Element Is Not Visible ${xpath_page_loading_progress_bar} timeout=30