Added keyword to gui_resource.robot
Changes:
- Added keyword to launch browser and login gui
with given user.
Tested:
- Ran the test case from sandbox successfully.
Change-Id: I14783527aa4d8491f7b66f02db714cb0853ce1da
Signed-off-by: sarandev3 <saranyad@in.ibm.com>
diff --git a/gui/lib/gui_resource.robot b/gui/lib/gui_resource.robot
index 40ad91b..252dd45 100644
--- a/gui/lib/gui_resource.robot
+++ b/gui/lib/gui_resource.robot
@@ -104,6 +104,18 @@
Wait Until Element Is Not Visible
... ${xpath_page_loading_progress_bar} timeout=120s
+Launch Browser And Login GUI With Given User
+ [Documentation] Launch browser and login eBMC with specified user
+ ... credentials through GUI.
+ [Arguments] ${user_name} ${user_password}
+
+ # Description of argument(s):
+ # user_name User name to login to eBMC.
+ # user_password User password to login to eBMC.
+
+ Open Browser With URL ${obmc_gui_url}
+ LOGIN GUI ${user_name} ${user_password}
+
Logout GUI
[Documentation] Logout of OpenBMC GUI.