Added test to verify enabling SSH via GUI

Change-Id: Ie206475ba3830e6f034069e7465e40532a213e82
Signed-off-by: meghagn12345 <Megha.GN@ibm.com>
diff --git a/gui/lib/gui_resource.robot b/gui/lib/gui_resource.robot
index 38266f4..794adf7 100644
--- a/gui/lib/gui_resource.robot
+++ b/gui/lib/gui_resource.robot
@@ -128,3 +128,22 @@
     Click Element  ${xpath_refresh_button}
     # Added delay for page to load fully after refresh.
     Sleep  5s
+
+
+Refresh GUI And Verify Element Value
+    [Documentation]  Refresh GUI using refresh button and verify that given element contains expected value.
+    [Arguments]  ${element}  ${expected_value}
+
+    # Description of argument(s):
+    # element         Element whose value need to be checked.
+    # expected_value  Expected value of for the given element.
+
+    # Refresh GUI.
+
+    Click Element  ${xpath_refresh_button}
+
+    # Check element value and verify that it contains expected value.
+    ${element_value}=  Get Text  ${element}
+    Log  ${element_value}
+    Should Contain  ${element_value}  ${expected_value}
+