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 scripts for core issue #2468 #2700

Merged
merged 3 commits into from
Aug 24, 2022
Merged

Add scripts for core issue #2468 #2700

merged 3 commits into from
Aug 24, 2022

Conversation

jacobkeeler
Copy link
Contributor

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

Copy link
Contributor

@ShobhitAd ShobhitAd left a 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 @@
---------------------------------------------------------------------------------------------------
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
---------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------
-- 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"
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
-- 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
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
-- 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
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
-- b. appID is registered and activated on SDL
-- b. App is registered and activated on SDL

}
}

local responseUiParams = {
Copy link
Contributor

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

Suggested change
local responseUiParams = {
local requestUiParams = {

given that its used with ExpectRequest

Copy link
Contributor

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
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
-- 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
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
-- 1. appID requests AddCommand with vrCommands
-- 1. App requests AddCommand with vrCommands

@@ -0,0 +1,123 @@
---------------------------------------------------------------------------------------------------
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
---------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------
-- 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
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
-- 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
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
-- 1. appID requests AddCommand with vrCommands
-- 1. App requests AddCommand with vrCommands

@@ -0,0 +1,209 @@
local common = require('test_scripts/Smoke/commonSmoke')
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
local common = require('test_scripts/Smoke/commonSmoke')
---------------------------------------------------------------------------------------------------
-- Common module
---------------------------------------------------------------------------------------------------
--[[ Required Shared libraries ]]
local common = require('test_scripts/Smoke/commonSmoke')

Just for consistency

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.

2 participants