Conversation
6082697 to
437ff56
Compare
437ff56 to
a1e8c20
Compare
| -- Use case:TBD | ||
| -- | ||
| -- Requirement summary: | ||
| -- TBD |
There was a problem hiding this comment.
add new line, also in scripts below
| -- In case: | ||
| -- 1) SDL, HMI are started. | ||
| -- 2) Mobile app registers first time. | ||
| -- SDL does: Successfully registers application and responds with result code "SUCCESS" and "iconResumed" = false" to mobile application. |
There was a problem hiding this comment.
Add new line after "SDL does:"
| --------------------------------------------------------------------------------------------------- | ||
| --[[ Required Shared libraries ]] | ||
| local runner = require('user_modules/script_runner') | ||
| local common = require('test_scripts/API/SetAppIcon/comSetApp') |
There was a problem hiding this comment.
please rename common From comSetApp to 'commonIconResumed'
| runner.Step("Start SDL, HMI, connect Mobile, start Session", common.start) | ||
|
|
||
| runner.Title("Test") | ||
| runner.Step("App registration with iconresumed = false", common.registerApp, { 1, false }) |
There was a problem hiding this comment.
iconresumed -> iconResumed
| -- In case: | ||
| -- 1) SDL, HMI are started. | ||
| -- 2) Mobile application is registered and sets custom icon via sending PutFile and valid SetAppIcon request. | ||
| -- 3) 3) Mobile app is re-registered. |
| runner.Step("SetAppIcon", common.setAppIcon, { allParams } ) | ||
| runner.Step("Gets_INVALID_DATA", setAppIcon_INVALID_DATA, { false, 1 } ) | ||
| runner.Step("App unregistration", common.unregisterAppInterface, { 1 }) | ||
| runner.Step("App registration with iconresumed = false", common.registerApp, { 1, false, false }) |
There was a problem hiding this comment.
update 'false, false' to 'false'
| @@ -0,0 +1,67 @@ | |||
| --------------------------------------------------------------------------------------------------- | |||
| -- Proposal: https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0041-appicon-resumption.md | |||
There was a problem hiding this comment.
Is script duplicated with script above?
| end | ||
|
|
||
| local function updatePTU(tbl) | ||
| tbl.policy_table.app_policies[config.application.registerAppInterfaceParams.appID]. ImageFieldName = { "appIcon" } |
There was a problem hiding this comment.
function is not complete and is not valid. Please update function to valid and correct. Update must remove permissions from SetAppIcon RPC .
| @@ -0,0 +1,68 @@ | |||
| --------------------------------------------------------------------------------------------------- | |||
| -- Proposal: https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0041-appicon-resumption.md | |||
| runner.testSettings.isSelfIncluded = false | ||
|
|
||
| --[[ Test Configuration ]] | ||
| runner.testSettings.isSelfIncluded = false |
| @@ -0,0 +1,110 @@ | |||
| --------------------------------------------------------------------------------------------------- | |||
There was a problem hiding this comment.
@HSavynetska Why do we need 3 common modules? Or these are duplicates and need to be removed?
| local mobSession = common.getMobileSession(pAppId) | ||
| local cid = mobSession:SendRPC("SetAppIcon", params.requestParams) | ||
| params.requestUiParams.appID = common.getHMIAppId() | ||
| EXPECT_HMICALL("UI.SetAppIcon", params.requestUiParams) |
There was a problem hiding this comment.
Here you expect tat message UI.SetAppIcon will be not received and create Do step for receiving. So ,what step is redundant?
| runner.Title("Test") | ||
| runner.Step("App registration with iconresumed = true", common.registerApp, { 1, true }) | ||
| runner.Step("Upload icon file", common.putFile) | ||
| runner.Step("SetAppIcon", common.setAppIcon, { allParams } ) |
There was a problem hiding this comment.
remove success SetAppIcon
| --[[ @registerApp: register mobile application | ||
| --! @parameters: | ||
| --! pAppId - application number (1, 2, etc.) | ||
| --! pIconResumed - Existence of apps icon at system |
There was a problem hiding this comment.
not existence, value for iconResumed parameter
| --! @parameters: | ||
| --! pAppId - application number (1, 2, etc.) | ||
| --! pIconResumed - Existence of apps icon at system | ||
| --! @return: none |
There was a problem hiding this comment.
What about 3rd parameter?
| end | ||
| end | ||
|
|
||
| function m.registerApp1(pAppId, pIconResumed, pReconnection) |
There was a problem hiding this comment.
Function duplicates registerApp
| end | ||
|
|
||
| --Description: setAppIcon successfully | ||
| --paramsSend: Parameters will be sent to SDL |
There was a problem hiding this comment.
parameter has different name, please update.
| mobSession:ExpectResponse(cid, { success = true, resultCode = "SUCCESS" }) | ||
| end | ||
|
|
||
| function m.connectMobile() |
There was a problem hiding this comment.
remove useless function.
| function m.connectMobile() | ||
| test:connectMobile() | ||
| end | ||
|
|
There was a problem hiding this comment.
add description for function as above
| { syncFileName = pIcon }) | ||
| EXPECT_HMINOTIFICATION("BasicCommunication.OnFileRemoved", | ||
| { | ||
| fileName = pIcon, |
There was a problem hiding this comment.
please update alignment
| { | ||
| fileName = pIcon, | ||
| fileType = "GRAPHIC_PNG", | ||
| appID = 1 }) |
There was a problem hiding this comment.
Do not understand - what is value for appID?
| -- SDL does: | ||
| -- 1) Successfully registers application. | ||
| -- SDL does: | ||
| -- 1) Successfully register application. |
There was a problem hiding this comment.
comment is also related to item 2,3,4
| params.requestUiParams.appID = common.getHMIAppId() | ||
|
|
||
| local cid = mobSession:SendRPC("SetAppIcon", params) | ||
| EXPECT_HMICALL("UI.SetAppIcon", params.requestUiParams) |
There was a problem hiding this comment.
Times(0) is required here
| -- 3) Mobile app is re-registered. | ||
| -- SDL does: | ||
| -- 1) Successfully register application. | ||
| -- 2) Successful processes PutFile and SetAppIcon requests. |
There was a problem hiding this comment.
- Successful process PutFile and SetAppIcon requests.
- Respond with result code "SUCCESS" and "iconResumed" = true for RAI request.
- Send to HMI OnAppRegistered notification "icon" and notify that apps icon exists.
| -- 3) Mobile application is unregistered. | ||
| -- 4) Mobile app is re-registered. | ||
| -- SDL does: | ||
| -- 1) SDL respon with result code "SUCCESS" and "iconResumed" = true for RAI request. |
There was a problem hiding this comment.
Respond with result code "SUCCESS" and "iconResumed" = true for RAI request.
| runner.Step("Start SDL, HMI, connect Mobile, start Session", common.start) | ||
|
|
||
| runner.Title("Test") | ||
| runner.Step("App registration with iconResumed = true", common.registerAppWOPTU, { 1, false }) |
There was a problem hiding this comment.
App registration with iconResumed = false
| -- 3) HMI is not respond to SetAppIcon request. Mobile App received response SetAppIcon(GENERIC_ERROR). | ||
| -- 4) App is re-registered. | ||
| -- SDL does: | ||
| -- 1) Registers an app successfully, responds to RAI with result code "SUCCESS", "iconResumed" = false. |
| -- 3) Mobile App received response SetAppIcon(INVALID_DATA). Custom Icon is not set. | ||
| -- 4) App is re-registered. | ||
| -- SDL does: | ||
| -- 1) Successfully registers application. |
| -- 4) Mobile app received response SetAppIcon(DISALLOWED) | ||
| -- 5) Mobile app is re-registered. | ||
| -- SDL does: | ||
| -- 1) Registers an app successfully, responds to RAI with result code "SUCCESS", "iconResumed" = false. |
| -- 3) HMI responds with REJECTED resultCode to SetAppIcon request. Mobile App received response SetAppIcon(REJECTED). | ||
| -- 4) App is re-registered. | ||
| -- SDL does: | ||
| -- 1) Registers an app successfully, responds to RAI with result code "SUCCESS", "iconResumed" = false. |
There was a problem hiding this comment.
update 'SDL does' according to script
| runner.Step("Upload icon file1", common.putFile) | ||
| runner.Step("SetAppIcon1", common.setAppIcon, { allParams } ) | ||
|
|
||
| runner.Step("Upload icon file2", common.putFile) |
There was a problem hiding this comment.
uploads the same icon and sets also the same icon
5f4391f to
3092077
Compare
3092077 to
6664e45
Compare
* Fix disconnect instability * Fix Ignition Off instability * Fix instability in Policy scripts
No description provided.