Enable GUI headerless run, init, new GUI directory structure.
Resolves openbmc/openbmc-test-automation#736
Change-Id: I9d6cb1eca31585dc2f85b78ae03de8ac8c799fd9
Signed-off-by: Sathyajith M S <sathyajith.ms@in.ibm.com>
diff --git a/gui/obmc_asmi/__init__.robot b/gui/obmc_asmi/__init__.robot
new file mode 100644
index 0000000..c747479
--- /dev/null
+++ b/gui/obmc_asmi/__init__.robot
@@ -0,0 +1,36 @@
+*** Settings ***
+Documentation Main initialization file for the test cases contained in this
+... directory and setting up the test environment variables.
+
+Resource lib/resource.robot
+Suite Setup Initializing Setup
+Suite Teardown Init Teardown Steps
+
+*** Keywords ***
+Initializing Setup
+ [Documentation] Initialize test environment.
+ Launch OpenBMC GUI Browser
+ Login OpenBMC GUI
+ Get OpenBMC System Info
+ Initial Message
+ LogOut OpenBMC GUI
+
+Initial Message
+ [Documentation] Display initial info about the test cases.
+ Rpvars EXECDIR
+ Rprint Timen OBMC_GUI Testing ==> [IN PROGRESS]
+ Print Dashes 0 100 1 =
+
+Get OpenBMC System Info
+ [Documentation] Display open BMC system info like system name and IP.
+ ${OPENBMC_HOST_NAME}= Get Hostname From IP Address ${OPENBMC_HOST}
+ Rpvars OPENBMC_HOST OPENBMC_HOST_NAME
+ ${build_info} ${stderr} ${rc}= BMC Execute Command cat /etc/os-release
+ ... print_output=1
+ Print Dashes 0 100 1 =
+
+Init Teardown Steps
+ [Documentation] End the test execution by closing browser.
+ Print Timen OBMC_GUI Testing ==> [Finished]
+ Print Dashes 0 100 1 =
+ Close Browser