View Issue Details

IDProjectCategoryView StatusLast Update
0010304CTT UA Test Case1 - Script Issuepublic2025-07-21 11:34
ReporterRalf Heß Assigned ToSebastian Allmendinger  
PrioritynormalSeverityminorReproducibilityalways
Status assignedResolutionopen 
Summary0010304: CU Data Access DataItems: test result does not take into account the current ValuePrecision
Description

Testcase /maintree/Data Access/Data Access DataItems/Test Cases/004.js
The test case does not set a own ValuePrecision and therefore only works with highest ValuePrecision. For small values such as 4, for example, it fails because the value read back differs significantly.

Steps To Reproduce

Use a float or double dataitem type.
Define a ValuePrecision=4 for this node.
Run test case -> test will fail

Additional Information

CTT Version v1.04.11-01.00.508.exe-20240608

TagsDataItems
Files Affected

Activities

Sebastian Allmendinger

2025-07-21 11:34

developer   ~0023151

The test script writes min, max and values in the middle of the datatype range.
If a server provides the ValuePrecision property and rounds the values accordingly, the validation fails twice:
1) The CTT validates the written and read value directly in the library for equality
2) The CTT validates the written and read value in the test script for equality

In order to resolve the issue,
1) the built in validation in the library must be deactivated
2) the ValuePrecision property must be read and honored for Float, Double and DateTime.

Issue History

Date Modified Username Field Change
2025-04-25 11:47 Ralf Heß New Issue
2025-04-25 11:47 Ralf Heß Tag Attached: DataItems
2025-07-17 15:05 Paul Hunkar Assigned To => Sebastian Allmendinger
2025-07-17 15:05 Paul Hunkar Status new => assigned
2025-07-21 11:34 Sebastian Allmendinger Note Added: 0023151