View Issue Details

IDProjectCategoryView StatusLast Update
0008719CTT UA Scripts1 - Script Issuepublic2023-05-11 15:38
ReporterSebastian Allmendinger Assigned ToSebastian Allmendinger  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version1.03.502 
Fixed in Version1.03.503 
Summary0008719: Monitor Items Deadband Filter 016 needs to be skipped if array length = 1
Description

The test script creates a MonitoredItem with the "full" IndexRange of the array ( "0:array.length - 1").
If there is only one element in the configured array, the CTT tries to create a MonitoredItem with the IndexRange "0:0", which is an invalid value -> Server must return BadIndexRangeInvalid -> Script fails.

TagsNo tags attached.
Files Affected

/maintree/Monitored Item Services/Monitor Items Deadband Filter/Test Cases/016.js

Activities

Paul Hunkar

2023-04-13 15:44

administrator   ~0019177

Last edited: 2023-04-13 16:05

The configuration should generate an error/warning if an array that is of size 1 is configured - so that test are not skipped - but this should be part of a larger set of changes to better check what is configured and should be its own mantis issue

Paul Hunkar

2023-04-13 16:06

administrator   ~0019178

Discussing call the script should just be updated to handle the write correctly is the size is 1 - i.e. write [0] instead of write [0:0]

Sebastian Allmendinger

2023-05-11 13:25

developer   ~0019315

The IndexRange has been corrected to "0" if arrays with only 1 element are configured.
The test script tried to write to Index 1. This has been changed to Index 0 for arrays with only 1 element.

Paul Hunkar

2023-05-11 15:38

administrator   ~0019320

Reviewed change in call, agred to changes closed issue

Issue History

Date Modified Username Field Change
2023-03-02 12:25 Sebastian Allmendinger New Issue
2023-04-13 15:44 Paul Hunkar Note Added: 0019177
2023-04-13 16:05 Paul Hunkar Note Edited: 0019177
2023-04-13 16:06 Paul Hunkar Note Added: 0019178
2023-04-13 16:06 Paul Hunkar Assigned To => Sebastian Allmendinger
2023-04-13 16:06 Paul Hunkar Status new => assigned
2023-05-11 13:23 Sebastian Allmendinger Files Affected => /maintree/Monitored Item Services/Monitor Items Deadband Filter/Test Cases/016.js
2023-05-11 13:25 Sebastian Allmendinger Status assigned => resolved
2023-05-11 13:25 Sebastian Allmendinger Resolution open => fixed
2023-05-11 13:25 Sebastian Allmendinger Note Added: 0019315
2023-05-11 15:38 Paul Hunkar Status resolved => closed
2023-05-11 15:38 Paul Hunkar Fixed in Version => 1.03.503
2023-05-11 15:38 Paul Hunkar Note Added: 0019320