blob: b5b4cd22ae9d72d4d051e01b7e160f4f1e1118b1 [file] [log] [blame]
Rahul Maheshwaric7272652019-06-04 06:09:15 -05001*** Settings ***
2
3Documentation Test OpenBMC GUI "Certificate management" sub-menu of
4... "Server configuration".
5
6Resource ../../lib/resource.robot
7
8Suite Setup Launch Browser And Login OpenBMC GUI
9Suite Teardown Close Browser
10Test Setup Test Setup Execution
11
12
13*** Variables ***
14
Rahul Maheshwaria6812092019-09-03 05:11:50 -050015${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 Maheshwaric7272652019-06-04 06:09:15 -050018
19*** Test Cases ***
20
21Verify 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
30Verify 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
39Test Setup Execution
40 [Documentation] Do test case setup tasks.
41
42 Wait Until Page Does Not Contain Element ${xpath_refresh_circle}
Rahul Maheshwaria6812092019-09-03 05:11:50 -050043 Click Element ${xpath_select_access_control}
Rahul Maheshwaric7272652019-06-04 06:09:15 -050044 Wait Until Page Does Not Contain Element ${xpath_refresh_circle}
45 Click Element ${xpath_select_certificate_management}
46 Wait Until Page Contains SSL certificates