Rahul Maheshwari | 8c5f054 | 2020-08-12 00:46:40 -0500 | [diff] [blame] | 1 | *** Settings *** |
| 2 | |
| 3 | Documentation Test OpenBMC GUI "Date and time settings" sub-menu of "Configuration". |
| 4 | |
| 5 | Resource ../../lib/resource.robot |
| 6 | |
| 7 | Suite Setup Suite Setup Execution |
| 8 | Suite Teardown Close Browser |
| 9 | |
| 10 | |
| 11 | *** Variables *** |
| 12 | |
| 13 | ${xpath_select_manual} //*[@data-test-id="dateTimeSettings-radio-configureManual"] |
| 14 | ${xpath_select_ntp} //*[@data-test-id="dateTimeSettings-radio-configureNTP"] |
| 15 | ${xpath_manual_date} //input[@data-test-id="dateTimeSettings-input-manualDate"] |
| 16 | ${xpath_manual_time} //input[@data-test-id="dateTimeSettings-input-manualTime"] |
| 17 | ${xpath_ntp_server1} //input[@data-test-id="dateTimeSettings-input-ntpServer1"] |
| 18 | ${xpath_ntp_server2} //input[@data-test-id="dateTimeSettings-input-ntpServer2"] |
| 19 | ${xpath_ntp_server3} //input[@data-test-id="dateTimeSettings-input-ntpServer3"] |
| 20 | ${xpath_select_save_settings} //button[@data-test-id="dateTimeSettings-button-saveSettings"] |
| 21 | |
| 22 | |
| 23 | *** Test Cases *** |
| 24 | |
| 25 | Verify Existence Of All Sections In Date And Time Settings Page |
| 26 | [Documentation] Verify existence of all sections in date and time settings page. |
| 27 | [Tags] Verify_Existence_Of_All_Sections_In_Date_And_Time_Settings_Page |
| 28 | |
| 29 | Page Should Contain Configure settings |
| 30 | |
| 31 | |
| 32 | Verify Existence Of All Buttons In Date And Time Settings Page |
| 33 | [Documentation] Verify existence of all buttons in date and time settings page. |
| 34 | [Tags] Verify_Existence_Of_All_Buttons_In_Date_And_Time_Settings_Page |
| 35 | |
| 36 | Page Should Contain Element ${xpath_select_manual} |
| 37 | Page Should Contain Element ${xpath_select_ntp} |
| 38 | Page Should Contain Element ${xpath_select_save_settings} |
| 39 | |
| 40 | |
| 41 | Verify Existence Of All Input Boxes In Date And Time Settings Page |
| 42 | [Documentation] Verify existence of all input boxes in date time settings page. |
| 43 | [Tags] Verify_Existence_Of_All_Input_Boxes_In_Date_And_Time_Settings_Page |
| 44 | |
| 45 | Click Element At Coordinates ${xpath_select_manual} 0 0 |
| 46 | Page Should Contain Element ${xpath_manual_date} |
| 47 | Page Should Contain Element ${xpath_manual_time} |
| 48 | |
| 49 | Click Element At Coordinates ${xpath_select_ntp} 0 0 |
| 50 | Page Should Contain Element ${xpath_ntp_server1} |
| 51 | Page Should Contain Element ${xpath_ntp_server2} |
| 52 | Page Should Contain Element ${xpath_ntp_server3} |
| 53 | |
| 54 | |
| 55 | *** Keywords *** |
| 56 | |
| 57 | Suite Setup Execution |
| 58 | [Documentation] Do test case setup tasks. |
| 59 | |
| 60 | Launch Browser And Login GUI |
| 61 | Click Element ${xpath_server_configuration} |
| 62 | Click Element ${xpath_date_time_settings_sub_menu} |
| 63 | Wait Until Keyword Succeeds 30 sec 10 sec Location Should Contain date-time-settings |
| 64 | |