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

Feature/Extended coverage for Vehicle Data tests #2488

Merged
merged 17 commits into from
Jan 25, 2021
Merged
Show file tree
Hide file tree
Changes from 8 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
@@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,21 @@
--[[ Required Shared libraries ]]
local common = require('test_scripts/API/VehicleData/common')

--[[ Local Constants ]]
local testTypes = {
common.testType.INVALID_TYPE
}

--[[ 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, value in common.spairs(common.getVDParams()) do
common.Title("VD parameter: " .. param)
common.Step("RPC " .. common.rpc.get .. " invalid HMI response", common.processRPCgenericError,
{ common.rpc.get, param, common.getInvalidData(value) })
end
common.getTestsForGetVD(testTypes)

common.Title("Postconditions")
common.Step("Stop SDL", common.postconditions)

Loading