Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---------------------------------------------------------------------------------------------------
-- Issue: https://github.com/smartdevicelink/sdl_core/issues/3856
---------------------------------------------------------------------------------------------------
-- Description: SDL resumes AddSubMenu with all parameters after unexpected disconnect
--
-- Steps:
-- 1. HMI and SDL are started
-- 2. Mobile app is registered and activated
-- 3. Mobile requests AddSubMenu RPC with all parameters
-- 4. Unexpected disconnect is performed
-- 5. Mobile app is registered with actual hashId
-- SDL does:
-- - request UI.AddSubMenu with all parameters during data resumption
---------------------------------------------------------------------------------------------------
--[[ Required Shared libraries ]]
local common = require('test_scripts/Defects/8_2/3856/3856_common')

--[[ Scenario ]]
common.Title("Preconditions")
common.Step("Clean environment", common.preconditions)
common.Step("Start SDL, HMI, connect Mobile, start Session", common.start)
common.Step("RAI", common.registerApp)
common.Step("Send window capabilities", common.sendWindowCapabilities)
common.Step("Activate App", common.activateApp)
common.Step("PutFile", common.putFile)
common.Step("AddSubMenu 1", common.addSubMenu, { common.reqAddSubMenuParams1 })
common.Step("AddSubMenu 2", common.addSubMenu, { common.reqAddSubMenuParams2 })

common.Title("Test")
common.Step("Unexpected disconnect", common.unexpectedDisconnect)
common.Step("Connect mobile", common.connectMobile)
common.Step("RAI with resumption", common.registerAppResumption,
{ common.expectTwoSubMenus, common.reqAddSubMenuParams2 })

common.Title("Postconditions")
common.Step("Stop SDL", common.postconditions)
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---------------------------------------------------------------------------------------------------
-- Issue: https://github.com/smartdevicelink/sdl_core/issues/3856
---------------------------------------------------------------------------------------------------
-- Description: SDL resumes AddSubMenu with all parameters after ignition off
--
-- Steps:
-- 1. HMI and SDL are started
-- 2. Mobile app is registered and activated
-- 3. Mobile requests AddSubMenu RPC with all parameters
-- 4. Ignition OFF and ON are performed
-- 5. Mobile app is registered with actual hashId
-- SDL does:
-- - request UI.AddSubMenu with all parameters during data resumption
---------------------------------------------------------------------------------------------------
--[[ Required Shared libraries ]]
local common = require('test_scripts/Defects/8_2/3856/3856_common')

--[[ Scenario ]]
common.Title("Preconditions")
common.Step("Clean environment", common.preconditions)
common.Step("Start SDL, HMI, connect Mobile, start Session", common.start)
common.Step("RAI", common.registerApp)
common.Step("Send window capabilities", common.sendWindowCapabilities)
common.Step("Activate App", common.activateApp)
common.Step("PutFile", common.putFile)
common.Step("AddSubMenu 1", common.addSubMenu, { common.reqAddSubMenuParams1 })
common.Step("AddSubMenu 2", common.addSubMenu, { common.reqAddSubMenuParams2 })

common.Title("Test")
common.Step("Ignition off", common.ignitionOff)
common.Step("Start SDL, HMI, connect Mobile, start Session", common.start)
common.Step("RAI with resumption", common.registerAppResumption,
{ common.expectTwoSubMenus, common.reqAddSubMenuParams2 })

common.Title("Postconditions")
common.Step("Stop SDL", common.postconditions)
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---------------------------------------------------------------------------------------------------
-- Issue: https://github.com/smartdevicelink/sdl_core/issues/3856
---------------------------------------------------------------------------------------------------
-- Description: SDL resumes AddCommand with all parameters after unexpected disconnect
--
-- Steps:
-- 1. HMI and SDL are started
-- 2. Mobile app is registered and activated
-- 3. Mobile requests AddCommand RPC with all parameters
-- 4. Unexpected disconnect is performed
-- 5. Mobile app is registered with actual hashId
-- SDL does:
-- - request UI.AddCommand and VR.AddCommand with all parameters during data resumption
---------------------------------------------------------------------------------------------------
--[[ Required Shared libraries ]]
local common = require('test_scripts/Defects/8_2/3856/3856_common')

--[[ Scenario ]]
common.Title("Preconditions")
common.Step("Clean environment", common.preconditions)
common.Step("Start SDL, HMI, connect Mobile, start Session", common.start)
common.Step("RAI", common.registerApp)
common.Step("Send window capabilities", common.sendWindowCapabilities)
common.Step("Activate App", common.activateApp)
common.Step("PutFile", common.putFile)
common.Step("AddSubMenu", common.addSubMenu, { common.reqAddSubMenuParams1 })
common.Step("AddCommand", common.addCommand, { common.reqAddCommandParams })

common.Title("Test")
common.Step("Unexpected disconnect", common.unexpectedDisconnect)
common.Step("Connect mobile", common.connectMobile)
common.Step("RAI with resumption", common.registerAppResumption,
{ common.expectSubMenuCommand, common.reqAddCommandParams })

common.Title("Postconditions")
common.Step("Stop SDL", common.postconditions)
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---------------------------------------------------------------------------------------------------
-- Issue: https://github.com/smartdevicelink/sdl_core/issues/3856
---------------------------------------------------------------------------------------------------
-- Description: SDL resumes AddCommand with all parameters after ignition off
--
-- Steps:
-- 1. HMI and SDL are started
-- 2. Mobile app is registered and activated
-- 3. Mobile requests AddCommand RPC with all parameters
-- 4. Ignition OFF and ON are performed
-- 5. Mobile app is registered with actual hashId
-- SDL does:
-- - request UI.AddCommand and VR.AddCommand with all parameters during data resumption
---------------------------------------------------------------------------------------------------
--[[ Required Shared libraries ]]
local common = require('test_scripts/Defects/8_2/3856/3856_common')

--[[ Scenario ]]
common.Title("Preconditions")
common.Step("Clean environment", common.preconditions)
common.Step("Start SDL, HMI, connect Mobile, start Session", common.start)
common.Step("RAI", common.registerApp)
common.Step("Send window capabilities", common.sendWindowCapabilities)
common.Step("Activate App", common.activateApp)
common.Step("PutFile", common.putFile)
common.Step("AddSubMenu", common.addSubMenu, { common.reqAddSubMenuParams1 })
common.Step("AddCommand", common.addCommand, { common.reqAddCommandParams })

common.Title("Test")
common.Step("Ignition off", common.ignitionOff)
common.Step("Start SDL, HMI, connect Mobile, start Session", common.start)
common.Step("RAI with resumption", common.registerAppResumption,
{ common.expectSubMenuCommand, common.reqAddCommandParams })

common.Title("Postconditions")
common.Step("Stop SDL", common.postconditions)
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---------------------------------------------------------------------------------------------------
-- Issue: https://github.com/smartdevicelink/sdl_core/issues/3856
---------------------------------------------------------------------------------------------------
-- Description: SDL resumes AddSubMenu with mandatory and one optional parameters after unexpected disconnect
--
-- Steps:
-- 1. HMI and SDL are started
-- 2. Mobile app is registered and activated
-- 3. Mobile requests AddSubMenu RPC with mandatory and one optional parameters
-- 4. Unexpected disconnect is performed
-- 5. Mobile app is registered with actual hashId
-- SDL does:
-- - request UI.AddSubMenu with mandatory and one optional parameters during data resumption
---------------------------------------------------------------------------------------------------
--[[ Required Shared libraries ]]
local common = require('test_scripts/Defects/8_2/3856/3856_common')

--[[ Scenario ]]
for param, value in common.spairs(common.reqAddSubMenuParams2) do
if param ~= "menuID" and param ~= "menuName" then
common.Title("AddSubMenu with mandatory params and '" .. param .. "' parameter")
local reqParams = common.getSubMenuReqParams(param, value)
common.Title("Preconditions")
common.Step("Clean environment", common.preconditions)
common.Step("Start SDL, HMI, connect Mobile, start Session", common.start)
common.Step("RAI", common.registerApp)
common.Step("Send window capabilities", common.sendWindowCapabilities)
common.Step("PutFile", common.putFile)
common.Step("Activate App", common.activateApp)
common.Step("AddSubMenu 1", common.addSubMenu, { common.reqAddSubMenuParams1 })
common.Step("AddSubMenu 2", common.addSubMenu, { reqParams })

common.Title("Test")
common.Step("Unexpected disconnect", common.unexpectedDisconnect)
common.Step("Connect mobile", common.connectMobile)
common.Step("RAI with resumption", common.registerAppResumption,
{ common.expectTwoSubMenus, reqParams })

common.Title("Postconditions")
common.Step("Stop SDL", common.postconditions)
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---------------------------------------------------------------------------------------------------
-- Issue: https://github.com/smartdevicelink/sdl_core/issues/3856
---------------------------------------------------------------------------------------------------
-- Description: SDL resumes AddSubMenu with mandatory and one optional parameters after ignition off
--
-- Steps:
-- 1. HMI and SDL are started
-- 2. Mobile app is registered and activated
-- 3. Mobile requests AddSubMenu RPC with mandatory and one optional parameters
-- 4. Ignition OFF and ON are performed
-- 5. Mobile app is registered with actual hashId
-- SDL does:
-- - request UI.AddSubMenu with mandatory and one optional parameters during data resumption
---------------------------------------------------------------------------------------------------
--[[ Required Shared libraries ]]
local common = require('test_scripts/Defects/8_2/3856/3856_common')

--[[ Scenario ]]
for param, value in common.spairs(common.reqAddSubMenuParams2) do
if param ~= "menuID" and param ~= "menuName" then
common.Title("AddSubMenu with mandatory params and '" .. param .. "' parameter")
local reqParams = common.getSubMenuReqParams(param, value)
common.Title("Preconditions")
common.Step("Clean environment", common.preconditions)
common.Step("Start SDL, HMI, connect Mobile, start Session", common.start)
common.Step("RAI", common.registerApp)
common.Step("Send window capabilities", common.sendWindowCapabilities)
common.Step("PutFile", common.putFile)
common.Step("Activate App", common.activateApp)
common.Step("AddSubMenu 1", common.addSubMenu, { common.reqAddSubMenuParams1 })
common.Step("AddSubMenu 2", common.addSubMenu, { reqParams })

common.Title("Test")
common.Step("Ignition off", common.ignitionOff)
common.Step("Start SDL, HMI, connect Mobile, start Session", common.start)
common.Step("RAI with resumption", common.registerAppResumption,
{ common.expectTwoSubMenus, reqParams })

common.Title("Postconditions")
common.Step("Stop SDL", common.postconditions)
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---------------------------------------------------------------------------------------------------
-- Issue: https://github.com/smartdevicelink/sdl_core/issues/3856
---------------------------------------------------------------------------------------------------
-- Description: SDL resumes AddCommand with mandatory and one optional parameters after unexpected disconnect
--
-- Steps:
-- 1. HMI and SDL are started
-- 2. Mobile app is registered and activated
-- 3. Mobile requests AddCommand RPC with mandatory and one optional parameters
-- 4. Unexpected disconnect is performed
-- 5. Mobile app is registered with actual hashId
-- SDL does:
-- - request UI.AddCommand [and VR.AddCommand] with mandatory and one optional parameters during data resumption
---------------------------------------------------------------------------------------------------
--[[ Required Shared libraries ]]
local common = require('test_scripts/Defects/8_2/3856/3856_common')

-- [[ Scenario ]]
for _, p in common.spairs(common.getCommandParamList(common.reqAddCommandParams)) do
common.Title("AddCommand with mandatory params and '" .. p .. "' parameter")
local requestParams = common.getCommandReqParams(p)
common.Title("Preconditions")
common.Step("Clean environment", common.preconditions)
common.Step("Start SDL, HMI, connect Mobile, start Session", common.start)
common.Step("RAI", common.registerApp)
common.Step("Send window capabilities", common.sendWindowCapabilities)
common.Step("PutFile", common.putFile)
common.Step("Activate App", common.activateApp)
common.Step("AddSubMenu", common.addSubMenu, { common.reqAddSubMenuParams1 })
common.Step("AddCommand", common.addCommand, { requestParams })

common.Title("Test")
common.Step("Unexpected disconnect", common.unexpectedDisconnect)
common.Step("Connect mobile", common.connectMobile)
common.Step("RAI with resumption", common.registerAppResumption,
{ common.expectSubMenuCommand, requestParams })

common.Title("Postconditions")
common.Step("Stop SDL", common.postconditions)
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---------------------------------------------------------------------------------------------------
-- Issue: https://github.com/smartdevicelink/sdl_core/issues/3856
---------------------------------------------------------------------------------------------------
-- Description: SDL resumes AddCommand with mandatory and one optional parameters after ignition off
--
-- Steps:
-- 1. HMI and SDL are started
-- 2. Mobile app is registered and activated
-- 3. Mobile requests AddCommand RPC with mandatory and one optional parameters
-- 4. Ignition OFF and ON are performed
-- 5. Mobile app is registered with actual hashId
-- SDL does:
-- - request UI.AddCommand [and VR.AddCommand] with mandatory and one optional parameters during data resumption
---------------------------------------------------------------------------------------------------
--[[ Required Shared libraries ]]
local common = require('test_scripts/Defects/8_2/3856/3856_common')

-- [[ Scenario ]]
for _, p in common.spairs(common.getCommandParamList(common.reqAddCommandParams)) do
common.Title("AddCommand with mandatory params and '" .. p .. "' parameter")
local requestParams = common.getCommandReqParams(p)
common.Title("Preconditions")
common.Step("Clean environment", common.preconditions)
common.Step("Start SDL, HMI, connect Mobile, start Session", common.start)
common.Step("RAI", common.registerApp)
common.Step("Send window capabilities", common.sendWindowCapabilities)
common.Step("PutFile", common.putFile)
common.Step("Activate App", common.activateApp)
common.Step("AddSubMenu", common.addSubMenu, { common.reqAddSubMenuParams1 })
common.Step("AddCommand", common.addCommand, { requestParams })

common.Title("Test")
common.Step("Ignition off", common.ignitionOff)
common.Step("Start SDL, HMI, connect Mobile, start Session", common.start)
common.Step("RAI with resumption", common.registerAppResumption,
{ common.expectSubMenuCommand, requestParams })

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