View Issue Details

IDProjectCategoryView StatusLast Update
0003981Compliance Test Tool (CTT) Unified Architecture1 - Script Issuepublic2019-06-17 13:15
ReporterMircea Suciu Assigned ToAlexander Allmendinger  
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
PlatformWindowsOSWindows 7OS VersionProffesional
Product Version1.02.336.273 
Target Version1.03Fixed in Version1.03.340.368 
Summary0003981: Tested with 1.3.340.358 RC
Description

Test case "Subscription Services-> Subscription Basic -> 056.js" is not skipped in a configuration with a single scalar node

Steps To Reproduce

Having a configuration where a single node is configured in "Settings.ServerTest.NodeIds.Static.AllProfiles.Scalar" set of nodes, e.g. Float
The test case "Subscription Services-> Subscription Basic -> 056.js" creates a subscription without closing it at the end of the test.
The problem is caused at line 14:
if( MonitoredItems[0] === null || MonitoredItems[1] === null ).
Because the test execution is not skipped, as intended.

MonitoredItems[1] is not === null since it's value is MonitoredItems[1] === undefined.
Instead of using the === operator the == operator should be used since it accepts also the undefined value.

The check should be this in order to skip the test in a configuration with a sigle node:

if( MonitoredItems[0] == null || MonitoredItems[1] == null ) {
addSkipped( "Static Scalar - 2 Nodes needed" );
return( false );
}
Additional Information

Reproduced with version 1.3.340.358 RC

TagsNo tags attached.
Files Affected

Activities

Alexander Allmendinger

2017-11-13 13:03

developer   ~0008685

Due to the coding rules I added additional checks instead of switching to ==. The code has been changed to:

if (MonitoredItems[0] === undefined || MonitoredItems[1] === undefined || MonitoredItems[0] === null || MonitoredItems[1] === null ) {

Paul Hunkar

2019-06-17 13:15

administrator   ~0010379

reviewed in CMP call 2019-06-17

Issue History

Date Modified Username Field Change
2017-10-10 11:32 Mircea Suciu New Issue
2017-11-02 14:55 Paul Hunkar Target Version => 1.03
2017-11-02 14:55 Paul Hunkar Assigned To => Alexander Allmendinger
2017-11-02 14:55 Paul Hunkar Status new => assigned
2017-11-13 13:03 Alexander Allmendinger Note Added: 0008685
2017-11-13 13:03 Alexander Allmendinger Status assigned => resolved
2017-11-13 13:03 Alexander Allmendinger Fixed in Version => 1.03.340.368
2017-11-13 13:03 Alexander Allmendinger Resolution open => fixed
2019-01-28 14:10 Paul Hunkar Category Script Issue => 1 - Script Issue
2019-06-17 13:15 Paul Hunkar Status resolved => closed
2019-06-17 13:15 Paul Hunkar Note Added: 0010379