1*** Settings ***
2
3Documentation   Test OpenBMC GUI "Sessions" sub-menu of "Security and access" menu.
4
5Resource        ../../lib/gui_resource.robot
6
7Suite Setup     Launch Browser And Login GUI
8Suite Teardown  Close Browser
9Test Setup      Test Setup Execution
10
11Force Tags      Sessions_Sub_Menu
12
13*** Variables ***
14
15${xpath_sessions_heading}  //h1[contains(text(),'sessions')]
16
17
18*** Test Cases ***
19
20Verify Navigation To Sessions Page
21    [Documentation]  Verify navigation to sessions page.
22    [Tags]  Verify_Navigation_To_Sessions_Page
23
24    Page Should Contain Element  ${xpath_sessions_heading}
25
26
27*** Keywords ***
28
29Test Setup Execution
30    [Documentation]  Do test case setup tasks.
31
32    Click Element  ${xpath_secuity_and_accesss_menu}
33    Click Element  ${xpath_sessions_sub_menu}
34    Wait Until Keyword Succeeds  30 sec  5 sec  Location Should Contain  sessions
35    Wait Until Element Is Not Visible   ${xpath_page_loading_progress_bar}  timeout=30
36