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 | |
| 15 | ${xpath_select_certificate_management} //a[@href='#/configuration/certificate'] |
| 16 | ${xpath_select_server_configuration} //*[@id="nav__top-level"]/li[4]/button |
| 17 | ${xpath_add_certificate_button} //button[text() ="Add new certificate"] |
| 18 | |
| 19 | |
| 20 | *** Test Cases *** |
| 21 | |
| 22 | Verify Existence Of All Sections In Certificate Page |
| 23 | [Documentation] Verify existence of all sections in certificate page. |
| 24 | [Tags] Verify_Existence_Of_All_Sections_In_Certificate_Page |
| 25 | |
| 26 | Page should contain Certificate |
| 27 | Page should contain Valid from |
| 28 | Page should contain Valid until |
| 29 | |
| 30 | |
| 31 | Verify Existence Of Add Certificate Button |
| 32 | [Documentation] Verify existence of add certificate button. |
| 33 | [Tags] Verify_Existence_Of_Add_Certificate_Button |
| 34 | |
| 35 | Page Should Contain Element ${xpath_add_certificate_button} |
| 36 | |
| 37 | |
| 38 | *** Keywords *** |
| 39 | |
| 40 | Test Setup Execution |
| 41 | [Documentation] Do test case setup tasks. |
| 42 | |
| 43 | Wait Until Page Does Not Contain Element ${xpath_refresh_circle} |
| 44 | Click Element ${xpath_select_server_configuration} |
| 45 | Wait Until Page Does Not Contain Element ${xpath_refresh_circle} |
| 46 | Click Element ${xpath_select_certificate_management} |
| 47 | Wait Until Page Contains SSL certificates |