Error logs check after BMC reboot and host power on

Added:
   - Checking error logs after BMC reboot.
   - Checking error logs after Host power on.

Resolves  openbmc/openbmc-test-automation#794

Change-Id: Ia3f87869905899809f46f18f43572ef66cad56f3
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/tests/test_error_log.robot b/tests/test_error_log.robot
index 16e9424..ee954d4 100644
--- a/tests/test_error_log.robot
+++ b/tests/test_error_log.robot
@@ -6,6 +6,7 @@
 Resource            ../lib/utils.robot
 Resource            ../lib/state_manager.robot
 Resource            ../lib/ipmi_client.robot
+Resource            ../lib/boot_utils.robot
 
 Suite Setup         Run Keywords  Verify logging-test  AND
 ...                 Delete Error Logs And Verify
@@ -13,8 +14,38 @@
 Test Teardown       Post Test Case Execution
 Suite Teardown      Delete Error Logs And Verify
 
+*** Variables ***
+
+${stack_mode}       skip
+
 *** Test Cases ***
 
+Error Log Check After BMC Reboot
+    [Documentation]  Check error log after BMC rebooted.
+    [Tags]  Error_Log_Check_At_BMC_Ready
+    # 1. Power off.
+    # 2. Delete error logs.
+    # 3. Reboot BMC.
+    # 4. Check if eror log exists.
+
+    REST Power Off
+    Delete Error Logs And Verify
+    OBMC Reboot(off)
+    Error Logs Should Not Exist
+
+
+Error Log Check After Host Poweron
+    [Documentation]  Check error log after host has booted.
+    [Tags]  Error_Log_Check_At_Host_Booted
+    # 1. Delete error logs
+    # 1. Power on.
+    # 3. Check if eror log exists.
+
+    Delete Error Logs And Verify
+    REST Power On
+    Error Logs Should Not Exist
+
+
 Create Test Error And Verify
     [Documentation]  Create error logs and verify via REST.
     [Tags]  Create_Test_Error_And_Verify