Skip to content

Conversation

@dboltovskyi
Copy link
Owner

Internal review only

@dboltovskyi dboltovskyi force-pushed the feature/0257_vehicle_data_handsOffSteering branch 2 times, most recently from 602b9af to b252583 Compare July 15, 2020 02:25
@@ -0,0 +1,60 @@
---------------------------------------------------------------------------------------------------
-- Description: Check that SDL processes GetVehicleData RPC with <vd_param> parameter
Copy link
Collaborator

@GetmanetsIrina GetmanetsIrina Jul 15, 2020

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
Copy link
Collaborator

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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
-- 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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
-- - 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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
-- - 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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 })
Copy link
Collaborator

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 })
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator

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 })
Copy link
Collaborator

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

Copy link
Owner Author

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
Copy link
Collaborator

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
Copy link
Collaborator

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
Copy link
Collaborator

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
Copy link
Collaborator

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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -0,0 +1,41 @@
---------------------------------------------------------------------------------------------------
Copy link
Collaborator

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

Copy link
Owner Author

@dboltovskyi dboltovskyi Jul 15, 2020

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.

@dboltovskyi
Copy link
Owner Author

@GetmanetsIrina Please find updates in 852f4a2

@dboltovskyi dboltovskyi force-pushed the feature/0257_vehicle_data_handsOffSteering branch from 852f4a2 to 74719da Compare July 16, 2020 01:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants