Index: tst_unhandled_message_log/test.py =================================================================== diff -u -re42cd503b84403da167a606ef0d3b8ae48093e0f -r106f98149c4637a7327c93bdcaa75f057ff4d40a --- tst_unhandled_message_log/test.py (.../test.py) (revision e42cd503b84403da167a606ef0d3b8ae48093e0f) +++ tst_unhandled_message_log/test.py (.../test.py) (revision 106f98149c4637a7327c93bdcaa75f057ff4d40a) @@ -44,8 +44,9 @@ 'MESSAGE_7' : "\n[0xAF00]\nHD_custom_data_verification_7\nU08=unsigned_int_argument\nU08=integer\n" } ERROR_MESSAGE = { - "0x1300" : "Incorrect data length (9 of 32) for received Message with ID '0x1300'", - "0x0900" : "Incorrect data length (9 of 20) for received Message with ID '0x0900'" + "0x1300" : "Incorrect data length (9 of 32) for received Message with ID '0x1300'", + "0x0900" : "Incorrect data length (9 of 20) for received Message with ID '0x0900'", + "DATA_LENGTH_MISMATCH": "Not enough data from position 4 to the length of 4 to get data of type 'N5Types3S32E' in buffer 19.00.00.00.37 for value param" } @@ -184,7 +185,7 @@ append_unhandled_configuration_file() utils.tstStart(__file__) - startApplication(config.AUT_NAME) + startApplication(config.AUT_NAME+ " -d") #checking if the message is not in the unhandled (err) test.startSection("verify the message is not in unhandled (err)") @@ -294,6 +295,11 @@ test.endSection() remove_unhandled_configuration_file() + + payload = integer_to_bytearray(DUMMY_INT_VALUE_1) + hd_simulator.cmd_send_hd_general_response(message_id = 204, accepted = 1, reason = 0, is_pure_data = True, has_parameters = True, parameters_payload = payload) + error_message = get_error_message_from_log() + test.compare(error_message, ERROR_MESSAGE["DATA_LENGTH_MISMATCH"], "error code should be verified in log file") utils.tstDone()