Closed collinmcq closed 3 years ago
@iCollin Please notice WARNINGS
code is a successful one and needs to be sent from HMI with SendResponse()
function which creates successful response structure. This result code is covered in 002_successful_resumption_other_successful_result_codes script.
From other hand SendError()
creates an erroneous structure, so the whole message is treated by SDL as erroneous one, and hence SDL fails resumption.
As for https://github.com/smartdevicelink/sdl_atf_test_scripts/pull/2529 it looks like TRUNCATED_DATA
is a successful one and that's correct - it's need to be removed from the erroneous list. Though it may be need to be added to 002
script.
@dboltovskyi thank you, I have made changes to 002 script to include TRUNCATED_DATA
.
Bug Report
An HMI response with "message", regardless of result code, will be considered by the resumption controller as unsuccessful, causing resumption to fail and these responses to not be reverted.
Reproduction Steps
Expected Behavior
SUCCESS response to RAI, AddCommand resumed
Observed Behavior
RESUME_FAILED response to RAI, AddCommand that got WARNINGS was not reverted
Test Case, Sample Code, and / or Example App
ATF Test with slight modifications: