View Issue Details

IDProjectCategoryView StatusLast Update
0006198CTT UA Scripts1 - Script Issuepublic2023-11-06 13:28
ReporterMaximilian Assigned ToSebastian Allmendinger  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
PlatformDesktopOSWindowsOS Version10
Fixed in Version1.03.505 
Summary0006198: Monitored Item Services/Monitor Value Change/042.js increment problem with serveral data types
Description

The script fails at increment big values at floating point data types like double. The server will not recognize the value change at the last bit.

Steps To Reproduce

Test with a double Matrix with big values like 8299176438616031000 ( 8,299176e+18)

TagsNo tags attached.
Attached Files
42js.pcapng (1,707,500 bytes)
Files Affected

library\ClassBased\UaV.js

Relationships

related to 0007992 closedYannik Klaass Increment issue for a big Double type value 

Activities

Paul Hunkar

2020-11-12 17:05

administrator   ~0013193

We are wondering why your initial values are such large numbers?

we are proposing no changes, since a failed test is always reviewed by the tester and they would notice the very large initial value and just use a different double with a smaller value for the test.

Maximilian

2020-11-16 12:45

reporter   ~0013229

The variables of our test server are generated randomly.
If your test can´t handle large numbers, it sould change them before or have an better description.

Elliot Gawthrop

2022-01-24 15:42

reporter   ~0015833

This is also an issue with Int64 and UInt64. After the execution ofelse arrayWriteValues[w] = b[w] + args.Increment; on large values, the arrayWriteValues[w] is the same as b[w].

I am using the OPC UA ReferenceNodeManager (https://github.com/OPCFoundation/UA-.NETStandard/blob/a147eb55c5cf587c675d5e7811207df178ec66f5/Applications/Quickstarts.Servers/ReferenceServer/ReferenceNodeManager.cs) to create the CTT nodes, and this populates large values inside Int64 and UInt64. In other words the official reference server cannot pass the CTT.

Sebastian Allmendinger

2023-11-06 12:47

developer   ~0020263

In the linked mantis (7992) this problem has already been addressed in some places of the increcment function.
The hard coded max value has now been added as constant.
If a Double, Duration, Int64 or UInt64 exceeds that number as a Scalar, in an Array or multi dimensional array, it will be set to 0.

Paul Hunkar

2023-11-06 13:28

administrator   ~0020266

reviewed issue (QT does not support double and int 64 thus the work around) - agreed to changes and closed issue

Issue History

Date Modified Username Field Change
2020-10-30 10:09 Maximilian New Issue
2020-10-30 10:09 Maximilian File Added: 42js.pcapng
2020-11-12 17:05 Paul Hunkar Assigned To => Paul Hunkar
2020-11-12 17:05 Paul Hunkar Status new => feedback
2020-11-12 17:05 Paul Hunkar Note Added: 0013193
2020-11-16 12:45 Maximilian Note Added: 0013229
2020-11-16 12:45 Maximilian Status feedback => assigned
2022-01-24 15:42 Elliot Gawthrop Note Added: 0015833
2022-08-02 20:04 Paul Hunkar Project Compliance Test Tool (CTT) Unified Architecture => CTT UA Scripts
2023-10-05 14:38 Paul Hunkar Assigned To Paul Hunkar => Alexander Allmendinger
2023-11-03 15:43 Sebastian Allmendinger Relationship added related to 0007992
2023-11-04 11:05 Sebastian Allmendinger Assigned To Alexander Allmendinger => Sebastian Allmendinger
2023-11-04 11:06 Sebastian Allmendinger Files Affected => library\ClassBased\UaV.js
2023-11-06 12:47 Sebastian Allmendinger Status assigned => resolved
2023-11-06 12:47 Sebastian Allmendinger Resolution open => fixed
2023-11-06 12:47 Sebastian Allmendinger Note Added: 0020263
2023-11-06 13:28 Paul Hunkar Status resolved => closed
2023-11-06 13:28 Paul Hunkar Fixed in Version => 1.03.505
2023-11-06 13:28 Paul Hunkar Note Added: 0020266