blob: ee05ff990379a09118575e982b92c6085014c803 [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
rramyasr-in6b664a22023-01-03 02:46:02 -060041Verify Existence Of All Sections In Progress Logs Page
42 [Documentation] Verify existence of all sections in Progress Logs page.
43 [Tags] Verify_Existence_Of_All_Sections_In_Progress_Logs_Page
44
45 Page Should Contain Progress logs
46
47
48Verify Existence Of All Fields In Progress Logs Page
49 [Documentation] Verify existence of all fields in progress Logs page.
50 [Tags] Verify_Existence_Of_All_Fields_In_Progress_Logs_Page
51 [Template] Page Should Contain
52
53 # Expected parameters
54 Created
55 Time stamp offset
56 Boot count
57 Code
58
59
Ashwini Chandrappa71c003f2021-08-26 06:50:46 -050060*** Keywords ***
61
62Suite Setup Execution
63 [Documentation] Do suite setup tasks.
64
65 Launch Browser And Login GUI
66 Click Element ${xpath_logs_menu}
67 Click Element ${xpath_progress_logs_sub_menu}
68 Wait Until Keyword Succeeds 30 sec 5 sec Location Should Contain post-code-logs
rramyasr-in9e2c96f2023-01-24 07:59:34 -060069 Wait Until Element Is Not Visible ${xpath_page_loading_progress_bar} timeout=30