Skip to content
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

[SDL 0262] Feature/New vehicle data SeatOccupancy #2490

Merged
merged 14 commits into from
Feb 2, 2021
Merged
Show file tree
Hide file tree
Changes from 11 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,14 @@ local function VehicleDataItemsWithDataTableCreation()
local myKeyParams = common.VehicleDataItemsWithData.myKey.params
myKeyParams.e911Override.value = "ON"
common.VehicleDataItemsWithData.myKey.APItype = "VEHICLEDATA_MYKEY"
local seatOccupancyParams = common.VehicleDataItemsWithData.seatOccupancy.params
seatOccupancyParams.seatsOccupied.value = {
{ seatLocation = { grid = { col = 53, row = 53, level = 53, colspan = 53, rowspan = 53, levelspan = 53 }},
conditionActive = true }}
seatOccupancyParams.seatsBelted.value = {
{ seatLocation = { grid = { col = 54, row = 54, level = 54, colspan = 54, rowspan = 54, levelspan = 54 }},
conditionActive = false }}
common.VehicleDataItemsWithData.seatOccupancy.APItype = "VEHICLEDATA_SEATOCCUPANCY"
else
utils.cprint(31, "VehicleDataItemsWithData are missed in preloaded file")
end
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---------------------------------------------------------------------------------------------------
-- Description: Check that SDL processes GetVehicleData RPC with <vd_param> parameter
-- Positive cases for all VD parameters and sub-parameters
--
-- Preconditions:
-- 1) SDL and HMI are started
Expand All @@ -18,17 +19,21 @@
--[[ Required Shared libraries ]]
local common = require('test_scripts/API/VehicleData/common')

--[[ Local Constants ]]
local testTypes = {
common.testType.VALID_RANDOM_ALL,
common.testType.VALID_RANDOM_SUB
}

--[[ Scenario ]]
common.Title("Preconditions")
common.Step("Clean environment and update preloaded_pt file", common.preconditions)
common.Step("Start SDL, HMI, connect Mobile, start Session", common.start)
common.Step("Register App", common.registerApp)
common.Step("Activate App", common.activateApp)

common.Title("Test")
for param in common.spairs(common.getVDParams()) do
common.Title("VD parameter: " .. param)
common.Step("RPC " .. common.rpc.get, common.getVehicleData, { param })
end
common.getTestsForGetVD(testTypes)

common.Title("Postconditions")
common.Step("Stop SDL", common.postconditions)
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ local function getVDGroup(pDisallowedParam)
for param in pairs(common.getVDParams()) do
if param ~= pDisallowedParam then table.insert(params, param) end
end
if #params == 0 then params = common.json.EMPTY_ARRAY end
return {
rpcs = {
[common.rpc.get] = {
Expand Down
Loading