View Issue Details

IDProjectCategoryView StatusLast Update
0004143Compliance Test Tool (CTT) Unified Architecture1 - Script Issuepublic2020-07-09 15:02
ReporterCamille Dominique Reyes Assigned ToAlexander Allmendinger  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version1.03.340.380 
Fixed in Version1.03.341.390 
Summary0004143: Result of expression 'items[i]' [null] is not an object in Attribute Write Values Err-008.js
Description

Currently encountering the following error when Attribute Write Values Err-008.js is executed:

Test.Execute() encounted an unexpected error: TypeError: Result of expression 'items[i]' [null] is not an object.

Steps To Reproduce

Run Attribute Write Values Err-008.js

Additional Information

This happens when the items[i] in

if( items[i].originalValue.DataType == types[t] ) return( items[i] );

turns out to be null in the first place.

This may happen when one of the prior monitored items has been sent a value of null. Once the script iterates to that null item, an exception is thrown.

Adding a check which returns null when items[i] is null fixes the test case.

TagsNo tags attached.
Attached Files
Write_Values_Err-008.PNG (132,702 bytes)   
Write_Values_Err-008.PNG (132,702 bytes)   
Files Affected

Activities

Alexander Allmendinger

2019-11-03 17:44

developer   ~0011188

There were several issues in this script:
Test.Session.Session was not used when Test.Session should be used, a function ConnectChannel does not exist but is called, a wrong check leads to skipping this test.
By rewriting the script these issues no longer exists.

Fix already checked in to 3rd September

Paul Hunkar

2020-07-09 15:02

administrator   ~0012580

Reviewed in CMP call

Issue History

Date Modified Username Field Change
2018-01-30 13:11 Camille Dominique Reyes New Issue
2018-01-30 13:11 Camille Dominique Reyes File Added: Write_Values_Err-008.PNG
2018-05-04 15:39 Paul Hunkar Assigned To => Alexander Allmendinger
2018-05-04 15:39 Paul Hunkar Status new => assigned
2019-01-28 14:10 Paul Hunkar Category Script Issue => 1 - Script Issue
2019-11-03 17:44 Alexander Allmendinger Status assigned => resolved
2019-11-03 17:44 Alexander Allmendinger Resolution open => fixed
2019-11-03 17:44 Alexander Allmendinger Fixed in Version => 1.03.341.390
2019-11-03 17:44 Alexander Allmendinger Note Added: 0011188
2020-07-09 15:02 Paul Hunkar Status resolved => closed
2020-07-09 15:02 Paul Hunkar Note Added: 0012580