-
Notifications
You must be signed in to change notification settings - Fork 1
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
Feature/New vehicle data hands off steering #6
Feature/New vehicle data hands off steering #6
Conversation
test_scripts/API/VehicleData/HandsOffSteering/001_GetVD_Success_flow.lua
Outdated
Show resolved
Hide resolved
test_scripts/API/VehicleData/HandsOffSteering/001_GetVD_Success_flow.lua
Outdated
Show resolved
Hide resolved
test_scripts/API/VehicleData/HandsOffSteering/001_GetVD_Success_flow.lua
Outdated
Show resolved
Hide resolved
test_scripts/API/VehicleData/HandsOffSteering/001_GetVD_Success_flow.lua
Outdated
Show resolved
Hide resolved
test_scripts/API/VehicleData/HandsOffSteering/020_UnsubscribeVD_HMI_does_not_respond.lua
Outdated
Show resolved
Hide resolved
test_scripts/API/VehicleData/HandsOffSteering/024_OnVD_notification_disallowed.lua
Outdated
Show resolved
Hide resolved
...icleData/HandsOffSteering/027_GetVD_SubscribeVD_UnsubscribeVD_OnVD_with_syncMV_large_6_2.lua
Outdated
Show resolved
Hide resolved
...icleData/HandsOffSteering/027_GetVD_SubscribeVD_UnsubscribeVD_OnVD_with_syncMV_large_6_2.lua
Outdated
Show resolved
Hide resolved
test_scripts/API/VehicleData/HandsOffSteering/029_SubscribeVD_for_two_Apps.lua
Outdated
Show resolved
Hide resolved
Please pay attention to comments that are written in some one place but applicable for a lot of another scripts |
test_scripts/API/VehicleData/HandsOffSteering/001_GetVD_Success_flow.lua
Outdated
Show resolved
Hide resolved
test_scripts/API/VehicleData/HandsOffSteering/001_GetVD_Success_flow.lua
Outdated
Show resolved
Hide resolved
test_scripts/API/VehicleData/HandsOffSteering/012_SubscribeVD_App_sends_invalid_request.lua.lua
Outdated
Show resolved
Hide resolved
test_scripts/API/VehicleData/HandsOffSteering/002_GetVD_disallowed.lua
Outdated
Show resolved
Hide resolved
test_scripts/API/VehicleData/HandsOffSteering/002_GetVD_disallowed.lua
Outdated
Show resolved
Hide resolved
@@ -0,0 +1,93 @@ | |||
--------------------------------------------------------------------------------------------------- |
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 script to separate branch with general scripts
@@ -0,0 +1,50 @@ | |||
--------------------------------------------------------------------------------------------------- |
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.
Pleas move this checks in 031 ans 029 scripts
--------------------------------------------------------------------------------------------------- | ||
-- Proposal:https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0257-New-vehicle-data-HandsOffSteering.md | ||
-- | ||
-- Description: Check that SDL restored SubscribeVehicleData on 'handsOffSteering' parameter after IGN_OFF/IGN_ON cycle |
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.
-- Description: Check that SDL restored SubscribeVehicleData on 'handsOffSteering' parameter after IGN_OFF/IGN_ON cycle | |
-- Description: Check that SDL restores SubscribeVehicleData on 'handsOffSteering' parameter after IGN_OFF/IGN_ON cycle |
-- 1) Update preloaded_pt file, add handsOffSteering parameter to VD_RPC group | ||
-- 2) RPC SubscribeVehicleData and handsOffSteering is allowed by policies | ||
-- 3) App_1 and App_2 are registered and subscribed on handsOffSteering VD | ||
-- 4) IGN_OFF/IGN_ON cycle is performed |
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.
-- 4) IGN_OFF/IGN_ON cycle is performed | |
-- 4) IGN_OFF/IGN_ON is performed |
local appId_2 = 2 | ||
local isExpectedSubscribeVDonHMI = true | ||
local notExpectedSubscribeVDonHMI = false | ||
local isHMISubscription = true |
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 use isExpectedSubscribeVDonHMI and notExpectedSubscribeVDonHMI insted of isHMISubscription and notHMISubscription
--! @parameters: none | ||
--! @return: none | ||
--]] | ||
function m.ignitionOff() |
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 is still some instability in IgnitionOff sequence. Please use implementation from https://github.com/smartdevicelink/sdl_atf_test_scripts/blob/13becb88a4be193158eb2d349a79666041415e03/test_scripts/Smoke/commonSmoke.lua#L260
This is most stable one and going to be provided to PMs for review and merge in develop.
@@ -0,0 +1,288 @@ | |||
--------------------------------------------------------------------------------------------------- |
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 Common module looks good. Though why don't we use the same module for WindowStatus
with modifications for handsOffSteering
?
--! pGroup: table with additional updates (optional) | ||
--! @return: none | ||
--]] | ||
function m.updatedPreloadedPTFile(pGroup) |
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 would propose to rename this function to updatePreloadedPTFile
./test_scripts/API/VehicleData/HandsOffSteering/001_GetVD_Success_flow.lua | ||
./test_scripts/API/VehicleData/HandsOffSteering/002_GetVD_disallowed.lua | ||
./test_scripts/API/VehicleData/HandsOffSteering/003_GetVD_disallowed_after_PTU.lua | ||
./test_scripts/API/VehicleData/HandsOffSteering/004_GetVD_HMI_does_not_respond.lua |
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 Set needs to be updated since it includes non existing scripts (e.g. 004 - 008)
@@ -0,0 +1,71 @@ | |||
--------------------------------------------------------------------------------------------------- |
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 Please notice this script fails on https://github.ford.com/SmartDeviceLinkMirror/sdl_core/tree/feature/new_vehicle_data_hands_off_steering (9e169b289b) on all policy modes (P,E,H) and connection types (OFF, TCP, WS, WSS)
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.
The script is failed because of smartdevicelink/sdl_core#3365
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 Pointed defect relates to processing of OnVehicleData
notification, as I can see mentioned notification is not processed in current script. How pointed issue affects current script?
26d939c
to
a5e3f36
Compare
test_scripts/API/VehicleData/HandsOffSteering/001_GetVD_Success_flow.lua
Outdated
Show resolved
Hide resolved
test_scripts/API/VehicleData/HandsOffSteering/001_GetVD_Success_flow.lua
Show resolved
Hide resolved
|
||
--[[ Scenario ]] | ||
common.Title("Preconditions") | ||
common.Step("Clean environment and update preloaded_pt file", common.preconditions) |
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.
@TMyza No parameters are passed to function common.preconditions()
here, so by default all 4 vehicle data related RPCs is allowed for new parameter. This can shadow potential defects in policy handling (example: policy for OnVehicleData has influence on GetVehicleData RPC, e.t.c)
I would propose to set next policy permissions: GetVehicleData - allowed, other disallowed.
Similar comment is applicable to other scripts with positive test cases for other RPCs.
...dsOffSteering_parameter_processing_in_case_app_version_is_greater_than_parameter_version.lua
Outdated
Show resolved
Hide resolved
...handsOffSteering_parameter_processing_in_case_app_version_is_less_than_parameter_version.lua
Outdated
Show resolved
Hide resolved
...dsOffSteering_parameter_processing_in_case_app_version_is_greater_than_parameter_version.lua
Outdated
Show resolved
Hide resolved
...handsOffSteering_parameter_processing_in_case_app_version_is_less_than_parameter_version.lua
Show resolved
Hide resolved
a5e3f36
to
3ef6670
Compare
d4a6d31
into
LuxoftSDL:feature/0257_vehicle_data_handsOffSteering
ATF Test Scripts to check #3126
This PR is [ready] for review.
Summary
Scripts for "New vehicle data hands off steering" feature
ATF version
develop
CLA