17 TC are automated from "Server control" module
Change-Id: If1fa2f36275359ab9323ea7a41c92c870b61632c
Signed-off-by: Sathyajith M S <sathyajith.ms@in.ibm.com>
diff --git a/gui/obmc_gui/data/resource_variables.py b/gui/obmc_gui/data/resource_variables.py
index 6fd1de6..27b33a0 100644
--- a/gui/obmc_gui/data/resource_variables.py
+++ b/gui/obmc_gui/data/resource_variables.py
@@ -17,15 +17,62 @@
xpath_openbmc_ip = "//*[@id='login__form']/input[1]"
xpath_display_server_power_status = \
"//*[@id='header__wrapper']/div/div[3]/a[3]/span"
- xpath_select_button_orderly_power_shutdown = \
- "//*[@id='power__soft-shutdown']"
- xpath_select_button_orderly_power_shutdown_yes = \
- "//*[@id='power-operations']/div[3]/div[5]/confirm/div/div[2]/" \
- "button[1]"
xpath_select_button_power_on = "//*[@id='power__power-on']"
+ xpath_select_button_warm_reboot = \
+ "//*[@id='power__warm-boot']"
+ xpath_warm_reboot_warning_message = \
+ "//*[@id='power-operations']" \
+ "/div[3]/div[3]/confirm/div/div[1]/p[1]/strong"
+ xpath_select_button_warm_reboot_no = \
+ "//*[@id='power-operations']/div[3]" \
+ "/div[3]/confirm/div/div[2]/button[2]"
+ text_warm_reboot_warning_message = "warm reboot?"
+ xpath_select_button_warm_reboot_yes = \
+ "//*[@id='power-operations']" \
+ "/div[3]/div[3]/confirm/div/div[2]/button[1]"
+
+ xpath_select_button_cold_reboot = \
+ "//*[@id='power__cold-boot']"
+ xpath_cold_reboot_warning_message = \
+ "//*[@id='power-operations']/div[3]/div[4]" \
+ "/confirm/div/div[1]/p[1]/strong"
+ xpath_select_button_cold_reboot_no = \
+ "//*[@id='power-operations']/div[3]/div[4]" \
+ "/confirm/div/div[2]/button[2]"
+ text_cold_reboot_warning_message = "cold reboot?"
+ xpath_select_button_cold_reboot_yes = \
+ "//*[@id='power-operations']" \
+ "/div[3]/div[4]/confirm/div/div[2]/button[2]"
+
+ xpath_select_button_orderly_shutdown = \
+ "//*[@id='power__soft-shutdown']"
+ xpath_orderly_shutdown_warning_message = \
+ "//*[@id='power-operations']/div[3]/div[5]/" \
+ "confirm/div/div[1]/p[1]/strong"
+ xpath_select_button_orderly_shutdown_button_no = \
+ "//*[@id='power-operations']/div[3]/div[5]"\
+ "/confirm/div/div[2]/button[2]"
+ text_orderly_shutdown_warning_message = "orderly shutdown?"
+ xpath_select_button_orderly_shutdown_yes = \
+ "//*[@id='power-operations']/div[3]/div[5]" \
+ "/confirm/div/div[2]/button[1]"
+
+ xpath_select_button_immediate_shutdown = \
+ "//*[@id='power__hard-shutdown']"
+ xpath_immediate_shutdown_warning_message = \
+ "//*[@id='power-operations']/div[3]/div[6]" \
+ "/confirm/div/div[1]/p[1]/strong"
+ xpath_select_button_immediate_shutdown_no = \
+ "//*[@id='power-operations']/div[3]/div[6]" \
+ "/confirm/div/div[2]/button[2]"
+ text_immediate_shutdown_warning_message = "immediate shutdown?"
+ xpath_select_button_immediate_shutdown_yes = \
+ "//*[@id='power-operations']/div[3]/div[6]" \
+ "/confirm/div/div[2]/button[1]"
+
obmc_off_state = "Off"
- obmc_quiesced_state = "Quiesced"
+ obmc_standby_state = "Standby"
obmc_running_state = "Running"
# Power operation elements needed for power on.