blob: 0293627cef7d06f722325fc9efca685018ef4418 [file] [log] [blame]
Ashwini Chandrappa71c003f2021-08-26 06:50:46 -05001*** Settings ***
2
3Documentation Test OpenBMC GUI "Progress logs" sub-menu.
4
5Resource ../../lib/gui_resource.robot
6Resource ../../../lib/logging_utils.robot
7
8Suite Setup Suite Setup Execution
9Suite Teardown Close Browser
10
11
12*** Variables ***
13
14${xpath_progress_logs_heading} //h1[text()="Progress logs"]
15${xpath_search_logs_input} //*[contains(@id,"searchInput")]
16${xpath_from_date_input} //*[@id="input-from-date"]
17${xpath_to_date_input} //*[@id="input-to-date"]
Ashwini Chandrappa71c003f2021-08-26 06:50:46 -050018
19
20*** Test Cases ***
21
22Verify Navigation To Progress Logs Page
23 [Documentation] Verify navigation to progress logs page.
24 [Tags] Verify_Navigation_To_Progress_Logs_Page
25
26 Page Should Contain Element ${xpath_progress_logs_heading}
27
28
Ashwini Chandrappa71c003f2021-08-26 06:50:46 -050029Verify Existence Of All Input Boxes In Progress Logs Page
30 [Documentation] Verify existence of all input boxes in progress logs page.
31 [Tags] Verify_Existence_Of_All_Input_Boxes_In_Progress_Logs_Page
32
33 # Search logs.
34 Page Should Contain Element ${xpath_search_logs_input}
35
36 # Date filter.
37 Page Should Contain Element ${xpath_from_date_input} limit=1
38 Page Should Contain Element ${xpath_to_date_input} limit=1
39
40
41*** Keywords ***
42
43Suite Setup Execution
44 [Documentation] Do suite setup tasks.
45
46 Launch Browser And Login GUI
47 Click Element ${xpath_logs_menu}
48 Click Element ${xpath_progress_logs_sub_menu}
49 Wait Until Keyword Succeeds 30 sec 5 sec Location Should Contain post-code-logs