Added tests for users menu on GUI.
Added following test cases:
- Verify Select "Manage Users Account" From "Users".
- Verify Existing Of All Password Input Boxes.
- Verify Existing Of Save Button.
Resolves openbmc/openbmc-test-automation#1367
Change-Id: I396999ffc5c7c4890cf896f5592609e131a88d40
Signed-off-by: Sivas SRR <sivas.srr@in.ibm.com>
diff --git a/gui/obmc_gui/test/users/test_obmc_gui_manage_user.robot b/gui/obmc_gui/test/users/test_obmc_gui_manage_user.robot
new file mode 100644
index 0000000..e6792e2
--- /dev/null
+++ b/gui/obmc_gui/test/users/test_obmc_gui_manage_user.robot
@@ -0,0 +1,55 @@
+*** Settings ***
+
+Documentation Test OpenBMC GUI "Manage user account" sub-menu of
+... "Users".
+
+Resource ../../lib/resource.robot
+
+Suite Setup Launch Browser And Login OpenBMC GUI
+Suite Teardown Logout And Close Browser
+Test Setup Test Setup Execution
+
+*** Variables ***
+${xpath_select_users} //*[@id="nav__top-level"]/li[5]/button/span[1]
+${xpath_select_manage_users} //a[@href='#/users/manage-accounts']
+${xpath_current_password} //*[@id="user-manage__current-password"]
+${xpath_new_password} //*[@id="user-manage__new-password"]
+${xpath_retype_new_password} //*[@id="user-manage__verify-password"]
+${xpath_save_button} //*[@id="user-accounts"]/section/form/div/button
+
+*** Test Cases ***
+Verify Select Manage Users Account From Users
+ [Documentation] Verify ability to select "Manage Users Account" sub-menu
+ ... option of "Users".
+ [Tags] Verify_Select_Manage_Users_Account_From_Users
+
+ Wait Until Page Contains Manage user account
+ Page should contain Change password
+
+
+Verify Existence Of All Password Input Boxes
+ [Documentation] Verify all password input boxes exists.
+ [Tags] Verify_Existence_Of_All_Password_Input_Boxes
+
+ Page Should Contain Element ${xpath_current_password}
+ Page Should Contain Element ${xpath_new_password}
+ Page Should Contain Element ${xpath_retype_new_password}
+
+
+Verify Existence Of Save Button
+ [Documentation] Verify save button exists.
+ [Tags] Verify_Existence_Of_Save_Button
+
+ Page Should Contain Element ${xpath_save_button}
+
+*** Keywords ***
+
+Test Setup Execution
+ [Documentation] Do test case setup tasks.
+
+ Page Should Contain Element ${xpath_select_users}
+ Set Focus To Element ${xpath_select_users}
+ Click Element ${xpath_select_users}
+ Wait Until Page Does Not Contain Element ${xpath_refresh_circle}
+ Click Element ${xpath_select_manage_users}
+