-
Notifications
You must be signed in to change notification settings - Fork 60
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
[WIP] Restructuring OnResetTimeout (Part 2) #2147
[WIP] Restructuring OnResetTimeout (Part 2) #2147
Conversation
-- User story: TBD | ||
-- Use case: TBD | ||
-- | ||
-- Requirement summary: TBD |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@HSavynetska Propose to remove all lines with TBD
.
config.application1.registerAppInterfaceParams.appHMIType = { "REMOTE_CONTROL" } | ||
config.application2.registerAppInterfaceParams.appHMIType = { "REMOTE_CONTROL" } | ||
config.application1.registerAppInterfaceParams.syncMsgVersion.majorVersion = 5 | ||
config.application2.registerAppInterfaceParams.syncMsgVersion.majorVersion = 5 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@HSavynetska Currently ATF already has majorVersion = 5
for all apps
--------------------------------------------------------------------------------------------------- | ||
--[[ General configuration parameters ]] | ||
config.defaultProtocolVersion = 2 | ||
config.ValidateSchema = false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@HSavynetska Why do we need switch off this parameter? Guess it's copy-paste from RC module. But this is not required now.
commonSteps:DeletePolicyTable() | ||
commonSteps:DeleteLogsFiles() | ||
commonPreconditions:BackupFile(preloadedPT) | ||
updatePreloadedPT() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@HSavynetska There are functions for backup and update preloaded PT file, however there is no function to restore it.
RUN_AFTER(sendOnResetTimeout, pParams.notificationTime) | ||
end | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@HSavynetska Extra new line
:ValidIf(function() | ||
local respTime = timestamp() | ||
local timeBetweenRespAndNot = respTime - c.notificationTime | ||
if timeBetweenRespAndNot >= pRespTimeExpect - 500 and timeBetweenRespAndNot <= pRespTimeExpect + 500 then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@HSavynetska For now tolerance 500
ms has to be increased due to ATF issue with timers.
I propose to create a variable for this value and used it everywhere. In the future, when ATF issue is fixed it will be easy to decrease it.
local rpcResponse = { success = false, resultCode = "GENERIC_ERROR" } | ||
|
||
--[[ Local Functions ]] | ||
local function invaliParamOnResetTimeout(pData, pParams) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@HSavynetska Typo invali
The same in script 007
and 008
-- 5) HMI does not respond | ||
-- SDL does: | ||
-- 1) Respond in 11 seconds with GENERIC_ERROR resultCode to mobile app to first request | ||
-- 2) Respond in 14 seconds with GENERIC_ERROR resultCode to mobile app to second request |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@HSavynetska Actually 1st response will be sent in 10 sec. and 2nd one - in 13 sec.
--[[ Local Functions ]] | ||
local function twoRequestsinSameTime() | ||
common.rpcs.DiagnosticMessage(12000, 11000, | ||
common.withoutResponseWithOnResetTimeout, paramsForRespFunction, common.rpcResponse) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@HSavynetska common.rpcResponse
doesn't exist.
The same in line 42
-- 5) HMI does not respond to both request | ||
-- SDL does: | ||
-- 1) Respond in 11 seconds with GENERIC_ERROR resultCode to mobile app to first request | ||
-- 2) Respond in 14 seconds with GENERIC_ERROR resultCode to mobile app to second request |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@HSavynetska Actually responses will be sent in 10 and 13 sec.
8231b08
to
63d899f
Compare
fc79304
into
smartdevicelink:feature/restructuring_OnResetTimeout
ATF Test Scripts to check #2422
This PR is not ready for review.
Summary
Script for "Restructuring OnResetTimeout"
ATF version
Develop branch
CLA