Added test for Local User Managment sub menu
Changes:
- Added suite to test Local users page
- Added tests to verify existence of all sections,
buttons and checkboxes of Local users page
Change-Id: I3ca884306cf2696c43317bf1e64f16482e3ebb58
Signed-off-by: Sushma M M <sushmm99@in.ibm.com>
diff --git a/gui/gui_test/access_control/test_obmc_gui_local_users.robot b/gui/gui_test/access_control/test_obmc_gui_local_users.robot
new file mode 100644
index 0000000..08efc72
--- /dev/null
+++ b/gui/gui_test/access_control/test_obmc_gui_local_users.robot
@@ -0,0 +1,54 @@
+*** Settings ***
+
+Documentation Test OpenBMC GUI "Local user management" sub-menu of "Access control".
+
+Resource ../../lib/resource.robot
+
+Suite Setup Launch Browser And Login GUI
+Suite Teardown Close Browser
+Test Setup Test Setup Execution
+
+
+*** Variables ***
+${xpath_select_user} //input[contains(@class,"custom-control-input")]
+${xpath_account_policy} //button[contains(text(),'Account policy settings')]
+${xpath_add_user} //button[contains(text(),'Add user')]
+${xpath_edit_user} //button[@aria-label="Edit user"]
+${xpath_delete_user} //button[@aria-label="Delete user"]
+
+*** Test Cases ***
+
+Verify Existence Of All Sections In Local User Management Page
+ [Documentation] Verify existence of all sections in local user management page.
+ [Tags] Verify_Existence_Of_All_Sections_In_Local_User_Management_Page
+
+ Page should contain View privilege role descriptions
+
+
+Verify Existence Of All Input Boxes In Local User Management Page
+ [Documentation] Verify existence of all sections in Manage Power Usage page.
+ [Tags] Verify_Existence_Of_All_Input_Boxes_In_Local_User_Management_Page
+
+ Page Should Contain Checkbox ${xpath_select_user}
+
+
+Verify Existence Of All Buttons In Local User Management Page
+ [Documentation] Verify existence of all buttons in local user management page.
+ [Tags] Verify_Existence_Of_All_Buttons_In_Local_User_Management_Page
+
+ Page should contain Button ${xpath_account_policy}
+ Page should contain Button ${xpath_add_user}
+ Page Should Contain Button ${xpath_edit_user}
+ Page Should Contain Button ${xpath_delete_user}
+
+
+*** Keywords ***
+
+Test Setup Execution
+ [Documentation] Do test case setup tasks.
+
+ # Navigate to https://xx.xx.xx.xx/#/access-control/local-user-management Local users page.
+
+ Click Element ${xpath_access_control_menu}
+ Click Element ${xpath_local_user_management_sub_menu}
+ Wait Until Keyword Succeeds 30 sec 10 sec Location Should Contain local-user-management