Updated Redfish Poweron/off with Poweron/off server
- Updated Power On server keywords
Tested:- Successfully run.
Change-Id: Ibb8000c968e7e617512dfb5594fe28f7b206f2c0
Signed-off-by: rramyasr in <rramyasr@in.ibm.com>
diff --git a/gui/lib/gui_resource.robot b/gui/lib/gui_resource.robot
index d99d8aa..2681931 100644
--- a/gui/lib/gui_resource.robot
+++ b/gui/lib/gui_resource.robot
@@ -245,15 +245,20 @@
[Documentation] Powering on server.
${boot_state} ${host_state}= Redfish Get Boot Progress
+ Log To Console Current boot state: ${boot_state}
+
IF '${boot_state}' == 'OSRunning'
- Log To Console Server is already powered On.
+ Log To Console Server is already powered on.
ELSE
- Set BIOS Attribute pvm_stop_at_standby Disabled
Navigate To Server Power Page
+ IF '${boot_state}' != 'None'
+ Power Off Server
+ END
+ Set BIOS Attribute pvm_stop_at_standby Disabled
Wait And Click Element ${xpath_power_power_on}
Wait Until Element Is Visible ${xpath_power_shutdown} timeout=60s
Verify And Close Information Message Via GUI
- Wait Until Keyword Succeeds 10m 45s Check Boot Progress State Via Redfish OSRunning Enabled
+ Wait Until Keyword Succeeds 15m 45s Check Boot Progress State Via Redfish OSRunning Enabled
END