Skip to content

Commit be633f7

Browse files
authored
Merge pull request #1782 from dboltovskyi/fix/smoke_regarding_send_location
Smoke: Remove turnText item
2 parents 968de68 + 3d6fd3d commit be633f7

4 files changed

Lines changed: 62 additions & 30 deletions

File tree

test_scripts/Smoke/HeartBeat/ATF_HeartBeat_App_does_not_send_HB_and_does_not_respond.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ commonFunctions:newTestCasesGroup("Test")
6767

6868
function Test:Start_Session_And_Register_App()
6969
self.mobileSession = mobile_session.MobileSession(self, self.mobileConnection)
70+
self.mobileSession.activateHeartbeat = false
7071
self.mobileSession.sendHeartbeatToSDL = false
7172
self.mobileSession.answerHeartbeatFromSDL = false
7273
self.mobileSession.ignoreSDLHeartBeatACK = false
@@ -84,6 +85,7 @@ end
8485

8586
function Test:Register_Second_App_With_HeartBeat()
8687
self.mobileSession1 = mobile_session.MobileSession(self, self.mobileConnection)
88+
self.mobileSession1.activateHeartbeat = true
8789
self.mobileSession1.sendHeartbeatToSDL = true
8890
self.mobileSession1.answerHeartbeatFromSDL = true
8991
self.mobileSession1.ignoreSDLHeartBeatACK = false
@@ -115,4 +117,4 @@ function Test.Stop_SDL()
115117
StopSDL()
116118
end
117119

118-
return Test
120+
return Test

test_scripts/Smoke/HeartBeat/ATF_HeartBeat_App_does_not_send_HB_but_respond.lua

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,10 @@ commonFunctions:newTestCasesGroup("Test")
6666

6767
function Test:Start_Session_And_Register_App()
6868
self.mobileSession = mobile_session.MobileSession(self, self.mobileConnection)
69+
self.mobileSession.activateHeartbeat = true
6970
self.mobileSession.sendHeartbeatToSDL = false
7071
self.mobileSession.answerHeartbeatFromSDL = true
71-
self.mobileSession.ignoreSDLHeartBeatACK = false
72+
self.mobileSession.ignoreSDLHeartBeatACK = true
7273
self.mobileSession:StartRPC():Do(function()
7374
local correlation_id = self.mobileSession:SendRPC("RegisterAppInterface", default_app_params)
7475
EXPECT_HMINOTIFICATION("BasicCommunication.OnAppRegistered",
@@ -98,4 +99,4 @@ function Test.Stop_SDL()
9899
StopSDL()
99100
end
100101

101-
return Test
102+
return Test

test_scripts/smoke_api.lua

Lines changed: 56 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ require('user_modules/AppTypes')
2424

2525
--[[ Local Variables ]]
2626
local iTimeout = 5000
27-
local strMaxLengthFileName255 = string.rep("a", 251) .. ".png" -- set max length file name
27+
local strMaxLengthFileName242 = string.rep("a", 238) .. ".png" -- max is 242 since docker limitation
2828
local textPromtValue = {"Please speak one of the following commands,", "Please say a command,"}
2929

3030
local storagePath = commonPreconditions:GetPathToSDL() .. "storage/" .. config.application1.registerAppInterfaceParams.appID .. "_" .. config.deviceMAC .. "/"
@@ -514,7 +514,7 @@ end
514514

515515
-- 2. PutFiles
516516
commonSteps:PutFile("PutFile_action.png", "action.png")
517-
commonSteps:PutFile("PutFile_MaxLength_255Characters", strMaxLengthFileName255)
517+
commonSteps:PutFile("PutFile_MaxLength_255Characters", strMaxLengthFileName242)
518518
commonSteps:PutFile("Putfile_SpaceBefore", " SpaceBefore")
519519
commonSteps:PutFile("Putfile_Icon.png", "icon.png")
520520

@@ -679,17 +679,7 @@ function Test:ResetGlobalProperties_PositiveCase()
679679
--hmi side: expect TTS.SetGlobalProperties request
680680
EXPECT_HMICALL("TTS.SetGlobalProperties",
681681
{
682-
helpPrompt =
683-
{
684-
{
685-
type = "TEXT",
686-
text = textPromtValue[1]
687-
},
688-
{
689-
type = "TEXT",
690-
text = textPromtValue[2]
691-
}
692-
},
682+
helpPrompt = { },
693683
timeoutPrompt =
694684
{
695685
{
@@ -1226,10 +1216,10 @@ function Test:ListFiles()
12261216
{
12271217
success = true,
12281218
resultCode = "SUCCESS",
1229-
spaceAvailable = 103878520
1219+
-- spaceAvailable = 103878520 -- disabled due to CI issue
12301220
})
12311221
:ValidIf(function(_, data)
1232-
local files_expected = { " SpaceBefore", strMaxLengthFileName255, "icon.png" }
1222+
local files_expected = { " SpaceBefore", strMaxLengthFileName242, "icon.png" }
12331223
if not commonFunctions:is_table_equal(data.payload.filenames, files_expected) then
12341224
return false, "\nExpected files:\n" .. commonFunctions:convertTableToString(files_expected, 1)
12351225
.. "\nActual files:\n" .. commonFunctions:convertTableToString(data.payload.filenames, 1)
@@ -2781,12 +2771,6 @@ local function displayCap_textFields_Value()
27812771
rows = 1,
27822772
width = 500
27832773
},
2784-
{
2785-
characterSet = "TYPE2SET",
2786-
name = "turnText",
2787-
rows = 1,
2788-
width = 500
2789-
},
27902774
{
27912775
characterSet = "TYPE2SET",
27922776
name = "menuTitle",
@@ -3259,7 +3243,23 @@ local function setGVDResponse(paramsSend)
32593243
gps =
32603244
{
32613245
longitudeDegrees = 25.5,
3262-
latitudeDegrees = 45.5
3246+
latitudeDegrees = 45.5,
3247+
utcYear = 2010,
3248+
utcMonth = 1,
3249+
utcDay = 1,
3250+
utcHours = 2,
3251+
utcMinutes = 3,
3252+
utcSeconds = 4,
3253+
compassDirection = "NORTH",
3254+
pdop = 1.1,
3255+
hdop = 2.2,
3256+
vdop = 3.3,
3257+
actual = true,
3258+
satellites = 5,
3259+
dimension = "NO_FIX",
3260+
altitude = 4.4,
3261+
heading = 5.5,
3262+
speed = 100
32633263
},
32643264
speed = 100.5,
32653265
rpm = 1000,
@@ -3271,18 +3271,48 @@ local function setGVDResponse(paramsSend)
32713271
prndl="DRIVE",
32723272
tirePressure={
32733273
pressureTelltale = "ON",
3274+
leftFront = { status = "NORMAL" },
3275+
rightFront = { status = "NORMAL" },
3276+
leftRear = { status = "NORMAL" },
3277+
rightRear = { status = "NORMAL" },
3278+
innerLeftRear = { status = "NORMAL" },
3279+
innerRightRear = { status = "NORMAL" }
32743280
},
32753281
odometer= 8888,
32763282
beltStatus={
3277-
driverBeltDeployed = "NOT_SUPPORTED"
3283+
driverBeltDeployed = "NOT_SUPPORTED",
3284+
passengerBeltDeployed = "YES",
3285+
passengerBuckleBelted = "YES",
3286+
driverBuckleBelted = "YES",
3287+
leftRow2BuckleBelted = "YES",
3288+
passengerChildDetected = "YES",
3289+
rightRow2BuckleBelted = "YES",
3290+
middleRow2BuckleBelted = "YES",
3291+
middleRow3BuckleBelted = "YES",
3292+
leftRow3BuckleBelted = "YES",
3293+
rightRow3BuckleBelted = "YES",
3294+
leftRearInflatableBelted = "YES",
3295+
rightRearInflatableBelted = "YES",
3296+
middleRow1BeltDeployed = "YES",
3297+
middleRow1BuckleBelted = "YES"
32783298
},
32793299
bodyInformation={
32803300
parkBrakeActive = true,
32813301
ignitionStableStatus = "MISSING_FROM_TRANSMITTER",
32823302
ignitionStatus = "UNKNOWN"
32833303
},
32843304
deviceStatus={
3285-
voiceRecOn = true
3305+
voiceRecOn = true,
3306+
btIconOn = true,
3307+
callActive = true,
3308+
phoneRoaming = true,
3309+
textMsgAvailable = true,
3310+
battLevelStatus = "ONE_LEVEL_BARS",
3311+
stereoAudioOutputMuted = true,
3312+
monoAudioOutputMuted = true,
3313+
signalLevelStatus = "TWO_LEVEL_BARS",
3314+
primaryAudioSource = "USB",
3315+
eCallEventActive = true
32863316
},
32873317
driverBraking="NOT_SUPPORTED",
32883318
wiperStatus="MAN_LOW",
@@ -3416,7 +3446,7 @@ local function setExTurnList(size)
34163446
navigationText =
34173447
{
34183448
fieldText = "Text",
3419-
fieldName = "turnText"
3449+
fieldName = "navigationText"
34203450
},
34213451
turnIcon =
34223452
{
@@ -3433,7 +3463,7 @@ local function setExTurnList(size)
34333463
navigationText =
34343464
{
34353465
fieldText = "Text"..i,
3436-
fieldName = "turnText"
3466+
fieldName = "navigationText"
34373467
},
34383468
turnIcon =
34393469
{

test_sets/smoke_tests.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,3 @@
2222
./test_scripts/Smoke/HeartBeat/ATF_HeartBeat_App_does_not_send_HB_but_respond.lua
2323
./test_scripts/Smoke/HeartBeat/ATF_HeartBeat_App_does_not_send_HB_and_does_not_respond.lua
2424
./test_scripts/smoke_api.lua
25-
./test_scripts/ATF_Expanded_smoke_test_Genivi.lua

0 commit comments

Comments
 (0)