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

Script for reproducing issue 1409 #1981

Merged
merged 5 commits into from
Apr 20, 2021

Conversation

HSavynetska
Copy link
Contributor

@HSavynetska HSavynetska commented Jul 20, 2018

ATF Test Scripts to check #1409

This PR is ready for review.

Summary

Check the receiving of EndService messages for video and audio, RPC services during ignition off.

ATF version

develop

CLA

-- Precondition:
-- 1) SDL and HMI are started
-- 2) SPT is registered using v3 protocol and activated on HMI
-- Description:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please move Description before Precondition and fill out it.

-- Steps to reproduce:
-- 1) Start Video Service -> SDL send StartServiceACK to mobile
-- 2) Start Audio service -> SDL send StartServiceACK to mobile
-- 3) Send IGNITION_OFF from HMI: On HTML5 HMI click Exit Application and select Ignition Off from drop down
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why here we need information about HTML5 HMI?


config.defaultProtocolVersion = 3

--[[ Local Variables ]]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remover redundant block name.

end

local function ExitAllApplications(self)
StopSDL()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why SDL stops before processing all messages?

StopSDL()
self.hmiConnection:SendNotification("BasicCommunication.OnExitAllApplications", { reason = "IGNITION_OFF" })
local event = events.Event()
event.matches = function(_, data)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please perform alignment

:Times(3)
:ValidIf(function(_, data)
if data.frameInfo == 4 and data.serviceType == 11 then
self.mobileSession1:Send(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

EndServiceACK sgould be sent for all services not only for 11

:Timeout(60000)
:Times(3)
:ValidIf(function(_, data)
if data.frameInfo == 4 and data.serviceType == 11 then
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for loop for all EndServiceACK's can be updated to
if data.frameInfo == 4 and data.serviceType == 11 or data.serviceType == 10 or data.serviceType == 7 then
.....
return true
end
return false, "End Service not received"

Copy link
Contributor

@GetmanetsIrina GetmanetsIrina left a 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 folder for 6.1 release

runner.Title("Test")
runner.Step("App starts Audio streaming", appStartAudioStreaming)
runner.Step("App starts Video streaming", appStartVideoStreaming)
runner.Step("Exit application", ExitAllApplications)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better update to Ignition off

(data.frameInfo == 4) --EndService
end
self.mobileSession1:ExpectEvent(event, "EndService")
:Timeout(60000)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why this timer is 60 seconds? can it be reduced?

@@ -0,0 +1,107 @@
-- User story: https://github.com/SmartDeviceLink/sdl_core/issues/1409
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add test set in ./test_sets/Defects/6_1 folder

@GetmanetsIrina GetmanetsIrina marked this pull request as draft April 17, 2020 12:57
Copy link
Contributor

@dboltovskyi dboltovskyi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@GetmanetsIrina Please update description of PR according to template

@IGapchuk
Copy link
Contributor

The PR has been rebased on the current develop branch (ebab459).

The script has been ran on the next flows and transport types:
The result of the scrip run on the next flows:
EXTERNAL_PROPRIETARY: TCP - PASSED, WS - FAILED, WSS - FAILED. SDL & ATF logs are attached -
Defect_1409_E.tar.gz

PROPRIETARY: TCP - PASSED, WS - PASSED, WSS - PASSED
HTTP: TCP - PASSED, WS - PASSED, WSS - PASSED

@ShobhitAd ShobhitAd closed this Apr 14, 2021
@ShobhitAd ShobhitAd deleted the branch smartdevicelink:develop April 14, 2021 16:06
@GetmanetsIrina
Copy link
Contributor

PR is actual

@GetmanetsIrina GetmanetsIrina marked this pull request as ready for review April 16, 2021 11:10
@GetmanetsIrina
Copy link
Contributor

@jordynmackool, PR is ready for Livio review.
Please notice that script is related to the issue that was fixed in the 6.1 Release.

@iCollin iCollin merged commit 049556b into smartdevicelink:develop Apr 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants