Add TC Verify Verbose Flag For Incorrect PLDM Raw Command

Changes:
Add new TC
- Verify Verbose Flag For Incorrect PLDM Raw Command

Tested:
- Verified changes on BMC environment

Change-Id: I680a12a6e6b66a6fab53bddf4a6f2bfa7121b2bd
Signed-off-by: Sridevi Ramesh <sridevra@in.ibm.com>
diff --git a/data/pldm_variables.py b/data/pldm_variables.py
index 844c4bf..f18b6d6 100755
--- a/data/pldm_variables.py
+++ b/data/pldm_variables.py
@@ -261,3 +261,6 @@
 
 PLDM_GET_PLDM_TYPES_RAW_CMD = "raw -d 0x80 0x00 0x04"
 PLDM_GET_PLDM_TYPES_RAW_CMD_OUTPUT = "00 00 04 00 1d 00 00 00 00 00 00 80"
+
+PLDM_RAW_CMD_INVALID = "raw -d 0x80 0x00 0x00"
+PLDM_RAW_CMD_INVALID_OUTPUT = "00 00 00 05"
diff --git a/pldm/test_pldm_base.robot b/pldm/test_pldm_base.robot
index ffd1130..30ccceb 100644
--- a/pldm/test_pldm_base.robot
+++ b/pldm/test_pldm_base.robot
@@ -108,9 +108,9 @@
     Should Contain  ${pldm_output}  pldmtool: Rx:
 
 
-Verify Verbose Flag For PLDM Raw Commands
-    [Documentation]  Verify verbose flag for PLDM raw commands.
-    [Tags]  Verify_Verbose_Flag_For_PLDM_Raw_Commands
+Verify Response For PLDM Raw Commands
+    [Documentation]  Verify response for PLDM raw commands.
+    [Tags]  Verify_Response_For_PLDM_Raw_Commands
 
     # Example output format:
     # pldmtool raw -d 0x80 0x00 0x04
@@ -121,9 +121,9 @@
     Should Contain  ${pldm_output}  ${PLDM_GET_PLDM_TYPES_RAW_CMD_OUTPUT}
 
 
-Verify Verbose Flag For PLDM Raw Commands With Verbose Flag
-    [Documentation]  Verify verbose flag for PLDM raw commands with verbose flag,
-    [Tags]  Verify_Verbose_Flag_For_PLDM_Raw_Commands_With_Verbose_Flag
+Verify Verbose Flag For PLDM Raw Command
+    [Documentation]  Verify PLDM raw command with verbose flag,
+    [Tags]  Verify_Verbose_Flag_For_PLDM_Raw_Command
 
     # Example output format:
     # pldmtool raw -d 0x80 0x00 0x04 -v
@@ -134,6 +134,19 @@
     Should Contain  ${pldm_output}  ${PLDM_GET_PLDM_TYPES_RAW_CMD_OUTPUT}
 
 
+Verify Verbose Flag For Incorrect PLDM Raw Command
+    [Documentation]  Verify incorrect PLDM raw command with verbose flag,
+    [Tags]  Verify_Verbose_Flag_For_Incorrect_PLDM_Raw_Command
+
+    # Example output format:
+    # pldmtool raw -d 0x80 0x00 0x00 -v
+    # pldmtool: Tx: 80 00 04
+    # pldmtool: Rx: 00 00 00 05
+
+    ${pldm_output}=  Pldmtool  ${PLDM_RAW_CMD_INVALID} -v
+    Should Contain  ${pldm_output}  ${PLDM_RAW_CMD_INVALID_OUTPUT}
+
+
 *** keywords ***
 
 Verify GetPLDMCommands For PLDM Type