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

Defect: ATF doed not parse structure like '"menuIcon" : null' #150

Open
GetmanetsIrina opened this issue Nov 9, 2018 · 0 comments
Open
Assignees

Comments

@GetmanetsIrina
Copy link
Contributor

GetmanetsIrina commented Nov 9, 2018

Summary

ATF doed not parse structure like '"menuIcon" : null'

Steps to reproduce

  1. Register and activate mobile app
  2. Request AddSubMenu without menuIcon
    Script for reproduce Added check of the menuIcon parameter absence sdl_atf_test_scripts#2142

Expected result

SDL sends "menuIcon" : null in UI.AddSubmenu to HMI, ATF parse "menuIcon" : null and fail test with message "SDL sends menuIcon in request to HMI in case parameter is absent in request"

Actual result

In case SDL sends message like

 {
   "params" : {
      "appID" : 1676936826,
      "menuID" : 1000,
      "menuIcon" : null,
      "menuParams" : {
         "menuName" : "SubMenupositive",
         "position" : 500
      }
   }
}

ATF will parse it like

[appID]: 814596906
[menuID]: 1000
[menuParams]: {
    [menuName]: 'SubMenupositive'
    [position]: 500
}

So atf tests will not failed with error because of redundant null parameter.

Can be reproduced in case SDL defect smartdevicelink/sdl_core#2744 is reproduced.

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

No branches or pull requests

2 participants