Modified hard-code when get FRU info

Modify hard-code to global variable when get FRU info.

Signed-off-by: Tony Lee <tony.lee@quantatw.com>
Change-Id: I99e6201423d84e07dcb3dc06a2a7e2ea80a6a7f5
diff --git a/ipmi/test_ipmi_fru.robot b/ipmi/test_ipmi_fru.robot
index 9552013..59caa2f 100644
--- a/ipmi/test_ipmi_fru.robot
+++ b/ipmi/test_ipmi_fru.robot
@@ -21,11 +21,11 @@
     [Tags]  Test_FRU_Info_Of_Power_Supplies
 
     # IPMI FRU info.
-    ${ipmi_fru_component_info}=  Get Component FRU Info  powersupply
+    ${ipmi_fru_component_info}=  Get Component FRU Info  ${COMPONENT_NAME_OF_POWER_SUPPLY}
     ...  ${fru_objs}
 
     # Redfish FRU info.
-    ${redfish_power_details}=  Redfish.Get Properties  /redfish/v1/Chassis/chassis/Power
+    ${redfish_power_details}=  Redfish.Get Properties  /redfish/v1/Chassis/${CHASSIS_ID}/Power
     ${redfish_power_supply_reading}=  Set Variable  ${redfish_power_details['PowerSupplies']}
 
     Verify IPMI and Redfish subcomponents  ${redfish_power_supply_reading}