-
Notifications
You must be signed in to change notification settings - Fork 0
Feature/0257 vehicle data hands off steering #13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
…e_data_handsOffSteering
602b9af to
b252583
Compare
| @@ -0,0 +1,60 @@ | |||
| --------------------------------------------------------------------------------------------------- | |||
| -- Description: Check that SDL processes GetVehicleData RPC with <vd_param> parameter | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please extend the description and steps with the description of negative case(missing mandatory)
| -- Preconditions: | ||
| -- 1) SDL and HMI are started | ||
| -- 2) Vehicle Data RPCs and <vd_param> parameter are allowed by policies | ||
| -- 3) <vd_param> parameter has param_version = 5.1.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Propose to remove version numbers and have a description of case like App is registered with syncMsgVersion greater than a version of <vd_param> parameter because different parameters have different versions.
| -- 4) App is registered with syncMsgVersion = 5.1.1 | ||
| -- | ||
| -- In case: | ||
| -- 1) App send any of Vehicle Data RPC with <vd_param> parameter |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| -- 1) App send any of Vehicle Data RPC with <vd_param> parameter | |
| -- 1) App sends any of Vehicle Data RPC with <vd_param> parameter |
| -- 1) App send any of Vehicle Data RPC with <vd_param> parameter | ||
| -- - a) GetVehicleData, SubscribeVehicleData, UnsubscribeVehicleData | ||
| -- SDL does: | ||
| -- - a) processes this RPC successfully |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| -- - a) processes this RPC successfully | |
| -- - a) process this RPC successfully |
| -- 2) App is subscribed to <vd_param> parameter | ||
| -- 3) HMI sends OnVehicleData notification with <vd_param> parameter | ||
| -- SDL does: | ||
| -- - a) processes this Notification successfully |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| -- - a) processes this Notification successfully | |
| -- - a) process this Notification successfully |
| -- Preconditions: | ||
| -- 1) SDL and HMI are started | ||
| -- 2) Vehicle Data RPCs and <vd_param> parameter are allowed by policies | ||
| -- 3) <vd_param> parameter has param_version = 5.1.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://github.com/dboltovskyi/sdl_atf_test_scripts/pull/13/files#r454921572 the same comment here
| common.Title("Test") | ||
| common.Step("RPC " .. common.rpc.get, common.getVehicleData, { param }) | ||
| common.Step("RPC " .. common.rpc.sub, common.processSubscriptionRPC, { common.rpc.sub, param }) | ||
| common.Step("RPC " .. common.rpc.on, common.sendOnVehicleData, { param, 1 }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please move 1 in a local variable
| common.Title("Test") | ||
| common.Step("RPC " .. common.rpc.get, common.processRPCFailure, { common.rpc.get, param, result }) | ||
| common.Step("RPC " .. common.rpc.sub, common.processRPCFailure, { common.rpc.sub, param, result }) | ||
| common.Step("RPC " .. common.rpc.on, common.sendOnVehicleData, { param, 0 }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please perform the same update for all others scripts
| common.Step("RPC " .. common.rpc.sub, common.processSubscriptionRPC, { common.rpc.sub, param }) | ||
| common.Step("RPC " .. common.rpc.on, common.sendOnVehicleData, { param, 1 }) | ||
| common.Step("RPC " .. common.rpc.unsub, common.processSubscriptionRPC, { common.rpc.unsub, param }) | ||
| common.Step("RPC " .. common.rpc.on, common.sendOnVehicleData, { param, 0 }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe this step is redundant, because the notification is also checked in the step below
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@GetmanetsIrina There are 2 groups of parameters: subscribable (e.g. gps) and not subscribable (e.g. vin)
Each groups is checked separately since expected result is different.
In 1st group by having sendOnVehicleData, { param, 0 } step we're checking that unsubscription was done successfully.
In 2nd group by having the same step we're checking that was not subscription at all.
| @@ -0,0 +1,43 @@ | |||
| --------------------------------------------------------------------------------------------------- | |||
| -- Description: Check that SDL processes OnVehicleData notification with <vd_param> parameter | |||
| -- with only mandatory sub-parameters | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please extend the script description with a negative case
| common.Step("RPC 2 " .. common.rpc.sub .. " IGNORED", common.processRPCFailure, | ||
| { common.rpc.sub, param, result }) | ||
| end | ||
| for param in common.spairs(common.getVDParams(false)) do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add to the description these cases with INVALID_DATA or move them to another script
| common.Title("VD parameter: " .. param) | ||
| common.Step("RPC " .. common.rpc.sub, common.processSubscriptionRPC, { common.rpc.sub, param }) | ||
| end | ||
| for param in common.spairs(common.getVDParams(false)) do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please extend the description with this case, but i propose to move this case to separate scripts because this is not a success case.
| common.Step("RPC " .. common.rpc.unsub, common.processSubscriptionRPC, { common.rpc.unsub, param }) | ||
| end | ||
|
|
||
| for param in common.spairs(common.getVDParams(false)) do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| common.Step("RPC 2 " .. common.rpc.unsub .. " IGNORED", common.processRPCFailure, | ||
| { common.rpc.unsub, param, result }) | ||
| end | ||
| for param in common.spairs(common.getVDParams(false)) do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| @@ -0,0 +1,41 @@ | |||
| --------------------------------------------------------------------------------------------------- | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Script is executed successful but without steps at all, the same to 008_GetVD script
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@GetmanetsIrina I have another result. There are steps executed for parameters with version defined, e.g. cloudAppVehicleID, electronicParkBrakeStatus etc.
Have you used appropriate MOBILE/HMI APIs in ATF? For such tests it's important to have correct APIs in ATF ./data folder.
|
@GetmanetsIrina Please find updates in 852f4a2 |
852f4a2 to
74719da
Compare
Internal review only