Automation of Sanity scenarios

Change-Id: I73b585c292aa53fcb64c1778b2264652ba619501
Signed-off-by: Sridevi Ramesh <sridevra@in.ibm.com>
diff --git a/openpower/ras/test_sanity.robot b/openpower/ras/test_sanity.robot
new file mode 100644
index 0000000..dbbaa77
--- /dev/null
+++ b/openpower/ras/test_sanity.robot
@@ -0,0 +1,34 @@
+*** Settings ***
+Documentation    Test RAS sanity scenarios.
+
+Resource        ../../lib/openbmc_ffdc.robot
+Resource        ../../lib/openbmc_ffdc_utils.robot
+Resource        ../../lib/openbmc_ffdc_methods.robot
+Resource        ../../lib/ras/host_utils.robot
+Resource        ../../lib/utils.py
+Resource        ../../openpower/ras/ras_utils.robot
+Variables       ../../lib/ras/variables.py
+Variables       ../../data/variables.py
+
+Suite Setup      REST Power On
+Test Setup       Printn
+Test Teardown    FFDC On Test Case Fail
+
+
+*** Variables ***
+${proc_chip_id}    0
+
+# mention count to read system memory.
+${count}           128
+
+*** Test Cases ***
+
+Test BMC Getscom
+    ${value}=  Get From Dictionary  ${ERROR_INJECT_DICT}  MCACALIFIR_RECV1
+    Pdbg  -p${proc_chip_id} getscom 0x${value[0]}
+
+Test BMC Getcfam
+    Pdbg  -p${proc_chip_id} getcfam 0x${cfam_address}
+
+Test BMC Getmem
+    Pdbg  -p${proc_chip_id} getmem 0x${mem_address} ${count}