[Internal review] Scripts for 3309 issue#190
Conversation
| runner.Step("Clean environment", common.preconditions) | ||
| runner.Step("Start SDL, HMI, connect Mobile, start Session", common.start) | ||
| runner.Step("Register App", common.registerApp) | ||
| runner.Step("PTU", common.policyTableUpdate, { common.pTUpdateFunc }) |
There was a problem hiding this comment.
I propose to remove the redundant step common.policyTableUpdate, common.pTUpdateFunc = nil
Seems policy is updated in preconditions
| --------------------------------------------------------------------------------------------------- | ||
| --Issue: https://github.com/smartdevicelink/sdl_core/issues/3309 | ||
| --------------------------------------------------------------------------------------------------- | ||
| -- Description: SDL resends the parameter from HMI to mobile app in case app version is greather then parameter version, |
There was a problem hiding this comment.
| -- Description: SDL resends the parameter from HMI to mobile app in case app version is greather then parameter version, | |
| -- Description: SDL resends the parameter from HMI to mobile app in case app version is greater then parameter version, |
| for subKey, subValue in pairs (value.params) do | ||
| if subValue.name == "shifted" then | ||
| -- shifted has since="6.0" in API | ||
| pTbl.policy_table.vehicle_data.schema_items[key].params[subKey].since = "7.0.0" |
There was a problem hiding this comment.
Should we use since = "7.0" instead of 7.0.0 according to common style in preloaded.pt
| elseif key == #value.params then | ||
| common.cprint(35, "'shifted' was not found in preloaded file") | ||
| end | ||
| end | ||
| elseif key == #pTbl.policy_table.vehicle_data.schema_items then | ||
| common.cprint(35, parameter .. " was not found in preloaded file") | ||
| end |
There was a problem hiding this comment.
Seems it not working in case the parameter is absent in sdl_preloaded_pt.json
I propose to add a parameter in case not found
| mandatory = false, | ||
| minvalue = 0, | ||
| maxvalue = 100, | ||
| since = "5.0.0" |
There was a problem hiding this comment.
| since = "5.0.0" | |
| since = "5.0" |
| --------------------------------------------------------------------------------------------------- | ||
| --Issue: https://github.com/smartdevicelink/sdl_core/issues/3309 | ||
| --------------------------------------------------------------------------------------------------- | ||
| -- Description: SDL resends the parameter from HMI to mobile app in case app version is less then parameter version, |
There was a problem hiding this comment.
Please update the description according to the step
| end | ||
| return true | ||
| end) | ||
| m.getMobileSession():ExpectResponse(cid, { success = true, resultCode = "SUCCESS", unpack(vehicleDataRes) }) |
There was a problem hiding this comment.
Seems 'unpack' function is wrong for vehicleDataRes and return ""
test_sets/Defects/1921.txt
Outdated
| ./test_scripts/Defects/4_5/1921_Invalid_PT_after_cutting_unknow_values.lua | ||
| ./test_scripts/Defects/4_5/1921_Invalid_PT_after_cutting_unknow_values.lua | ||
| ./test_scripts/Defects/4_5/1921_Invalid_PT_after_cutting_unknow_values.lua | ||
| ./test_scripts/Defects/4_5/1921_Invalid_PT_after_cutting_unknow_values.lua |
| --------------------------------------------------------------------------------------------------- | ||
| --Issue: https://github.com/smartdevicelink/sdl_core/issues/3309 | ||
| --------------------------------------------------------------------------------------------------- | ||
| -- Description: SDL cuts off parameter from HMI response,notification if app has less version then parameter version |
There was a problem hiding this comment.
| -- Description: SDL cuts off parameter from HMI response,notification if app has less version then parameter version | |
| -- Description: SDL cuts off parameter from HMI response/notification if app has less version then parameter version |
|
@VjKlepikov, please find updates in 57ddca8 |
ATF Test Scripts to check #FORDTCN-12021
This PR is ready for internal review.
Summary
Scripts to check cutting off parameters from HMI response/notification if app has less version then parameter version
ATF version
develop
Changelog
CLA