GUI:Fix for power cap variable name

Changes:
  - In gui/gui_test/security_and_access_menu/test_user_management_sub_menu.robot
  - changes in redfish power value variable..

Tested:
  -Ran above test case from sandbox successfully.

Change-Id: I42d5ad2879c857cfc40d91e67c27c923131550d4
Signed-off-by: Nandish-Matti <nandish.matti@ibm.com>
diff --git a/ipmi/test_ipmi_general.robot b/ipmi/test_ipmi_general.robot
index 2a2af87..37d0d71 100644
--- a/ipmi/test_ipmi_general.robot
+++ b/ipmi/test_ipmi_general.robot
@@ -265,16 +265,16 @@
     ...              if initial power cap value is zero.
     [Tags]  Verify_Power_Cap_Value_Via_IPMI
     [Setup]  Redfish.Login
-    [Teardown]  Run Keywords  Set Power Cap Value Via Redfish  ${initial_power_value}  AND  Redfish.Logout
+    [Teardown]  Run Keywords  Set Power Cap Value Via Redfish  ${redfish_power_value}  AND  Redfish.Logout
 
     # Get power cap value via Redfish.
     ${power_cap_limit}=  Get System Power Cap Limit
 
     # Get initial power cap value.
-    ${initial_power_value}=  Set Variable  ${power_cap_limit['SetPoint']}
+    ${redfish_power_value}=  Set Variable  ${power_cap_limit['SetPoint']}
 
     # Update power cap value via Redfish if the initial power cap value is zero.
-    IF  ${initial_power_value} == 0
+    IF  ${redfish_power_value} == 0
         # Get the allowable min and max power cap value via Redfish.
         ${min_power_value}=  Set Variable  ${power_cap_limit['AllowableMin']}
         ${max_power_value}=  Set Variable  ${power_cap_limit['AllowableMax']}
@@ -284,6 +284,7 @@
 
         # Set power value via Redfish.
         Set Power Cap Value Via Redfish  ${random_power_cap}
+        ${redfish_power_value}=  Set Variable  ${random_power_cap}
     END
 
     # Get power cap value via IPMI.
@@ -298,7 +299,7 @@
     ${ipmi_power_cap_value}=  Strip String  ${output_limit}  mode=both  characters= Watts
 
     # Perform a comparison of power cap values obtained from both IPMI and Redfish.
-    ${redfish_power_cap_value}=  Convert To String  ${random_power_cap}
+    ${redfish_power_cap_value}=  Convert To String  ${redfish_power_value}
     Should Be Equal  ${ipmi_power_cap_value}  ${redfish_power_cap_value}