Rahul Maheshwari | c727265 | 2019-06-04 06:09:15 -0500 | [diff] [blame] | 1 | *** Settings *** |
| 2 | |
| 3 | Documentation Test OpenBMC GUI "Certificate management" sub-menu of |
| 4 | ... "Server configuration". |
| 5 | |
| 6 | Resource ../../lib/resource.robot |
| 7 | |
| 8 | Suite Setup Launch Browser And Login OpenBMC GUI |
| 9 | Suite Teardown Close Browser |
| 10 | Test Setup Test Setup Execution |
| 11 | |
| 12 | |
| 13 | *** Variables *** |
| 14 | |
Rahul Maheshwari | a681209 | 2019-09-03 05:11:50 -0500 | [diff] [blame] | 15 | ${xpath_select_certificate_management} //a[@href='#/access-control/ssl-certificates'] |
| 16 | ${xpath_select_access_control} //*[@id="nav__top-level"]/li[5]/button |
| 17 | ${xpath_add_certificate_button} //*[contains(text(), "Add new certificate")] |
Rahul Maheshwari | c727265 | 2019-06-04 06:09:15 -0500 | [diff] [blame] | 18 | |
| 19 | *** Test Cases *** |
| 20 | |
| 21 | Verify Existence Of All Sections In Certificate Page |
| 22 | [Documentation] Verify existence of all sections in certificate page. |
| 23 | [Tags] Verify_Existence_Of_All_Sections_In_Certificate_Page |
| 24 | |
| 25 | Page should contain Certificate |
| 26 | Page should contain Valid from |
| 27 | Page should contain Valid until |
| 28 | |
| 29 | |
| 30 | Verify Existence Of Add Certificate Button |
| 31 | [Documentation] Verify existence of add certificate button. |
| 32 | [Tags] Verify_Existence_Of_Add_Certificate_Button |
| 33 | |
| 34 | Page Should Contain Element ${xpath_add_certificate_button} |
| 35 | |
| 36 | |
| 37 | *** Keywords *** |
| 38 | |
| 39 | Test Setup Execution |
| 40 | [Documentation] Do test case setup tasks. |
| 41 | |
| 42 | Wait Until Page Does Not Contain Element ${xpath_refresh_circle} |
Rahul Maheshwari | a681209 | 2019-09-03 05:11:50 -0500 | [diff] [blame] | 43 | Click Element ${xpath_select_access_control} |
Rahul Maheshwari | c727265 | 2019-06-04 06:09:15 -0500 | [diff] [blame] | 44 | Wait Until Page Does Not Contain Element ${xpath_refresh_circle} |
| 45 | Click Element ${xpath_select_certificate_management} |
| 46 | Wait Until Page Contains SSL certificates |