Verify refresh button under GUI header.

Resolves openbmc/openbmc-test-automation#1257

Change-Id: I7378cfe8c4e383e9b79bdbc04d476cc873521690
Signed-off-by: Sivas SRR <sivas.srr@in.ibm.com>
diff --git a/gui/obmc_gui/lib/resource.robot b/gui/obmc_gui/lib/resource.robot
index e4ebc3c..9d3dad9 100644
--- a/gui/obmc_gui/lib/resource.robot
+++ b/gui/obmc_gui/lib/resource.robot
@@ -312,3 +312,17 @@
     # text_message        Content of the display message info.
 
     Element Text Should Be  ${xpath_text_message}  ${text_message}
+
+
+Expected Initial Test State
+    [Documentation]  Power on the host if "Running" expected, Power off the
+    ...  host if "Off" expected as per the requirement of initial test state.
+    [Arguments]  ${expectedState}
+    # Description of argument(s):
+    # expectedState    Test initial host state.
+
+    Run Keyword If  '${expectedState}' == 'Running'
+    ...  Initiate Host Boot
+
+    Run Keyword If  '${expectedState}' == 'Off'
+    ...  Initiate Host PowerOff