-
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
Add scripts for core issue #2468 #2700
Conversation
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.
I think these tests might be a lot shorter if we add a common file since most of the request param values are the same for each script and we could have a common AddCommand(pParams, expectecUIResult, expectedVRResult) function - the expectations would have to be based around the expectedUIResult
and expectedVRResult
@@ -0,0 +1,141 @@ | |||
--------------------------------------------------------------------------------------------------- |
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.
--------------------------------------------------------------------------------------------------- | |
-------------------------------------------------------------------------------------------------- | |
-- Issue: https://github.com/smartdevicelink/sdl_core/issues/2468 | |
--------------------------------------------------------------------------------------------------- |
Just to stay consistent with the other defect tests
-- [AddCommand] GENERIC_ERROR: getting GENERIC_ERROR on UI.AddCommand timeout | ||
-- | ||
-- Description: | ||
-- Mobile application sends valid AddCommand request with both "vrCommands"and "menuParams" |
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.
-- Mobile application sends valid AddCommand request with both "vrCommands"and "menuParams" | |
-- Mobile application sends valid AddCommand request with both "vrCommands" and "menuParams" |
-- b. appID is registered and activated on SDL | ||
|
||
-- Steps: | ||
-- 1. appID requests AddCommand with both vrCommands and menuParams |
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.
-- 1. appID requests AddCommand with both vrCommands and menuParams | |
-- 1. App requests AddCommand with both vrCommands and menuParams |
|
||
-- Pre-conditions: | ||
-- a. HMI and SDL are started | ||
-- b. appID is registered and activated on SDL |
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.
-- b. appID is registered and activated on SDL | |
-- b. App is registered and activated on SDL |
} | ||
} | ||
|
||
local responseUiParams = { |
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.
Should this be renamed to
local responseUiParams = { | |
local requestUiParams = { |
given that its used with ExpectRequest
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.
This comment applies to all other scripts (with UI.AddCommand) as well
|
||
-- Pre-conditions: | ||
-- a. HMI and SDL are started | ||
-- b. appID is registered and activated on SDL |
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.
-- b. appID is registered and activated on SDL | |
-- b. App is registered and activated on SDL |
-- b. appID is registered and activated on SDL | ||
|
||
-- Steps: | ||
-- 1. appID requests AddCommand with vrCommands |
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.
-- 1. appID requests AddCommand with vrCommands | |
-- 1. App requests AddCommand with vrCommands |
@@ -0,0 +1,123 @@ | |||
--------------------------------------------------------------------------------------------------- |
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.
--------------------------------------------------------------------------------------------------- | |
-------------------------------------------------------------------------------------------------- | |
-- Issue: https://github.com/smartdevicelink/sdl_core/issues/2468 | |
--------------------------------------------------------------------------------------------------- |
|
||
-- Pre-conditions: | ||
-- a. HMI and SDL are started | ||
-- b. appID is registered and activated on SDL |
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.
-- b. appID is registered and activated on SDL | |
-- b. App is registered and activated on SDL |
-- b. appID is registered and activated on SDL | ||
|
||
-- Steps: | ||
-- 1. appID requests AddCommand with vrCommands |
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.
-- 1. appID requests AddCommand with vrCommands | |
-- 1. App requests AddCommand with vrCommands |
@@ -0,0 +1,209 @@ | |||
local common = require('test_scripts/Smoke/commonSmoke') |
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.
local common = require('test_scripts/Smoke/commonSmoke') | |
--------------------------------------------------------------------------------------------------- | |
-- Common module | |
--------------------------------------------------------------------------------------------------- | |
--[[ Required Shared libraries ]] | |
local common = require('test_scripts/Smoke/commonSmoke') |
Just for consistency
ATF Test Scripts to check smartdevicelink/sdl_core#2468
This PR is ready for review.
Summary
Adds tests which check behavior when AddCommand times out (DeleteCommand should be sent for any pending or successful requests)
ATF version
develop
Changelog
Bug Fixes
CLA