blob: 77992f2d72daf62b8614e4ce9ef087dc35df730c [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
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
22Verify 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
31Verify 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
40Test 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