Fixes for server power suite
- Adding mostly used keyword for login to GUI and removing other.
- Added test setup.
Change-Id: Icb7b16941b531afc27541c4417eb9be3be3ed913
Signed-off-by: Rahul Maheshwari <rahulmaheshwari@in.ibm.com>
diff --git a/gui/obmc_gui/test/gui_header/test_obmc_gui_power_operations.robot b/gui/obmc_gui/test/gui_header/test_obmc_gui_power_operations.robot
index 81d193b..2d72037 100644
--- a/gui/obmc_gui/test/gui_header/test_obmc_gui_power_operations.robot
+++ b/gui/obmc_gui/test/gui_header/test_obmc_gui_power_operations.robot
@@ -5,7 +5,8 @@
Resource ../../../../lib/state_manager.robot
Resource ../../lib/resource.robot
-Suite Setup Login OpenBMC GUI with failure enable
+Test Setup Test Setup Execution
+Suite Setup Launch Browser And Login OpenBMC GUI
Suite Teardown Close Browser
*** Test Cases ***
@@ -127,10 +128,13 @@
Log To Console ${xpath_openbmc_url}
Click Element header
+
*** Keywords ***
-Login OpenBMC GUI with failure enable
- [Documentation] Login to the OpenBMC GUI with failure enabled.
+Test Setup Execution
+ [Documentation] Do testcase setup tasks.
- Open Browser With URL ${xpath_openbmc_url}
- Login OpenBMC GUI ${OPENBMC_USERNAME} ${OPENBMC_PASSWORD}
+ # Refresh the GUI and navigate to server power page.
+ Click Element ${xpath_select_refresh_button}
+ Click Element ${xpath_select_server_power}
+ Wait Until Page Contains Server power operations