blob: cae83359b9c0ee0a4d47bea39ffeb31629f1dab8 [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
George Keishing0302e9a2023-10-12 21:48:35 +053011Force Tags Progress_Logs_Sub_Menu
Ashwini Chandrappa71c003f2021-08-26 06:50:46 -050012
13*** Variables ***
14
15${xpath_progress_logs_heading} //h1[text()="Progress logs"]
16${xpath_search_logs_input} //*[contains(@id,"searchInput")]
17${xpath_from_date_input} //*[@id="input-from-date"]
18${xpath_to_date_input} //*[@id="input-to-date"]
Ashwini Chandrappa71c003f2021-08-26 06:50:46 -050019
20
21*** Test Cases ***
22
23Verify Navigation To Progress Logs Page
24 [Documentation] Verify navigation to progress logs page.
25 [Tags] Verify_Navigation_To_Progress_Logs_Page
26
27 Page Should Contain Element ${xpath_progress_logs_heading}
28
29
Ashwini Chandrappa71c003f2021-08-26 06:50:46 -050030Verify Existence Of All Input Boxes In Progress Logs Page
31 [Documentation] Verify existence of all input boxes in progress logs page.
32 [Tags] Verify_Existence_Of_All_Input_Boxes_In_Progress_Logs_Page
33
34 # Search logs.
35 Page Should Contain Element ${xpath_search_logs_input}
36
37 # Date filter.
38 Page Should Contain Element ${xpath_from_date_input} limit=1
39 Page Should Contain Element ${xpath_to_date_input} limit=1
40
41
rramyasr-in6b664a22023-01-03 02:46:02 -060042Verify Existence Of All Sections In Progress Logs Page
43 [Documentation] Verify existence of all sections in Progress Logs page.
44 [Tags] Verify_Existence_Of_All_Sections_In_Progress_Logs_Page
45
46 Page Should Contain Progress logs
47
48
49Verify Existence Of All Fields In Progress Logs Page
50 [Documentation] Verify existence of all fields in progress Logs page.
51 [Tags] Verify_Existence_Of_All_Fields_In_Progress_Logs_Page
52 [Template] Page Should Contain
53
54 # Expected parameters
55 Created
56 Time stamp offset
57 Boot count
58 Code
59
60
Ashwini Chandrappa71c003f2021-08-26 06:50:46 -050061*** Keywords ***
62
63Suite Setup Execution
64 [Documentation] Do suite setup tasks.
65
66 Launch Browser And Login GUI
67 Click Element ${xpath_logs_menu}
68 Click Element ${xpath_progress_logs_sub_menu}
69 Wait Until Keyword Succeeds 30 sec 5 sec Location Should Contain post-code-logs
rramyasr-in9e2c96f2023-01-24 07:59:34 -060070 Wait Until Element Is Not Visible ${xpath_page_loading_progress_bar} timeout=30