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

add test for 3783 crash issue #2600

Closed
wants to merge 2 commits into from
Closed
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
39 changes: 39 additions & 0 deletions test_scripts/Defects/8_0/3783_Change_VR_During_Activation.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---------------------------------------------------------------------------------------------------
-- Issue: https://github.com/smartdevicelink/sdl_core/issues/3783
--
-- Steps:
-- 1) Register and activate 5 apps
-- 2) Change VR Language
--
-- Expected:
-- 1) Core does not crash
---------------------------------------------------------------------------------------------------
--[[ Required Shared libraries ]]
local runner = require('user_modules/script_runner')
local common = require('test_scripts/AppServices/commonAppServices')

--[[ Test Configuration ]]
runner.testSettings.isSelfIncluded = false

--[[ Local functions ]]
function changeLanguage(pLanguage)
common.getHMIConnection():SendNotification("VR.OnLanguageChange", { language = pLanguage })
end

--[[ Scenario ]]
runner.Title("Preconditions")
runner.Step("Clean environment", common.preconditions)
runner.Step("Start SDL, HMI, connect Mobile, start Session", common.start)
for i = 1, 5 do
runner.Step("RAI App", common.registerAppWOPTU, { i })
end

for j = 1, 5 do
runner.Step("Activate App", common.activateApp, { j })
end

runner.Title("Test")
runner.Step("Change VR Language", changeLanguage, { "FR-CA" })

runner.Title("Postconditions")
runner.Step("Stop SDL", common.postconditions)
1 change: 1 addition & 0 deletions test_sets/Defects/Defects_release_8_0.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,4 @@
./test_scripts/Defects/8_0/3788_2_allow_RC_permission_for_App_after_PTU_with_REMOTE_CONTROL_appHMIType.lua
./test_scripts/Defects/8_0/3788_3_revoke_RC_permission_for_App_after_PTU_with_MEDIA_appHMIType.lua
./test_scripts/Defects/8_0/3797_3798_HMI_sends_SetAppProperties_and_tries_to_ActivateApp.lua
./test_scripts/Defects/8_0/3783_Change_VR_During_Activation.lua