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 script to check #1306 issue #1931

Merged
merged 7 commits into from
Oct 27, 2020

Conversation

HSavynetska
Copy link
Contributor

@HSavynetska HSavynetska commented Jun 18, 2018

ATF Test Scripts to check #1306

This PR is [ready] for review.

Summary

Add test scripts to check the 1306 issue.

ATF version

develop

Changelog

  1. Added new script
  2. Updated test set for 7.0 issues

CLA

end)

TtsParams.appID = common.getHMIAppId()
EXPECT_HMICALL("TTS.SetGlobalProperties", TtsParams)
Copy link
Contributor

Choose a reason for hiding this comment

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

TtsParams is empty, must be params.TtsParams.

self.hmiConnection:SendResponse(data.id, data.method, "SUCCESS", {})
end)

TtsParams.appID = common.getHMIAppId()
Copy link
Contributor

Choose a reason for hiding this comment

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

see comment below

self.hmiConnection:SendResponse(data.id, data.method, "SUCCESS", {})
end)

TtsParams.appID = common.getHMIAppId()
Copy link
Contributor

Choose a reason for hiding this comment

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

TtsParams -> params.TtsParams

end

local function ResetGlobalPropertiesSUCCES(params, self)
local cid = self.mobileSession1:SendRPC("SetGlobalProperties", params.requestParams)
Copy link
Contributor

Choose a reason for hiding this comment

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

Request from mobile must be ResetGlobalProperties,
also pay attention that params for ResetGlobalProperties are not the same as for SetGlobalProperties,

local cid = self.mobileSession1:SendRPC("SetGlobalProperties", params.requestParams)

params.UiParams.appID = common.getHMIAppId()
EXPECT_HMICALL("UI.SetGlobalProperties", params.UiParams)
Copy link
Contributor

Choose a reason for hiding this comment

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

must be expected default values from .ini file

end)

TtsParams.appID = common.getHMIAppId()
EXPECT_HMICALL("TTS.SetGlobalProperties", TtsParams)
Copy link
Contributor

Choose a reason for hiding this comment

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

must be expected default values from .ini file

@GetmanetsIrina
Copy link
Contributor

Expected behavior is under clarification in smartdevicelink/sdl_requirements#98

-- 1) SDL should send to HMI UI.SetGlobalProperties("vrHelpTitle", "vrHelp") with default values.
-- 2) SDL should send to HMI TTS.SetGlobalProperties with "helpPrompt" parameter that should be reset to default value
-- (smartDeviceLink.ini file contains default values for "helpPrompt"
-- Actual result:
Copy link
Contributor

Choose a reason for hiding this comment

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

remove actual result


local requesUIparams = {
vrHelpTitle = getValueFromIniFile(pathToIniFile, "HelpTitle"),
vrHelp = {{ position = 1, text = actions.getConfigAppParams(pAppId).appName }}
Copy link
Contributor

Choose a reason for hiding this comment

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

pAppId is empty, please remove

}

--[[ Local Functions ]]
local function getValueFromIniFile(path_to_ini, parameter_name)
Copy link
Contributor

Choose a reason for hiding this comment

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

Please remove this local function, can be used commonFunctions:read_parameter_from_smart_device_link_ini function instead of local one.

helpPrompt = requestParams.helpPrompt
}

local allParams = {
Copy link
Contributor

Choose a reason for hiding this comment

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

The better usage:

local allParams = {
	requestParams = requestParams,
	UiParams = {
	        vrHelpTitle = requestParams.vrHelpTitle,
	        vrHelp = requestParams.vrHelp,
        },
	TtsParams = {
	       timeoutPrompt = requestParams.timeoutPrompt,
	       helpPrompt = requestParams.helpPrompt
        }
}

local paramTP = getValueFromIniFile(pathToIniFile, "TimeOutPromt")

local requesTTSparams = {
helpPrompt = {{ text = paramHP[1], type = "TEXT"}, {text = paramHP[2], type = "TEXT"}},
Copy link
Contributor

Choose a reason for hiding this comment

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

paramHP and paramTP can contain not 2 elements, need to get the array and set values for helpPrompt elements in loop.

@GetmanetsIrina
Copy link
Contributor

GetmanetsIrina commented May 5, 2020

Current develop(a7db5cc) branch is merged into PR.
Script is applicable for all policy flows and transport types.
Script is moved to 6_1 folder.
Test set for script is added.
Some update has been performed in script.

@GetmanetsIrina GetmanetsIrina marked this pull request as draft May 5, 2020 12:21
@dboltovskyi dboltovskyi changed the title Script for reproducing issue 1306 Add script to check #1306 issue Oct 22, 2020
@dboltovskyi dboltovskyi marked this pull request as ready for review October 22, 2020 22:00
@dboltovskyi dboltovskyi removed the request for review from aderiabin October 27, 2020 14:07
@iCollin iCollin merged commit 1117846 into smartdevicelink:develop Oct 27, 2020
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.

4 participants