View Issue Details

IDProjectCategoryView StatusLast Update
0006171Compliance Test Tool (CTT) Unified Architecture1 - Script Issuepublic2021-03-30 14:32
ReporterHock, Christian Assigned ToSebastian Allmendinger  
PriorityurgentSeverityblockReproducibilityalways
Status closedResolutionfixed 
Product Version1.04.09.397 
Target Version1.04.09.397Fixed in Version1.03.341.397 
Summary0006171: Monitored Item Services/Monitor Value Change/042.js hangs after an Item returns an error
Description

function monitorValueChanges042()

The Value of "i" (Line 66 to 69) will not change anymore if a item returns .isNotGood()
In our case it is the first item and "i" will stay at '0' forever.

See Picture with the marked code.

We also believe, that the same problem might occour between:

  • line 31 and 35
  • line 49 and 55

In other words where ever a for-loop with "i" and in some case inside this loop "i--" is done.

TagsNo tags attached.
Attached Files
CTT_EndlessLoop.PNG (59,197 bytes)   
CTT_EndlessLoop.PNG (59,197 bytes)   
Files Affected

Activities

Paul Hunkar

2020-10-22 16:25

administrator   ~0013078

the loop is doing two things, the I is used as an index into the results array and that index needs to increase as each is checked - the count of Item is decremented for an error and the index into this array needs to be decremented - both can not be the same index.

Sebastian Allmendinger

2020-11-13 20:09

developer   ~0013197

Test script has been enhanced so that
1) the loop starts at the end of the array, so that deleting elements does not affect the loop
2) i is only used in one array.

During the investigation of this issue several other test scripts with the same problem have been identified and have been updated too.

Paul Hunkar

2021-03-30 14:32

administrator   ~0014122

Reviewed in cmp call - Agreed to changes and closed

Issue History

Date Modified Username Field Change
2020-10-22 11:04 Hock, Christian New Issue
2020-10-22 11:04 Hock, Christian File Added: CTT_EndlessLoop.PNG
2020-10-22 16:25 Paul Hunkar Note Added: 0013078
2020-10-22 16:25 Paul Hunkar Assigned To => Alexander Allmendinger
2020-10-22 16:25 Paul Hunkar Status new => assigned
2020-10-23 05:24 Sebastian Allmendinger Assigned To Alexander Allmendinger => Sebastian Allmendinger
2020-11-13 20:09 Sebastian Allmendinger Status assigned => resolved
2020-11-13 20:09 Sebastian Allmendinger Resolution open => fixed
2020-11-13 20:09 Sebastian Allmendinger Fixed in Version => 1.03.341.397
2020-11-13 20:09 Sebastian Allmendinger Note Added: 0013197
2021-03-30 14:32 Paul Hunkar Status resolved => closed
2021-03-30 14:32 Paul Hunkar Note Added: 0014122