Remove GUI test bucket which is based on Angular
Changes:
- GUI implementation with Angular is old and we
are using GUI with VUE3 implementation.
Note: If you still need this code for your testing
use the last stable branch v6.0-stable
Tested:
- NA
Change-Id: Ieba58055fd987c18edd24e3ae0b4b234f18def7c
Signed-off-by: Sridevi Ramesh <sridevra@in.ibm.com>
diff --git a/gui/test/access_control/test_obmc_gui_certificate.robot b/gui/test/access_control/test_obmc_gui_certificate.robot
deleted file mode 100644
index 9446340..0000000
--- a/gui/test/access_control/test_obmc_gui_certificate.robot
+++ /dev/null
@@ -1,47 +0,0 @@
-*** Settings ***
-
-Documentation Test OpenBMC GUI "Certificate management" sub-menu of
-... "Server configuration".
-
-Resource ../../lib/resource.robot
-
-Suite Setup Launch Browser And Login OpenBMC GUI
-Suite Teardown Close Browser
-Test Setup Test Setup Execution
-
-Test Tags OBMC_GUI_Certificate
-
-*** Variables ***
-
-${xpath_select_certificate_management} //a[@href='#/access-control/ssl-certificates']
-${xpath_select_access_control} //*[@id="nav__top-level"]/li[5]/button
-${xpath_add_certificate_button} //*[contains(text(), "Add new certificate")]
-
-*** Test Cases ***
-
-Verify Existence Of All Sections In Certificate Page
- [Documentation] Verify existence of all sections in certificate page.
- [Tags] Verify_Existence_Of_All_Sections_In_Certificate_Page
-
- Page should contain Certificate
- Page should contain Valid from
- Page should contain Valid until
-
-
-Verify Existence Of Add Certificate Button
- [Documentation] Verify existence of add certificate button.
- [Tags] Verify_Existence_Of_Add_Certificate_Button
-
- Page Should Contain Element ${xpath_add_certificate_button}
-
-
-*** Keywords ***
-
-Test Setup Execution
- [Documentation] Do test case setup tasks.
-
- Wait Until Page Does Not Contain Element ${xpath_refresh_circle}
- Click Element ${xpath_select_access_control}
- Wait Until Page Does Not Contain Element ${xpath_refresh_circle}
- Click Element ${xpath_select_certificate_management}
- Wait Until Page Contains SSL certificates
diff --git a/gui/test/access_control/test_obmc_gui_ldap.robot b/gui/test/access_control/test_obmc_gui_ldap.robot
deleted file mode 100644
index 7503156..0000000
--- a/gui/test/access_control/test_obmc_gui_ldap.robot
+++ /dev/null
@@ -1,67 +0,0 @@
-*** Settings ***
-
-Documentation Test OpenBMC GUI "LDAP" sub-menu of "Access control".
-
-Resource ../../lib/resource.robot
-
-Suite Setup Launch Browser And Login OpenBMC GUI
-Suite Teardown Close Browser
-Test Setup Test Setup Execution
-
-Test Tags OBMC_GUI_LDAP
-
-*** Variables ***
-
-${xpath_enable_ldap_checkbox} //*[@id='ldap-auth-label']
-${xpath_secure_ldap_checkbox} //*[@id='use-ssl']
-${xpath_openl_ldap_radio_button} //input[@id='open-ldap']
-${xpath_active_directory_radio_button} //input[@id='active-directory']
-${xpath_save_button} //button[contains(text(),'Save')]
-${xpath_reset_button} //button[contains(text(),'Reset')]
-${xpath_add_role_group_button} //button[@type='button']//*[contains(text(),'Add role group')]
-${xpath_remove_role_groups_button} //button[@type='button']//*[contains(text(),'Remove role groups')]
-
-*** Test Cases ***
-
-Verify Existence Of All Sections In LDAP Page
- [Documentation] Verify existence of all sections in LDAP page.
- [Tags] Verify_Existence_Of_All_Sections_In_LDAP_Page
-
- Page Should Contain Settings
- Page Should Contain Role groups
-
-
-Verify Existence Of All Buttons In LDAP Page
- [Documentation] Verify existence of all buttons in LDAP page.
- [Tags] Verify_Existence_Of_All_Buttons_In_LDAP_Page
-
- # Buttons under settings section
- Page Should Contain Element ${xpath_openl_ldap_radio_button}
- Page Should Contain Element ${xpath_active_directory_radio_button}
- Page Should Contain Element ${xpath_save_button}
- Page Should Contain Element ${xpath_reset_button}
-
- # Buttons under role groups section
- Page Should Contain Element ${xpath_add_role_group_button}
- Page Should Contain Element ${xpath_remove_role_groups_button}
-
-
-Verify Existence Of All Checkboxes In LDAP Page
- [Documentation] Verify existence of all checkboxes in LDAP page.
- [Tags] Verify_Existence_Of_All_Checkboxes_In_LDAP_Page
-
- # Checkboxes under settings section
- Page Should Contain Element ${xpath_enable_ldap_checkbox}
- Page Should Contain Element ${xpath_secure_ldap_checkbox}
-
-
-*** Keywords ***
-
-Test Setup Execution
- [Documentation] Do test case setup tasks.
-
- Wait Until Page Does Not Contain Element ${xpath_refresh_circle}
- Click Element ${xpath_select_access_control}
- Wait Until Page Does Not Contain Element ${xpath_refresh_circle}
- Click Element ${xpath_select_ldap}
- Wait Until Page Contains Configure LDAP settings and manage role groups
diff --git a/gui/test/access_control/test_obmc_gui_local_users.robot b/gui/test/access_control/test_obmc_gui_local_users.robot
deleted file mode 100644
index 5f19791..0000000
--- a/gui/test/access_control/test_obmc_gui_local_users.robot
+++ /dev/null
@@ -1,168 +0,0 @@
-*** Settings ***
-
-Documentation Test OpenBMC GUI "Local users" sub-menu of "Access control".
-
-Resource ../../lib/resource.robot
-
-Suite Setup Launch Browser And Login OpenBMC GUI
-Suite Teardown Close Browser
-Test Setup Test Setup Execution
-Test Tags Obmc_Gui_Local_Users
-
-*** Variables ***
-
-${xpath_select_user} //input[contains(@class,"bmc-table__checkbox-input")]
-${xpath_edit_user} //button[@aria-label="Edit"]
-${xpath_delete_user} //button[@aria-label="Delete"]
-${xpath_account_policy} //button[text()[contains(.,"Account policy settings")]]
-${xpath_add_user} //button[text()[contains(.,"Add user")]]
-${xpath_enable_user} //label[text()[contains(.,"Enabled")]]
-${xpath_disable_user} //label[text()[contains(.,"Disabled")]]
-${xpath_input_user} //input[@id="username"]
-${xpath_select_privilege} //select[@id="privilege"]
-${xpath_input_password} //input[@id="password"]
-${xpath_confirm_password} //input[@id="passwordConfirm"]
-${xpath_remove_button} //button[text()[contains(.,"Remove")]]
-
-*** Test Cases ***
-
-Verify Existence Of All Sections In Local User Management Page
- [Documentation] Verify existence of all sections in local user management page.
- [Tags] Verify_Existence_Of_All_Sections_In_Local_User_Management_Page
-
- Page should contain View privilege role descriptions
-
-
-Verify Existence Of All Buttons In Local User Management Page
- [Documentation] Verify existence of all buttons in local user management page.
- [Tags] Verify_Existence_Of_All_Buttons_In_Local_User_Management_Page
-
- Page should contain Button ${xpath_account_policy}
- Page should contain Button ${xpath_add_user}
- Page Should Contain Button ${xpath_edit_user}
- Page Should Contain Button ${xpath_delete_user}
-
-
-Verify Existence Of All Input Boxes In Local User Management Page
- [Documentation] Verify existence of all input boxes in local user management page.
- [Tags] Verify_Existence_Of_All_Input_Boxes_In_Local_User_Management_Page
-
- Page Should Contain Checkbox ${xpath_select_user}
-
-
-Add User And Verify
- [Documentation] Add user and verify.
- [Tags] Add_User_And_Verify
-
- # Confirm same user does not exist.
- Delete User testUser1
- Add User testUser1 testUserPwd1 Administrator
- Test Login testUser1 testUserPwd1
-
-
-Delete User And Verify
- [Documentation] Delete user and verify.
- [Tags] Delete_User_And_Verify
-
- # Confirm same user does not exist.
- Delete User testUser2
- Add User testUser2 testUserPwd2 Callback
- Delete User testUser2
- Click Element ${xpath_select_refresh_button}
- Wait Until Page Does Not Contain Element ${xpath_refresh_circle}
- Page Should Not Contain testUser2
- Test Login testUser2 testUserPwd2 ${False}
-
-
-*** Keywords ***
-
-Test Setup Execution
- [Documentation] Do test case setup tasks.
-
- Wait Until Page Does Not Contain Element ${xpath_refresh_circle}
- Click Element ${xpath_select_access_control}
- Click Element ${xpath_select_local_users}
- Wait Until Page Contains Local user management
-
-Add User
- [Documentation] Create user.
- [Arguments] ${username} ${password} ${privilege}=Administrator
- ... ${account_status}=Enabled
-
- # Description of argument(s):
- # username Name of the user to be created.
- # password New user password.
- # privilege User privilege.
- # account_status Enable or disable new user.
-
- Click Element ${xpath_add_user}
- Add User Details ${username} ${password} ${privilege} ${account_status}
-
-Add User Details
- [Documentation] Add new user details.
- [Arguments] ${username} ${password} ${privilege} ${account_status}
-
- # Description of argument(s):
- # username User name.
- # password User password.
- # privilege User privilege.
- # account_status Enable or disable user.
-
- IF '${account_status}' == 'Enabled'
- Click Element ${xpath_enable_user}
- ELSE
- Click Element ${xpath_disable_user}
- END
-
- Input Text ${xpath_input_user} ${username}
- Input Password ${xpath_input_password} ${password}
- Input Password ${xpath_confirm_password} ${password}
- Select User Privilege ${privilege}
- Click Element ${xpath_add_user}
-
-Select User Privilege
- [Documentation] Select user privilege.
- [Arguments] ${privilege}=Administrator
-
- # Description of argument(s):
- # privilege User privilege.
-
- Click Element ${xpath_select_privilege}
- Click Element //option[text()[contains(.,"${privilege}")]]
-
-Delete User
- [Documentation] Delete user.
- [Arguments] ${username}
-
- # Description of argument(s):
- # username Name of the user to be created.
-
- ${result}= Run Keyword And Return Status Page Should Contain ${username}
- IF '${result}' == '${True}'
- Click Element //*[text()="${username}"]//following::td[3]//button[@aria-label="Delete"]
- Click Element ${xpath_remove_button}
- ELSE
- Log User does not exist
- END
-
-Test Login
- [Documentation] Try to login to Openbmc.
- [Arguments] ${username} ${password} ${expected_result}=${True}
-
- # Description of argument(s):
- # username Username.
- # password User password.
- # expected_result Result of the test.
-
- Open Browser ${OPENBMC_GUI_URL} alias=2
- Switch Browser 2
- ${status}= Run Keyword And Return Status Login OpenBMC GUI ${username} ${password}
- Should Be Equal ${status} ${expected_result} Login expectation was not met
- IF '${status}' == '${True}'
- LogOut OpenBMC GUI
- ELSE
- Page Should Contain Invalid username or password
- END
- Close Browser
- Switch Browser 1
-
diff --git a/gui/test/gui_header/test_obmc_gui_ip_refresh_check.robot b/gui/test/gui_header/test_obmc_gui_ip_refresh_check.robot
deleted file mode 100644
index 9e83bd0..0000000
--- a/gui/test/gui_header/test_obmc_gui_ip_refresh_check.robot
+++ /dev/null
@@ -1,118 +0,0 @@
-*** Settings ***
-
-Documentation Test Open BMC GUI BMC host information under GUI Header.
-
-Library DateTime
-
-Resource ../../lib/resource.robot
-
-Suite Setup Launch Browser And Login OpenBMC GUI
-Suite Teardown Close Browser
-
-Test Tags OBMC_GUI_IP_Refresh_Check
-
-*** Variables ***
-${xpath_bmc_ip} //*[contains(@class, "header__server-ip")]
-${xpath_select_refresh_button} //*[text()[contains(.,"Refresh")]]
-${xpath_select_date_text} //*[@class="header__refresh"]
-${xpath_header_scroll} //*[contains(@class,"header__action")]
-
-*** Test Cases ***
-
-Verify Server Power Button
- [Documentation] Verify server power page on clicking server power button.
- [Tags] Verify_Server_Power_Button
-
- Wait Until Element Is Visible ${xpath_select_server_power}
- Click Element ${xpath_select_server_power}
- Wait Until Page Contains Server power operations
-
-Verify Server Health Button
- [Documentation] Verify server health page on clicking server health button.
- [Tags] Verify_Server_Health_Button
-
- Wait Until Element Is Visible ${xpath_select_server_health}
- Click Element ${xpath_select_server_health}
- Wait Until Page Contains All events from the BMC
-
-Verify IP address
- [Documentation] Verify BMC IP address displayed in GUI header.
- [Tags] Verify_IP_address
-
- # NOTE: gui_displayed_ip can be either a host name or an IP address.
- # (e.g. "machinex" or "xx.xx.xx.xx").
- ${gui_displayed_ip}= Get Text ${xpath_bmc_ip}
- Should Contain ${gui_displayed_ip} ${OPENBMC_HOST}
-
-Verify Refresh Button
- [Documentation] Verify Refresh Button in GUI header.
- [Tags] Verify_Refresh_Button
-
- # Verify power is on after refresh button.
-
- Expected Initial Test State Off
- Wait Until Element Is Visible ${xpath_select_refresh_button}
- Click Element ${xpath_select_refresh_button}
- GUI Power On
- Wait Until Element Is Visible ${xpath_select_refresh_button}
- Click Element ${xpath_select_refresh_button}
- Wait Until Page Contains Running
-
-Verify Date Last Refreshed
- [Documentation] Verify Date Last Refreshed text in GUI header.
- [Tags] Verify_Date_Last_Refreshed
-
- Wait Until Element Is Visible ${xpath_select_date_text}
- ${date_info_1st_read}= Get Text ${xpath_select_date_text}
- Should Not Be Empty ${date_info_1st_read}
- ${current_date}= Get Time
- ${date_conversion}= Convert Date ${current_date} result_format=%b %-d %Y
-
- ${mmmdd} ${yyyy}= Split String From Right ${date_conversion} ${SPACE} 1
- Should Contain ${date_info_1st_read} ${mmmdd} msg=Month and day mismatch.
- Should Contain ${date_info_1st_read} ${yyyy} msg=Year mismatch.
-
- # Refresh button pressed.
- Click Element ${xpath_select_refresh_button}
- Sleep 2s
-
- ${date_info_2nd_read}= Get Text ${xpath_select_date_text}
- ${current_date}= Get Time
- ${date_conversion}= Convert Date ${current_date} result_format=%b %-d %Y
-
- ${mmmdd} ${yyyy}= Split String From Right ${date_conversion} ${SPACE} 1
- Should Contain ${date_info_1st_read} ${mmmdd} msg=Month and day mismatch.
- Should Contain ${date_info_1st_read} ${yyyy} msg=Year mismatch.
-
- # Comparison between 1st and 2nd read.
- Should Not Be Equal As Strings ${date_info_1st_read}
- ... ${date_info_2nd_read}
-
-Verify GUI Header Scrolls
- [Documentation] Verify GUI header scrolls on click "Server Info" element.
- [Tags] Verify_GUI_Header_Scrolls
-
- ${current_browser_width} ${current_browser_height}= Get Window Size
- Maximize Browser Window
- ${max_browser_width} ${max_browser_height}= Get Window Size
- # Shrink the browser to half from max size.
- ${shrink_browser_width}= Evaluate ${max_browser_width} / 2
- ${shrink_browser_height}= Evaluate ${max_browser_height} / 2
- # Reduce the browser size which enables scroll element.
- Set Window Size ${shrink_browser_width} ${shrink_browser_height}
- Click Element ${xpath_header_scroll}
- # Below element is to scroll back.
- Wait Until Page Does Not Contain Element ${xpath_refresh_circle}
- Click Element ${xpath_header_scroll}
- # Restore to original browser size.
- Set Window Size ${current_browser_width} ${current_browser_height}
-
-
-OpenBMC GUI Logoff
- [Documentation] Log out from openBMC GUI.
- [Tags] OpenBMC_GUI_Logoff
-
-
- Click Button ${xpath_button_user_action}
- Click Button ${xpath_button_logout}
- Wait Until Page Contains Element ${xpath_button_login}
diff --git a/gui/test/gui_header/test_obmc_gui_server_health.robot b/gui/test/gui_header/test_obmc_gui_server_health.robot
deleted file mode 100644
index b4f8f92..0000000
--- a/gui/test/gui_header/test_obmc_gui_server_health.robot
+++ /dev/null
@@ -1,405 +0,0 @@
-*** Settings ***
-
-Documentation Test Open BMC GUI server health under GUI Header.
-
-Resource ../../lib/resource.robot
-Resource ../../../lib/boot_utils.robot
-Resource ../../../lib/utils.robot
-Resource ../../../lib/openbmc_ffdc.robot
-Resource ../../../lib/state_manager.robot
-Resource ../../../lib/openbmc_ffdc_methods.robot
-Resource ../../../lib/dump_utils.robot
-Resource ../../../lib/logging_utils.robot
-Library ../../../lib/gen_robot_keyword.py
-
-Test Setup Test Setup Execution
-Test Teardown Test Teardown Execution
-
-Test Tags OBMC_GUI_Server_Health
-
-*** Variables ***
-
-${xpath_delete_remote_server} //*[@class="remote-logging-server"]//button[2]
-${xpath_add_server} //*[@class="remote-logging-server"]//button[1]
-${xpath_remote_server_ip} //input[@id="remoteServerIP"]
-${xpath_remote_server_port} //input[@id="remoteServerPort"]
-
-*** Test Cases ***
-
-Verify Event Log Text Appears By Clicking Server Health
- [Documentation] Check that "Event Log" text appears by clicking server
- ... health in GUI header.
- [Tags] Verify_Event_Log_Text_Appears_By_Clicking_Server_Health
-
- Wait Until Page Contains Element event-log
- Page should contain Event log
-
-
-Verify Filters By Severity Elements Appears
- [Documentation] Check that the "event log" filters appears by clicking
- ... server health in GUI header.
- [Tags] Verify_Filters_By_Severity_Elements_Appears
-
- # Types of event severity: All, High, Medium, Low.
- Page Should Contain Element ${xpath_event_severity_all} limit=1
- Page Should Contain Element ${xpath_event_severity_high} limit=1
- Page Should Contain Element ${xpath_event_severity_medium} limit=1
- Page Should Contain Element ${xpath_event_severity_low} limit=1
-
-
-Verify Drop Down Button User Timezone Appears
- [Documentation] Check that the "drop down" button of user timezone appears
- ... by clicking server health in GUI header.
- [Tags] Verify_Drop_Down_Button_User_Timezone_Appears
-
- Page Should Contain Button ${xpath_drop_down_timezone_edt}
- # Ensure that page is not in refreshing state.
- # It helps to click the drop down element.
- Wait Until Page Does Not Contain Element ${xpath_refresh_circle}
- Click Element //*[@class='dropdown__button']
- Page Should Contain Button ${xpath_drop_down_timezone_utc}
-
-
-Verify Content Search Element Appears
- [Documentation] Check that the "event search element is available with
- ... filter" button appears.
- [Tags] Verify_Content_Search_Element_Appears
-
- Page Should Contain Element content__search-input limit=1
- # Ensure that page is not in refreshing state.
- Wait Until Page Does Not Contain Element ${xpath_refresh_circle}
- Page Should Contain Button content__search-submit
-
-
-Verify Filter By Date Element Appears
- [Documentation] Check that the "filter by date" elements are available and
- ... visible.
- [Tags] Verify_Filter_By_Date_Element_Appears
-
- Wait Until Element Is Visible event-filter-start-date
- Page Should Contain Element event-filter-start-date limit=1
- Page Should Contain Element event-filter-end-date limit=1
-
-
-Verify Filter By Event Status Element Appears
- [Documentation] Check that the "filter by event status" element appears.
- [Tags] Verify_Filter_By_Event_Status_Element_Appears
-
- # Ensure that page is not in refreshing state.
- Wait Until Page Does Not Contain Element ${xpath_refresh_circle}
- Wait Until Element is Visible //*[@class='dropdown__wrapper']
- Click Element //*[@class='dropdown__wrapper']
- Page Should Contain Element ${xpath_event_filter_all} limit=2
- Page Should Contain Element ${xpath_event_filter_resolved} limit=1
- Page Should Contain Element ${xpath_event_filter_unresolved} limit=1
-
-
-Verify Event Action Bar Element Appears
- [Documentation] Check that "event action bar" element appears.
- [Tags] Verify_Event_Action_Bar_Element_Appears
-
- # Ensure that page is not in refreshing state.
- Wait Until Page Does Not Contain Element ${xpath_refresh_circle}
- Page Should Contain Element ${xpath_event_action_bars} limit=1
- Page Should Contain Element ${xpath_select_all_events}
-
-
-Verify Click Events Check Box
- [Documentation] Check that "event check box" element appears and on click
- ... should be able to see elements like "Delete" button and "Export"
- ... element.
- [Tags] Verify_Click_Events_Check_Box
-
- Create Test Error Log
- Click Element ${xpath_select_refresh_button}
- # Ensure that page is not in refreshing state.
- Wait Until Page Does Not Contain Element ${xpath_refresh_circle}
- Click Element ${xpath_select_all_events}
- Page Should Contain Button ${xpath_event_action_delete} limit=1
- Page Should Contain Element ${xpath_event_action_export} limit=1
-
-
-Verify Number of Events Appears
- [Documentation] Check that "number of events" element appears and value is
- ... visible.
- [Tags] Verify_Number_of_Events_Appears
-
- # Ensure that page is not in refreshing state.
- Wait Until Page Does Not Contain Element ${xpath_refresh_circle}
- Page Should Contain Element ${xpath_number_of_events}
- ${number_of_events}= Get Text ${xpath_number_of_events}
- Log To Console \n Number of Events:${number_of_events}
-
-
-Select All Error Logs And Mark As Resolved
- [Documentation] Select all error logs and mark them as resolved.
- [Tags] Select_All_Error_Logs_And_Mark_As_Resolved
-
- Create Test Error Log
- Create Test Error Log
- Click Element ${xpath_select_refresh_button}
- Wait Until Page Does Not Contain Element ${xpath_refresh_circle}
- Page Should Contain Element ${xpath_number_of_events}
- ${number_of_events}= Get Text ${xpath_number_of_events}
- Click Element ${xpath_select_all_events}
- IF ${number_of_events} > 0
- Click Element ${xpath_mark_as_resolved}
- END
- Element Should Be Disabled ${xpath_mark_as_resolved}
-
-
-Select All Error Logs And Click Export
- [Documentation] Select all error logs and click export element.
- [Tags] Select_All_Error_Logs_And_Click_Export
-
- Create Test Error Log
- Create Test Error Log
- Click Element ${xpath_select_refresh_button}
- Wait Until Page Does Not Contain Element ${xpath_refresh_circle}
- Page Should Contain Element ${xpath_number_of_events}
- ${number_of_events}= Get Text ${xpath_number_of_events}
- Click Element ${xpath_select_all_events}
- Page Should Contain Element ${xpath_events_export}
- IF ${number_of_events} > 0
- Click Element ${xpath_events_export}
- END
-
-Select All Error Logs And Delete
- [Documentation] Select all error logs and delete them.
- [Tags] Select_All_Error_Logs_And_Delete
-
- Create Test Error Log
- Create Test Error Log
- Click Element ${xpath_select_refresh_button}
- Wait Until Page Does Not Contain Element ${xpath_refresh_circle}
- Page Should Contain Element ${xpath_number_of_events}
- ${number_of_events}= Get Text ${xpath_number_of_events}
- IF ${number_of_events} > 0
- Common Event Log Click Element ${xpath_individual_event_delete}
- ${xpath_yes_button} ${xpath_select_all_events}
- END
- ${number_of_events}= Get Text ${xpath_number_of_events}
- Should Be Equal ${number_of_events} 0
-
-
-Select Single Error Log And Delete
- [Documentation] Select single error log and delete it.
- [Tags] Select_Single_Error_Log_And_Delete
-
- Create Test Error Log
- # Refresh the GUI to get the latest update.
- Click Element ${xpath_select_refresh_button}
- Wait Until Page Does Not Contain Element ${xpath_refresh_circle}
- Page Should Contain Element ${xpath_number_of_events}
- ${number_of_events}= Get Text ${xpath_number_of_events}
- IF ${number_of_events} > 0
- Common Event Log Click Element ${xpath_individual_event_delete}
- ${xpath_yes_button}
- END
- ${number_of_events}= Get Text ${xpath_number_of_events}
- Should Be Equal ${number_of_events} 0
- ... msg=Failed to delete single error log entry.
-
-
-Select Multiple Error Logs And Delete
- [Documentation] Select multiple error logs and delete them.
- [Tags] Select_Multiple_Error_Logs_And_Delete
-
- Create Test Error Log
- Create Test Error Log
- # Refresh the GUI to get the latest update.
- Click Element ${xpath_select_refresh_button}
- Wait Until Page Does Not Contain Element ${xpath_refresh_circle}
- Page Should Contain Element ${xpath_number_of_events}
- ${number_of_events}= Get Text ${xpath_number_of_events}
- IF ${number_of_events} > 0
- Double Event Log Click Element ${xpath_individual_event_delete}
- ${xpath_yes_button}
- END
- ${number_of_events}= Get Text ${xpath_number_of_events}
- Should Be Equal ${number_of_events} 0
- ... msg=Failed to delete multiple error log entries.
-
-
-Select Single Error Log And Mark As Resolved
- [Documentation] Select single error log and mark as resolved.
- [Tags] Select_Single_Error_Log_And_Mark_As_Resolved
-
- Create Test Error Log
- # Refresh the GUI to get the latest update.
- Click Element ${xpath_select_refresh_button}
- Wait Until Page Does Not Contain Element ${xpath_refresh_circle}
- Page Should Contain Element ${xpath_number_of_events}
- ${number_of_events}= Get Text ${xpath_number_of_events}
- IF ${number_of_events} > 0
- Common Event Log Click Element ${xpath_individual_event_resolved}
- END
- ${number_of_events}= Get Text ${xpath_number_of_events}
- Should Be Equal ${number_of_events} 1
- ... msg=Failed to mark single error log entry as resolved.
-
-
-Select Multiple Error Logs And Mark As Resolved
- [Documentation] Select multiple error logs and mark as resolved.
- [Tags] Select_Multiple_Error_Logs_And_Mark_As_Resolved
-
- Create Test Error Log
- Create Test Error Log
- # Refresh the GUI to get the latest update.
- Click Element ${xpath_select_refresh_button}
- Wait Until Page Does Not Contain Element ${xpath_refresh_circle}
- Page Should Contain Element ${xpath_number_of_events}
- ${number_of_events}= Get Text ${xpath_number_of_events}
- IF ${number_of_events} > 0
- Double Event Log Click Element ${xpath_individual_event_resolved}
- END
- ${number_of_events}= Get Text ${xpath_number_of_events}
- Should Be Equal ${number_of_events} 2
- ... msg=Failed to mark multiple error log entries as resolved.
-
-
-Select Single Error Log And Export
- [Documentation] Select single error log and export.
- [Tags] Select_Single_Error_Log_And_Export
-
- Create Test Error Log
- # Refresh the GUI to get the latest update.
- Click Element ${xpath_select_refresh_button}
- Wait Until Page Does Not Contain Element ${xpath_refresh_circle}
- Page Should Contain Element ${xpath_number_of_events}
- ${number_of_events}= Get Text ${xpath_number_of_events}
- IF ${number_of_events} > 0
- Common Event Log Click Element ${xpath_individual_event_export}
- END
- ${number_of_events}= Get Text ${xpath_number_of_events}
- Should Be Equal ${number_of_events} 1
- ... msg=Failed to export single error log entry.
-
-
-Select Multiple Error Log And Export
- [Documentation] Select multiple error log and export.
- [Tags] Select_Multiple_Error_Log_And_Export
-
- Create Test Error Log
- Create Test Error Log
- # Refresh the GUI to get the latest update.
- Click Element ${xpath_select_refresh_button}
- Wait Until Page Does Not Contain Element ${xpath_refresh_circle}
- Page Should Contain Element ${xpath_number_of_events}
- ${number_of_events}= Get Text ${xpath_number_of_events}
- IF ${number_of_events} > 0
- Double Event Log Click Element ${xpath_individual_event_export}
- END
- ${number_of_events}= Get Text ${xpath_number_of_events}
- Should Be Equal ${number_of_events} 2
- ... msg=Failed to export multiple error log entries.
-
-
-Verify Existence Of All Buttons In Remote Logging Server Page
- [Documentation] Verify existence of all buttons in remote logging server
- ... page.
- [Tags] Verify_Existence_Of_All_Buttons_In_Remote_Logging_Server_Page
- [Setup] Setup For Remote Logging Server
- [Teardown] Teardown For Remote Logging Server
-
- Page Should Contain Button ${xpath_cancel_button}
- Page Should Contain Button ${xpath_add_button}
-
-
-Verify Existence Of All Input Boxes In Remote Logging Server Page
- [Documentation] Verify existence of all input boxes in remote logging server
- ... page.
- [Tags] Verify_Existence_Of_All_Input_Boxes_In_Remote_Logging_Server_Page
- [Setup] Setup For Remote Logging Server
- [Teardown] Teardown For Remote Logging Server
-
- Page Should Contain Textfield ${xpath_remote_server_ip}
- Page Should Contain Textfield ${xpath_remote_server_port}
-
-*** Keywords ***
-
-Common Event Log Click Element
- [Documentation] Keep common click elements associated with event log.
- [Arguments] ${action_element} ${action_click_confirmation}=${None}
- ... ${xpath_event_select}=${xpath_individual_event_select}
-
- # Description of argument(s):
- # action_element xpath value of the element to be actioned
- # (e.g. "Delete" or "Resolved" or "Export").
- # action_click_confirmation Confirmation of action by pressing yes
- # (e.g. "Yes" or "No").
- # xpath_event_select xpath to select event log.
-
- Click Element ${xpath_event_select}
- Page Should Contain Element ${action_element}
- Click Element ${action_element}
- Wait Until Page Does Not Contain Element ${xpath_refresh_circle}
- IF "${action_click_confirmation}" != "${None}"
- Click Element ${action_click_confirmation}
- END
- Click Element ${xpath_select_refresh_button}
- Run Key Sleep \ 50s
-
-Double Event Log Click Element
- [Documentation] Keep double click elements associated with event logs.
- [Arguments] ${action_element} ${action_click_confirmation}=${None}
-
- # Description of argument(s):
- # action_element xpath value of the element to be actioned
- # (e.g. "Delete" or "Resolved" or "Export").
- # action_click_confirmation Confirmation of action by pressing yes
- # (e.g. "Yes" or "No").
-
- Click Element ${xpath_second_event_select}
- Common Event Log Click Element ${action_element}
- ... ${action_click_confirmation}
-
-Navigate To Event Log Page
- [Documentation] Go to event log page from BMC homepage.
-
- Launch Browser And Login OpenBMC GUI
- Wait Until Page Does Not Contain Element ${xpath_refresh_circle}
- Click Element ${xpath_select_server_health}
- Wait Until Page Does Not Contain Element ${xpath_refresh_circle}
- Wait Until Page Contains Event Log
-
-Test Setup Execution
- [Documentation] Do test case setup tasks.
-
- ${status}= Run Keyword And Return Status Logging Test Binary Exist
- IF ${status} == ${False} Install Tarball
- Delete Error Logs And Verify
-
- Navigate To Event Log Page
-
-Test Teardown Execution
- [Documentation] Do the post test teardown.
-
- FFDC On Test Case Fail
- Delete All Error Logs
- Close All Connections
- Close Browser
-
-Delete Remote Logging Server
- [Documentation] Delete remote logging server entry.
-
- Click Button ${xpath_delete_remote_server}
- Click Button ${xpath_remove_button}
-
-Setup For Remote Logging Server
- [Documentation] Test setup for remote logging server page.
-
- Navigate To Event Log Page
-
- # An entry for remote server may not exist so ignoring if there is a fail
- # when deleting the entry.
- Run Keyword And Ignore Error Delete Remote Logging Server
- Click Button ${xpath_add_server}
- Page Should Contain Add remote logging server
-
-Teardown For Remote Logging Server
- [Documentation] Test teardown for remote logging server page.
-
- Click Button ${xpath_cancel_button}
- FFDC On Test Case Fail
- Close Browser
diff --git a/gui/test/server_config/test_obmc_gui_date_and_time_settings.robot b/gui/test/server_config/test_obmc_gui_date_and_time_settings.robot
deleted file mode 100644
index 088c874..0000000
--- a/gui/test/server_config/test_obmc_gui_date_and_time_settings.robot
+++ /dev/null
@@ -1,59 +0,0 @@
-*** Settings ***
-
-Documentation Test OpenBMC GUI "Date and time settings" sub-menu of
-... "Server configuration".
-
-Resource ../../lib/resource.robot
-
-Suite Setup Launch Browser And Login OpenBMC GUI
-Suite Teardown Close Browser
-Test Setup Test Setup Execution
-
-Test Tags OBMC_GUI_Date_And_Time_Settings
-
-*** Variables ***
-
-${xpath_set_time_from_ntp} //*[@for="ntp-time"]
-${xpath_add_new_ntp_server} //button[contains(text(), "Add new NTP server")]
-${xpath_set_time_manually} //*[@for="manual-time"]
-${xpath_set_date} //input[@type="date"]
-${xpath_set_time} //input[@type="time"]
-${xpath_set_time_owner} //select[@id="date-time-owner"]
-
-
-*** Test Cases ***
-
-Verify Existence Of All Sections In Date And Time Settings Page
- [Documentation] Verify existence of all sections in date and time settings
- ... page.
- [Tags] Verify_Existence_Of_All_Sections_In_Date_And_Time_Settings_Page
-
- Page Should Contain Set date and time manually or configure a Network Time
- ... Protocol (NTP) Server
-
-
-Verify Existence Of All Buttons In Date And Time Settings Page
- [Documentation] Verify existence of all buttons in date and time settings
- ... page.
- [Tags] Verify_Existence_Of_All_Buttons_In_Date_And_Time_Settings_Page
-
- Page Should Contain Element ${xpath_set_time_from_ntp}
- Page Should Contain Element ${xpath_add_new_ntp_server}
- Page Should Contain Element ${xpath_set_time_manually}
- Page Should Contain Element ${xpath_set_date}
- Page Should Contain Element ${xpath_set_time}
- Page Should Contain Element ${xpath_set_time_owner}
- Page Should Contain Element ${xpath_cancel_button}
- Page Should Contain Element ${xpath_save_setting_button}
-
-
-*** Keywords ***
-
-Test Setup Execution
- [Documentation] Do test case setup tasks.
-
- Wait Until Page Does Not Contain Element ${xpath_refresh_circle}
- Click Element ${xpath_select_server_configuration}
- Wait Until Page Does Not Contain Element ${xpath_refresh_circle}
- Click Element ${xpath_select_date_time_settings}
- Wait Until Page Contains Date and time settings
diff --git a/gui/test/server_config/test_obmc_gui_firmware_update.robot b/gui/test/server_config/test_obmc_gui_firmware_update.robot
deleted file mode 100644
index 8c86b43..0000000
--- a/gui/test/server_config/test_obmc_gui_firmware_update.robot
+++ /dev/null
@@ -1,108 +0,0 @@
-*** Settings ***
-
-Documentation Test Open BMC GUI server configuration firmware update.
-
-Resource ../../lib/resource.robot
-Resource ../../../lib/logging_utils.robot
-
-Suite Setup Launch Browser And Login OpenBMC GUI
-Suite Teardown Close Browser
-Test Setup Test Setup Execution
-Test Teardown Re-Launch GUI on Failure
-
-Test Tags OBMC_GUI_Firmware_Update
-
-*** Variables ***
-${xpath_select_server_config} //*[@id="nav__top-level"]/li[4]/button
-${xpath_select_firmware} //a[@href='#/configuration/firmware']
-${xpath_choose_file_button} //*[@id="firmware__upload-form"]/div[1]/label/span[1]
-${xpath_scroll_down} //a[contains(text(), "Scroll down")]
-${xpath_tftp_server_ip} //*[@id="tftp-ip"]
-${xpath_tftp_filename} //*[@id="tftp-file-name"]
-${xpath_download_firmware} //*[@id="firmware__upload-form"]/div[2]/fieldset/div[1]/div[3]/input
-${xpath_download_progress} //*[@id="firmware__upload-form"]/div[2]/fieldset/div[2]
-
-*** Test Cases ***
-
-Verify Select Firmware From Server Configuration
- [Documentation] Verify ability to select firmware option from server
- ... configuration sub-menu.
- [Tags] Verify_Select_Firmware_From_Server_Configuration
-
- Wait Until Page Contains Firmware
- Page Should contain Manage BMC and server firmware
-
-
-Verify Scroll Down Link
- [Documentation] Verify scroll down link works.
- [Tags] Verify_Scroll_Down_Link
-
- Page Should Contain Element ${xpath_scroll_down}
- Click Element ${xpath_scroll_down}
- Page Should Contain Element ${xpath_choose_file_button}
-
-
-Verify Choose File Button Click
- [Documentation] Verify choose file button is clickable.
- [Tags] Verify_Choose_File_Button_Click
-
- Page Should Contain No file chosen
- Page Should Contain Element ${xpath_choose_file_button}
- Click Element ${xpath_choose_file_button}
-
-Verify BMC Firmware Download
- # BMC Firmware File Path located at TFTP server.
- ${BMC_IMAGE_FILE_PATH}
- [Template] Upload Firmware using TFTP Server
- [Documentation] Verify BMC image is download from TFTP server.
- [Tags] Verify_BMC_Firmware_Download
-
-
-Verify Host Firmware Download
- # Host Firmware File Path located at TFTP server.
- ${PNOR_IMAGE_FILE_PATH}
- [Template] Upload Firmware using TFTP Server
- [Documentation] Verify Host image is download from TFTP server.
- [Tags] Verify_Host_Firmware_Download
-
-
-*** Keywords ***
-
-Test Setup Execution
- [Documentation] Do test case setup tasks.
-
- Delete All Error Logs
- Click Element ${xpath_select_server_config}
- Wait Until Page Does Not Contain Element ${xpath_refresh_circle}
- Click Element ${xpath_select_firmware}
-
-Upload Firmware using TFTP Server
- [Documentation] Upload firmware using TFTP server.
- [Arguments] ${firmware_file_name}
-
- Page Should Contain Button ${xpath_download_firmware}
- Page Should Contain Element ${xpath_tftp_server_ip}
- Page Should Contain Element ${xpath_tftp_filename}
-
- Input Text ${xpath_tftp_server_ip} ${TFTP_SERVER}
- Input Text ${xpath_tftp_filename} ${firmware_file_name}
- Click Button ${xpath_download_firmware}
- Wait Until Element Is Visible ${xpath_download_progress} timeout=180
- Wait Until Element Is Not Visible ${xpath_download_progress} timeout=180
-
- Check No Error Log Exist
-
-Check No Error Log Exist
- [Documentation] No error log should be logged.
-
- ${resp}= OpenBMC Get Request ${BMC_LOGGING_ENTRY}list quiet=${1}
- Should Be Equal As Strings ${resp.status_code} ${HTTP_NOT_FOUND}
- ... msg=Codeupdate Failed with error.
-
-Re-Launch GUI on Failure
- [Documentation] On failure of test case, close and re-launch GUI.
-
- Return From Keyword If '${TEST_STATUS}' != 'FAIL'
-
- Logout And Close Browser
- Launch Browser And Login OpenBMC GUI
diff --git a/gui/test/server_config/test_obmc_gui_network_settings.robot b/gui/test/server_config/test_obmc_gui_network_settings.robot
deleted file mode 100644
index 680af81..0000000
--- a/gui/test/server_config/test_obmc_gui_network_settings.robot
+++ /dev/null
@@ -1,101 +0,0 @@
-*** Settings ***
-
-Documentation Test OpenBMC GUI "Network settings" sub-menu of
-... "Server configuration".
-
-Resource ../../lib/resource.robot
-
-Suite Setup Launch Browser And Login OpenBMC GUI
-Suite Teardown Close Browser
-Test Setup Test Setup Execution
-
-Test Tags OBMC_GUI_Network_Settings
-
-*** Variables ***
-
-${xpath_select_server_configuration} //*[@id="nav__top-level"]/li[4]/button
-${xpath_select_network_settings} //a[@href='#/configuration/network']
-${xpath_hostname_input} //*[@id="net-config__mac"]
-${xpath_network_save_settings} //*[text()="Save settings"]
-${xpath_continue} //*[@id=""]/main/section/div/div[4]/button[2]
-${xpath_network_config_ipv4_address} //*[@id="ipv4-address-1"]
-${xpath_default_gateway_input} //*[@id="net-config__domain"]
-${xpath_mac_address_input} //*[@id="net-config__host"]
-${xpath_ipv4-address-input} //*[@id="ipv4-address-1"]
-${xpath_network_DHCP_button} //*[contains(text(),"Obtain an IP address automatically")]
-${xpath_network_static_button} //*[contains(text(),"Assign a static IP address")]
-
-*** Test Cases ***
-
-Verify Network Settings From Server Configuration
- [Documentation] Verify ability to select "Network Settings" sub-menu option
- ... of "Server Configuration".
- [Tags] Verify_Network_Settings_From_Server_Configuration
-
- Wait Until Page Contains BMC network settings
- Page Should Contain IPV4 settings Common settings
-
-
-Verify Hostname Text Configuration
- [Documentation] Verify hostname text is configurable from "network settings"
- ... sub-menu.
- [Tags] Verify_Hostname_Text_Configuration
-
- Input Text ${xpath_hostname_input} witherspoon1
- Click Element ${xpath_network_save_settings}
- Wait Until Page Does Not Contain Element ${xpath_refresh_circle}
- Click Element ${xpath_continue}
- Click Element ${xpath_select_refresh_button}
- Wait Until Page Does Not Contain Element ${xpath_refresh_circle}
- Page Should Contain witherspoon1
-
-
-Verify Default Gateway Editable
- [Documentation] Verify default gateway text input allowed from "network
- ... settings".
- [Tags] Verify_Default_Gateway_Editable
-
- Page Should Contain Element ${xpath_default_gateway_input}
- Input Text ${xpath_default_gateway_input} 10.6.6.7
-
-
-Verify MAC Address Editable
- [Documentation] Verify MAC address text input allowed from "network
- ... settings".
- [Tags] Verify_MAC_Address_Editable
-
- Page Should Contain Element ${xpath_mac_address_input}
- Input Text ${xpath_mac_address_input} 70:e2:84:14:16:6c
-
-
-Verify IP Address Editable With Static IP Selection
- [Documentation] Verify IP address editable with static IP selection.
- [Tags] Verify_IP_Address_Editable_With_Static_IP_Selection
-
- Page Should Contain Element ${xpath_network_static_button}
- Click Element ${xpath_network_static_button}
- ${status}= Run Keyword And Return Status Input Text
- ... ${xpath_ipv4-address-input} ${OPENBMC_HOST}
- Should Be True '${status}' == '${True}'
-
-
-Verify IP Address Noneditable With DHCP IP Selection
- [Documentation] Verify IP address noneditable with DHCP IP selection.
- [Tags] Verify_IP_Address_Noneditable_With_DHCP_IP_Selection
-
- Page Should Contain Element ${xpath_network_DHCP_button}
- Click Element ${xpath_network_DHCP_button}
- Element Should Be Disabled ${xpath_ipv4-address-input}
-
-
-*** Keywords ***
-
-Test Setup Execution
- [Documentation] Do test case setup tasks.
-
- Wait Until Page Does Not Contain Element ${xpath_refresh_circle}
- Click Element ${xpath_select_server_configuration}
- Wait Until Page Does Not Contain Element ${xpath_refresh_circle}
- Click Element ${xpath_select_network_settings}
- Wait Until Page Contains Element ${xpath_network_config_ipv4_address}
-
diff --git a/gui/test/server_config/test_obmc_gui_snmp_settings.robot b/gui/test/server_config/test_obmc_gui_snmp_settings.robot
deleted file mode 100644
index 70d7c63..0000000
--- a/gui/test/server_config/test_obmc_gui_snmp_settings.robot
+++ /dev/null
@@ -1,45 +0,0 @@
-*** Settings ***
-
-Documentation Test OpenBMC GUI "SNMP settings" sub-menu of "Server configuration".
-
-Resource ../../lib/resource.robot
-
-Suite Setup Launch Browser And Login OpenBMC GUI
-Suite Teardown Close Browser
-Test Setup Test Setup Execution
-
-Test Tags OBMC_GUI_SNMP_Settings
-
-*** Variables ***
-
-${xpath_add_manager_button} //button[text()[contains(.,"Add manager")]]
-
-
-*** Test Cases ***
-
-Verify Existence Of All Sections In SNMP Page
- [Documentation] Verify existence of all sections in SNMP page.
- [Tags] Verify_Existence_Of_All_Sections_In_SNMP_Page
-
- Page Should Contain Managers
-
-
-Verify Existence Of All Buttons In SNMP Page
- [Documentation] Verify existence of all buttons in SNMP page.
- [Tags] Verify_Existence_Of_All_Buttons_In_SNMP_Page
-
- Page Should Contain Element ${xpath_add_manager_button}
- Page Should Contain Element ${xpath_save_setting_button}
- Page Should Contain Element ${xpath_cancel_button}
-
-
-*** Keywords ***
-
-Test Setup Execution
- [Documentation] Do test case setup tasks.
-
- Wait Until Page Does Not Contain Element ${xpath_refresh_circle}
- Click Element ${xpath_select_server_configuration}
- Wait Until Page Does Not Contain Element ${xpath_refresh_circle}
- Click Element ${xpath_select_snmp_settings}
- Wait Until Page Contains SNMP settings
diff --git a/gui/test/server_control/test_obmc_gui_manage_power_usage.robot b/gui/test/server_control/test_obmc_gui_manage_power_usage.robot
deleted file mode 100644
index 9459c02..0000000
--- a/gui/test/server_control/test_obmc_gui_manage_power_usage.robot
+++ /dev/null
@@ -1,46 +0,0 @@
-*** Settings ***
-
-Documentation Test OpenBMC GUI "Manage power usage" sub-menu of "Server control".
-
-Resource ../../lib/resource.robot
-
-Suite Setup Launch Browser And Login OpenBMC GUI
-Suite Teardown Close Browser
-Test Setup Test Setup Execution
-
-Test Tags OBMC_GUI_Manage_Power_Usage
-
-*** Variables ***
-
-${xpath_power_cap_toggle_button} //*[@class="toggle-container"]
-
-
-*** Test Cases ***
-
-Verify Existence Of All Sections In Manage Power Usage Page
- [Documentation] Verify existence of all sections in manage power usage page.
- [Tags] Verify_Existence_Of_All_Sections_In_Manage_Power_Usage_Page
-
- Page Should Contain Power information
- Page Should Contain Server power cap setting
-
-
-Verify Existence Of All Buttons In Manage Power Usage Page
- [Documentation] Verify existence of all buttons in manage power usage page.
- [Tags] Verify_Existence_Of_All_Buttons_In_Manage_Power_Usage_Page
-
- Page Should Contain Element ${xpath_power_cap_toggle_button}
- Page Should Contain Element ${xpath_save_setting_button}
- Page Should Contain Element ${xpath_cancel_button}
-
-
-*** Keywords ***
-
-Test Setup Execution
- [Documentation] Do test case setup tasks.
-
- Wait Until Page Does Not Contain Element ${xpath_refresh_circle}
- Click Element ${xpath_select_server_control}
- Wait Until Page Does Not Contain Element ${xpath_refresh_circle}
- Click Element ${xpath_select_manage_power_usage}
- Wait Until Page Contains Manage Power Usage
diff --git a/gui/test/server_control/test_obmc_gui_reboot_bmc.robot b/gui/test/server_control/test_obmc_gui_reboot_bmc.robot
deleted file mode 100644
index a65f0df..0000000
--- a/gui/test/server_control/test_obmc_gui_reboot_bmc.robot
+++ /dev/null
@@ -1,43 +0,0 @@
-*** Settings ***
-
-Documentation Test OpenBMC GUI "Reboot BMC" sub-menu of "Server control".
-
-Resource ../../lib/resource.robot
-
-Suite Setup Launch Browser And Login OpenBMC GUI
-Suite Teardown Close Browser
-Test Setup Test Setup Execution
-
-Test Tags OBMC_GUI_Reboot_BMC
-
-*** Variables ***
-
-${xpath_reboot_bmc_button} //button[text()[contains(.,"Reboot BMC")]]
-
-
-*** Test Cases ***
-
-Verify Existence Of All Sections In Reboot BMC Page
- [Documentation] Verify existence of all sections in reboot BMC page.
- [Tags] Verify_Existence_Of_All_Sections_In_Reboot_BMC_Page
-
- Page Should Contain Current BMC boot status
-
-
-Verify Existence Of All Buttons In Reboot BMC Page
- [Documentation] Verify existence of all buttons in reboot BMC page.
- [Tags] Verify_Existence_Of_All_Buttons_In_Reboot_BMC_Page
-
- Page Should Contain Element ${xpath_reboot_bmc_button}
-
-
-*** Keywords ***
-
-Test Setup Execution
- [Documentation] Do test case setup tasks.
-
- Wait Until Page Does Not Contain Element ${xpath_refresh_circle}
- Click Element ${xpath_select_server_control}
- Wait Until Page Does Not Contain Element ${xpath_refresh_circle}
- Click Element ${xpath_select_reboot_bmc}
- Wait Until Page Contains Reboot BMC
diff --git a/gui/test/server_control/test_obmc_gui_server_led.robot b/gui/test/server_control/test_obmc_gui_server_led.robot
deleted file mode 100644
index 50b2fe8..0000000
--- a/gui/test/server_control/test_obmc_gui_server_led.robot
+++ /dev/null
@@ -1,44 +0,0 @@
-*** Settings ***
-
-Documentation Test OpenBMC GUI "Server LED" sub-menu of "Server control".
-
-Resource ../../lib/resource.robot
-
-Suite Setup Launch Browser And Login OpenBMC GUI
-Suite Teardown Close Browser
-Test Setup Test Setup Execution
-
-Test Tags OBMC_GUI_Server_Led
-
-*** Variables ***
-
-${xpath_led_light_control} //*[@for="toggle__switch-round"]
-
-
-*** Test Cases ***
-
-Verify Existence Of All Sections In Server LED Page
- [Documentation] Verify existence of all sections in Server LED page.
- [Tags] Verify_Existence_Of_All_Sections_In_Server_LED_Page
-
- Page Should Contain LED light control
- Page Should Contain Server LED light
-
-
-Verify Existence Of All Buttons In Server LED Page
- [Documentation] Verify existence of all buttons in Server LED page.
- [Tags] Verify_Existence_Of_All_Buttons_In_Server_LED_Page
-
- Page Should Contain Element ${xpath_led_light_control}
-
-
-*** Keywords ***
-
-Test Setup Execution
- [Documentation] Do test case setup tasks.
-
- Wait Until Page Does Not Contain Element ${xpath_refresh_circle}
- Click Element ${xpath_select_server_control}
- Wait Until Page Does Not Contain Element ${xpath_refresh_circle}
- Click Element ${xpath_select_server_led}
- Wait Until Page Contains Server LED
diff --git a/gui/test/server_control/test_obmc_gui_server_power_operations.robot b/gui/test/server_control/test_obmc_gui_server_power_operations.robot
deleted file mode 100644
index d3c2e3e..0000000
--- a/gui/test/server_control/test_obmc_gui_server_power_operations.robot
+++ /dev/null
@@ -1,138 +0,0 @@
-*** Settings ***
-
-Documentation Test OpenBMC GUI "Server power operation" sub-menu of
-... "Server control".
-
-Resource ../../lib/resource.robot
-
-Test Teardown Close Browser
-
-Test Tags OBMC_GUI_Server_Power_Operations
-
-*** Variables ***
-
-${xpath_power_indicator_bar} //*[@id='power-indicator-bar']
-${xpath_shutdown_button} //button[contains(text(), "Shut down")]
-${xpath_reboot_button} //button[contains(text(), "Reboot")]
-${xpath_power_on_button} //button[contains(text(), "Power on")]
-${xpath_tpm_toggle_switch} //label[@for="toggle__switch-round"]
-${xpath_select_boot_override} //select[@id="boot-selected"]
-${xpath_select_one_time_boot} //label[@id="one-time-label"]
-
-*** Test Cases ***
-
-Verify System State At Power Off
- [Documentation] Verify system state at power off.
- [Tags] Verify_System_State_At_Power_Off
- [Setup] Setup For Test Execution ${OBMC_PowerOff_state}
-
- Element Should Contain ${xpath_power_indicator_bar} Off
-
-
-Verify BMC IP In Server Power Operation Page
- [Documentation] Verify BMC IP in server power operation page.
- [Tags] Verify_BMC_IP_In_Server_Power_Operation_Page
- [Setup] Setup For Test Execution ${OBMC_PowerOff_state}
-
- Element Should Contain ${xpath_power_indicator_bar} ${OPENBMC_HOST}
-
-
-Verify Shutdown Button At Power Off
- [Documentation] Verify that shutdown button is not present at power Off.
- [Tags] Verify_Shutdown_Button_At_Power_Off
- [Setup] Setup For Test Execution ${OBMC_PowerOff_state}
-
- Element Should Not Be Visible ${xpath_shutdown_button}
-
-
-Verify Reboot Button At Power Off
- [Documentation] Verify that reboot button is not present at power Off.
- [Tags] Verify_Reboot_Button_At_Power_Off
- [Setup] Setup For Test Execution ${OBMC_PowerOff_state}
-
- Element Should Not Be Visible ${xpath_reboot_button}
-
-
-Verify Power On Button At Power Off
- [Documentation] Verify presence of "Power On" button at power off.
- [Tags] Verify_Power_On_Button_At_Power_Off
- [Setup] Setup For Test Execution ${OBMC_PowerOff_state}
-
- Element Should Be Visible ${xpath_power_on_button}
-
-
-Verify System State At Power On
- [Documentation] Verify system state at power on.
- [Tags] Verify_System_State_At_Power_On
- [Setup] Setup For Test Execution ${obmc_PowerRunning_state}
-
- Element Should Contain ${xpath_power_indicator_bar} Running
-
-
-Verify Shutdown Button At Power On
- [Documentation] Verify that shutdown button is present at power on.
- [Tags] Verify_Shutdown_Button_At_Power_On
- [Setup] Setup For Test Execution ${obmc_PowerRunning_state}
-
- Element Should Be Visible ${xpath_shutdown_button}
-
-
-Verify Reboot Button At Power On
- [Documentation] Verify that reboot button is present at power on.
- [Tags] Verify_Reboot_Button_At_Power_On
- [Setup] Setup For Test Execution ${obmc_PowerRunning_state}
-
- Element Should Be Visible ${xpath_reboot_button}
-
-
-Verify Existence Of All Sections In Host Os Boot Settings
- [Documentation] Verify existence of all sections in host os boot settings.
- [Tags] Verify_Existence_Of_All_Sections_In_Host_Os_Boot_Settings
- [Setup] Run Keywords Launch Browser And Login OpenBMC GUI AND
- ... Navigate To Server Power Operations
-
- Page Should Contain Boot setting override
- Page Should Contain TPM required policy
-
-
-Verify Existence Of All Buttons In Host Os Boot Settings
- [Documentation] Verify existence of all buttons in host os boot settings.
- [Tags] Verify_Existence_Of_All_Buttons_In_Host_Os_Boot_Settings
- [Setup] Run Keywords Launch Browser And Login OpenBMC GUI AND
- ... Navigate To Server Power Operations
-
- Page Should Contain Element ${xpath_tpm_toggle_switch}
- Page Should Contain Element ${xpath_save_button}
- Page Should Contain Element ${xpath_cancel_button}
-
-
-Verify Existence Of All Input Boxes In Host Os Boot Settings
- [Documentation] Verify existence of all input boxes in host os boot settings.
- [Tags] Verify_Existence_Of_All_Input_Boxes_In_Host_Os_Boot_Settings
- [Setup] Run Keywords Launch Browser And Login OpenBMC GUI AND
- ... Navigate To Server Power Operations
-
- Page Should Contain Element ${xpath_select_boot_override}
- Page Should Contain Element ${xpath_select_one_time_boot}
-
-
-*** Keywords ***
-
-Setup For Test Execution
- [Documentation] Do setup tasks for test case.
- [Arguments] ${obmc_required_state}
-
- # Description of argument(s):
- # obmc_required_state The OpenBMC state which is required for the test.
-
- Test Setup Execution ${obmc_required_state}
- Navigate To Server Power Operations
-
-Navigate To Server Power Operations
- [Documentation] Navigate to server power operations.
-
- Wait Until Page Does Not Contain Element ${xpath_refresh_circle}
- Click Element ${xpath_select_server_control}
- Wait Until Page Does Not Contain Element ${xpath_refresh_circle}
- Click Element ${xpath_select_server_power_operations}
- Wait Until Page Contains Server power operations
diff --git a/gui/test/server_control/test_obmc_gui_sol_console.robot b/gui/test/server_control/test_obmc_gui_sol_console.robot
deleted file mode 100644
index cab1a9a..0000000
--- a/gui/test/server_control/test_obmc_gui_sol_console.robot
+++ /dev/null
@@ -1,43 +0,0 @@
-*** Settings ***
-
-Documentation Test OpenBMC GUI "SOL console" sub-menu of "Server control".
-
-Resource ../../lib/resource.robot
-
-Suite Setup Launch Browser And Login OpenBMC GUI
-Suite Teardown Close Browser
-Test Setup Test Setup Execution
-
-Test Tags OBMC_GUI_SOL_Console
-
-*** Variables ***
-
-${xpath_open_in_new_tab_button} //button[text()[contains(.,"Open in new tab")]]
-
-
-*** Test Cases ***
-
-Verify Existence Of All Sections In SOL Console Page
- [Documentation] Verify existence of all sections in SOL console page.
- [Tags] Verify_Existence_Of_All_Sections_In_SOL_Console_Page
-
- Page Should Contain Access the Serial over LAN console
-
-
-Verify Existence Of All Buttons In SOL Console Page
- [Documentation] Verify existence of all buttons in SOL console page.
- [Tags] Verify_Existence_Of_All_Buttons_In_SOL_Console_Page
-
- Page Should Contain Element ${xpath_open_in_new_tab_button}
-
-
-*** Keywords ***
-
-Test Setup Execution
- [Documentation] Do test case setup tasks.
-
- Wait Until Page Does Not Contain Element ${xpath_refresh_circle}
- Click Element ${xpath_select_server_control}
- Wait Until Page Does Not Contain Element ${xpath_refresh_circle}
- Click Element ${xpath_select_sol_console}
- Wait Until Page Contains Serial over LAN console
diff --git a/gui/test/server_control/test_obmc_gui_virtual_media.robot b/gui/test/server_control/test_obmc_gui_virtual_media.robot
deleted file mode 100644
index 4fffc8c..0000000
--- a/gui/test/server_control/test_obmc_gui_virtual_media.robot
+++ /dev/null
@@ -1,45 +0,0 @@
-*** Settings ***
-
-Documentation Test OpenBMC GUI "Virtual Media" sub-menu of "Server control".
-
-Resource ../../lib/resource.robot
-
-Suite Setup Launch Browser And Login OpenBMC GUI
-Suite Teardown Close Browser
-Test Setup Test Setup Execution
-
-Test Tags OBMC_GUI_Virtual_Media
-
-*** Variables ***
-
-${xpath_start_button} //*[@class='vm__upload-start']
-${xpath_choose_file_button} //*[@class='vm__upload-choose-label']
-
-
-*** Test Cases ***
-
-Verify Existence Of All Sections In Virtual Media Page
- [Documentation] Verify existence of all sections in virtual media page.
- [Tags] Verify_Existence_Of_All_Sections_In_Virtual_Media_Page
-
- Page Should Contain Virtual media device
-
-
-Verify Existence Of All Buttons In Virtual Media Page
- [Documentation] Verify existence of all buttons in virtual media page.
- [Tags] Verify_Existence_Of_All_Buttons_In_Virtual_Media_Page
-
- Page Should Contain Element ${xpath_start_button}
- Page Should Contain Element ${xpath_choose_file_button}
-
-
-*** Keywords ***
-
-Test Setup Execution
- [Documentation] Do test case setup tasks.
-
- Wait Until Page Does Not Contain Element ${xpath_refresh_circle}
- Click Element ${xpath_select_server_control}
- Wait Until Page Does Not Contain Element ${xpath_refresh_circle}
- Click Element ${xpath_select_virtual_media}
- Wait Until Page Contains Virtual media
diff --git a/gui/test/server_health/test_obmc_gui_hardware_status.robot b/gui/test/server_health/test_obmc_gui_hardware_status.robot
deleted file mode 100644
index 7ce7774..0000000
--- a/gui/test/server_health/test_obmc_gui_hardware_status.robot
+++ /dev/null
@@ -1,100 +0,0 @@
-*** Settings ***
-
-Documentation Test OpenBMC GUI "Hardware status" sub-menu of "Server health".
-
-Resource ../../lib/resource.robot
-
-Suite Setup Launch Browser And Login OpenBMC GUI
-Suite Teardown Close Browser
-Test Setup Test Setup Execution
-
-Test Tags OBMC_GUI_Hardware_Status
-
-*** Variables ***
-
-${xpath_select_server_health} //*[@id="nav__top-level"]/li[2]/button
-${xpath_select_hardware_status} //a[@href='#/server-health/inventory-overview']
-${xpath_inventory_export} //a[contains(text(), "Export")]
-${xpath_inventory_search} //*[@id="content__search-input"]
-${xpath_inventory_search_button} //*[@id="content__search-submit"]
-${xpath_inventory_search_text_clear} //*[@aria-label='clear filter']
-${xpath_bmc_expand} //*[text()="bmc"]//following::button[1]
-${xpath_system_expand} //*[text()="system"]//following::button[1]
-${xpath_motherboard_expand} //*[text()="motherboard"]//following::button[1]
-${xpath_chassis_expand} //*[text()="chassis"]//following::button[1]
-
-*** Test Cases ***
-
-Verify Select Health Status From Server Health
- [Documentation] Verify ability to select "Hardware status" sub-menu option
- ... of "Server health".
- [Tags] Verify_Select_Health_Status_From_Server_Health
-
- Wait Until Page Contains Hardware status
- Page should contain All hardware in the system
-
-
-Verify Inventory Export From Server Health Clickable
- [Documentation] Verify ability to export inventory from "Hardware status"
- ... sub-menu.
- [Tags] Verify_Inventory_Export_From_Server_Health_Clickable
-
- Page Should Contain Element ${xpath_inventory_export}
- Click Element ${xpath_inventory_export}
-
-
-Verify Search Text Enterable
- [Documentation] Verify search text input allowed from "Hardware status"
- ... sub-menu.
- [Tags] Verify_Search_Text_Enterable
-
- Page Should Contain Element ${xpath_inventory_search}
- Input Text ${xpath_inventory_search} fan
- Wait Until Page Does Not Contain Element ${xpath_refresh_circle}
- Page Should Contain Element ${xpath_inventory_search_button}
- Click Element ${xpath_inventory_search_button}
-
-
-Verify Search Text Clearable
- [Documentation] Verify search text allowed to clear from "Hardware status"
- ... sub-menu.
- [Tags] Verify_Search_Text_Clearable
-
- Page Should Contain Element ${xpath_inventory_search}
- Input Text ${xpath_inventory_search} fan
- Wait Until Page Does Not Contain Element ${xpath_refresh_circle}
- Page Should Contain Element ${xpath_inventory_search_text_clear}
- Click Element ${xpath_inventory_search_text_clear}
-
-
-Verify System Inventory Expand
- [Documentation] Verify system inventory icon expandable from
- ... "Hardware status" sub-menu.
- [Tags] Verify_System_Inventory_Expand
- [Template] Verify Hardware Inventory Expand
-
- # xpath_hardware_item
- ${xpath_system_expand}
- ${xpath_chassis_expand}
- ${xpath_motherboard_expand}
- ${xpath_bmc_expand}
-
-*** Keywords ***
-
-Test Setup Execution
- [Documentation] Do test case setup tasks.
-
- Click Element ${xpath_select_server_health}
- Wait Until Page Does Not Contain Element ${xpath_refresh_circle}
- Click Element ${xpath_select_hardware_status}
-
-
-Verify Hardware Inventory Expand
- [Documentation] Verify expand individual hardware inventory item.
- [Arguments] ${xpath_hardware_item}
-
- # Description of argument(s):
- # xpath_hardware_item Hardware inventory item to be expand. e.g. fan.
-
- Page Should Contain Element ${xpath_hardware_item}
- Click Button ${xpath_hardware_item}
diff --git a/gui/test/server_health/test_obmc_gui_sensors.robot b/gui/test/server_health/test_obmc_gui_sensors.robot
deleted file mode 100644
index 03fae1c..0000000
--- a/gui/test/server_health/test_obmc_gui_sensors.robot
+++ /dev/null
@@ -1,59 +0,0 @@
-*** Settings ***
-
-Documentation Test OpenBMC GUI "Sensors" sub-menu of "Server health".
-
-Resource ../../lib/resource.robot
-
-Suite Setup Launch Browser And Login OpenBMC GUI
-Suite Teardown Close Browser
-Test Setup Test Setup Execution
-
-Test Tags OBMC_GUI_Sensors
-
-*** Variables ***
-${xpath_select_server_health} //*[@id="nav__top-level"]/li[2]/button
-${xpath_select_sensors} //a[@href='#/server-health/sensors-overview']
-${xpath_sensors_export} //a[contains(text(), "Export")]
-${xpath_sensors_search} //*[@id="content__search-input"]
-${xpath_sensors_search_button} //*[@id="content__search-submit"]
-
-*** Test Cases ***
-Verify Select Sensors From Server Health
- [Documentation] Verify ability to select "Sensors" sub-menu option of
- ... "Server health".
- [Tags] Verify_Select_Sensors_From_Server_Health
-
- Wait Until Page Contains Sensors
- Page should contain All sensors present in the system
-
-
-Verify Sensors Export From Server Health Clickable
- [Documentation] Verify ability to export sensors from "Sensors"
- ... sub-menu of "Server health".
- [Tags] Verify_Sensors_Export_From_Server_Health_Clickable
-
- Page Should Contain Element ${xpath_sensors_export}
- Click Element ${xpath_sensors_export}
-
-
-Verify Search Text Enterable
- [Documentation] Verify search text input allowed from "Sensors"
- ... sub-menu of "Server health".
- [Tags] Verify_Search_Text_Enterable
-
- Page Should Contain Element ${xpath_sensors_search}
- Input Text ${xpath_sensors_search} Temperature
- Wait Until Page Does Not Contain Element ${xpath_refresh_circle}
- Page Should Contain Element ${xpath_sensors_search_button}
- Set Focus To Element ${xpath_sensors_search_button}
- Click Element ${xpath_sensors_search_button}
-
-*** Keywords ***
-
-Test Setup Execution
- [Documentation] Do test case setup tasks.
-
- Click Element ${xpath_select_server_health}
- Wait Until Page Does Not Contain Element ${xpath_refresh_circle}
- Click Element ${xpath_select_sensors}
-
diff --git a/gui/test/server_overview/test_obmc_gui_server_overview.robot b/gui/test/server_overview/test_obmc_gui_server_overview.robot
deleted file mode 100644
index 6257e9a..0000000
--- a/gui/test/server_overview/test_obmc_gui_server_overview.robot
+++ /dev/null
@@ -1,157 +0,0 @@
-*** Settings ***
-Documentation This test suite will validate the "OpenBMC ASMI Menu ->
-... Server Overview" module.
-
-Resource ../../lib/resource.robot
-Resource ../lib/bmc_network_utils.robot
-Test Setup Test Setup Execution ${OBMC_PowerOff_state}
-Test Teardown Test Teardown Execution
-
-Test Tags OBMC_GUI_Server_Overview
-
-*** Variables ***
-${xpath_select_overview_1} //*[@href="#/overview/server"]
-${string_content} witherspoon
-${string_server_info} Server information
-${string_high_priority_events} High priority events
-${string_BMC_info} BMC information
-${string_power_info} Power Consumption
-${xpath_high_priority_events} //a[@href='#/server-health/event-log']
-${string_event_log} Event log
-${xpath_launch_serial_over_lan} //a[@class='no-icon quick-links__item']
-${string_launch_serial_over_lan} Serial over LAN console
-
-*** Test Cases ***
-# OpenBMC @ Power Off state test cases.
-
-Verify Serial Over LAN Button
- [Documentation] Verify console page on clicking serial over lan console button
- [Tags] Verify_Serial_Over_LAN_Button
-
- Select Server Overview Menu
- Click Element ${xpath_launch_serial_over_lan}
- Verify Display Content Access the Serial over LAN console
-
-Verify Title Text Content At OBMC Power Off State
- [Documentation] Verify display of title text from "Server Overview"
- ... module of OpenBMC GUI.
- [Tags] Verify_Title_Text_Content_At_OBMC_Power_Off_State
- ... OBMC_PowerOff_state
-
- Select Server Overview Menu
- Verify Display Content ${string_content}
-
-Verify Display Text Server Information At OBMC Power Off State
- [Documentation] Verify existence of text "Server information".
- [Tags] Verify_Display_Text_Server_Information_At_OBMC_Power_Off_State
- ... OBMC_PowerOff_state
-
- Select Server Overview Menu
- Verify Display Content ${string_server_info}
-
-Verify BMC Information Should Display At OBMC Power Off State
- [Documentation] Verify existence of text "BMC information".
- [Tags] Verify_BMC_Information_Should_Display_At_OBMC_Power_Off_State
- ... OBMC_PowerOff_State
-
- Select Server Overview Menu
- Verify Display Content ${string_BMC_info}
-
-Verify Power Consumption Should Display At OBMC Power Off State
- [Documentation] Verify existence of text "Power Consumption".
- [Tags] Verify_Power_Consumption_Should_Display_At_OBMC_Power_Off_State
- ... OBMC_PowerOff_State
-
- Select Server Overview Menu
- Verify Display Content ${string_power_info}
-
-Verify High Priority Events Should Display At OBMC Power Off State
- [Documentation] Verify the text display.
- [Tags] Verify_High_Priority_Events_Should_Display_At_OBMC_Power_Off_State
- ... OBMC_PowerOff_State
-
- Select Server Overview Menu
- Verify Display Content ${string_high_priority_events}
-
-Verify High Priority Events Can Be Operated At OBMC Power Off State
- [Documentation] Will open the "High Priority Events".
- ... menu to view and operate.
- [Tags] Verify_High_Priority_Events_Can_Be_Operated_At_OBMC_Power_Off_State
- ... OBMC_PowerOff_state
-
- Select Server Overview Menu
- Click Link ${xpath_high_priority_events}
- Verify Display Content ${string_event_log}
-
-Verify Launching Of Serial Over LAN Console At OBMC Power Off State
- [Documentation] Will open the serial over the lan command prompt window.
- [Tags] Verify_Launching_Of_Serial_Over_LAN_Console_At_OBMC_Power_Off_State
- ... OBMC_PowerOff_State
-
- Select Server Overview Menu
- Click Element ${xpath_launch_serial_over_lan}
- Verify Display Content ${string_launch_serial_over_lan}
-
-
-# OpenBMC @ Power Running state test cases.
-
-Verify BMC Information
- [Documentation] Get BMC hostname, version, IP, and MAC address via GUI and verify using REST
- [Tags] Verify_BMC_Information
-
- Select Server Overview Menu
-
- ${hostname}= Get BMC Hostname
- ${hostname}= Remove String ${hostname} '
- ${hostname}= Fetch From Right ${hostname} :
- Verify Display Content ${hostname}
-
- ${version}= Get BMC Version
- ${version}= Remove String ${version} "
- Verify Display Content ${version}
-
- ${iplist}= Get BMC IP Info
- FOR ${ip} IN @{iplist}
- ${ip}= Fetch From Left ${ip} /
- Verify Display Content ${ip}
- END
-
- ${mac}= Get BMC MAC Address
- Verify Display Content ${mac}
-
-Verify High Priority Events Can Be Operated At OBMC Power Running State
- [Documentation] Will open the "High Priority Events"
- ... menu to view and operate.
- [Tags] Verify_High_Priority_Events_Can_Be_Operated_At_OBMC_Power_Running_State
- ... OBMC_PowerRunning_state
- [Setup] Test Setup Execution ${OBMC_PowerRunning_state}
-
- Select Server Overview Menu
- Click Link ${xpath_high_priority_events}
- Verify Display Content ${string_event_log}
-
-Verify Launching Of Serial Over LAN Console At OBMC Power Running State
- [Documentation] Will open the serial over the lan command prompt window.
- [Tags] Verify_Launching_Of_Serial_Over_LAN_Console_At_OBMC_Power_Running_State
- ... OBMC_PowerRunning_State
- [Setup] Test Setup Execution ${OBMC_PowerRunning_state}
-
- Select Server Overview Menu
- Click Element ${xpath_launch_serial_over_lan}
- Verify Display Content ${string_launch_serial_over_lan}
-
-*** Keywords ***
-Select Server Overview Menu
- [Documentation] Selecting of OpenBMC "Server overview" menu.
-
- Click Element ${xpath_select_overview_1}
- Wait Until Page Does Not Contain Element ${xpath_refresh_circle}
- Page Should Contain Server information
-
-Verify Display Content
- [Documentation] Verify text content display.
- [Arguments] ${display_text}
- # Description of argument(s):
- # display_text The display text on web page.
-
- Page Should Contain ${display_text}