View Issue Details

IDProjectCategoryView StatusLast Update
0010009CTT UA Scripts5 - General Problempublic2025-08-14 05:18
ReporterJochen Baier Assigned ToSebastian Allmendinger  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Summary0010009: CTT writes always "false" to NodeIds/Static/All Profiles/Scalar/Bool after end of all tests
Description

Regardless of whether the value of NodeIds/Static/All Profiles/Scalar/Bool was previously "true": CTT always writes "false" to this variable at the end of all tests.

This causes problems if other CI tests use this variable and assume that it is still "true".

Steps To Reproduce

New CTT project with minimal setup. Add a bool variable to NodeIds/Static/All Profiles/Scalar/Bool. The bool variable should have value "true".
Run empty UseDefinedGC->UserDefinedCU->001.js
Now the bool variable has value "false".

tested with server_cpp_demo from unified automation.

TagsNo tags attached.
Attached Files
image.png (21,721 bytes)   
image.png (21,721 bytes)   
Files Affected

/library/ServiceBased/DetectUAServices.js

Activities

Sebastian Allmendinger

2025-07-31 16:54

developer   ~0023181

The CTT writes the minimum value to the first configured scalar item in the afterTests.js without reverting it.
In most of the cases this would/should be a Boolean, but it can be any of the other DataTypes too.

Proposed solution:

  • Reading the value before writing it
  • Using UaVariant.Increment() instead of UaVariant.Min()
  • Reverting the value if the first write succeeds

Sebastian Allmendinger

2025-08-01 06:32

developer   ~0023182

... or even simplier:
Just write the same value again. At this point, the CTT is not testing the functionality, but is only interested if the server returns Bad_ServiceUnsupported.

Sebastian Allmendinger

2025-08-14 05:18

developer   ~0023228

A Read before the Write has been added and the CTT now writes the same value to the item again.
Because the CTT is only interested in the ServiceResult and not in testing the functionality, the written value is not important.

Issue History

Date Modified Username Field Change
2024-11-14 09:11 Jochen Baier New Issue
2024-11-14 09:11 Jochen Baier File Added: image.png
2025-07-31 15:25 Paul Hunkar Assigned To => Sebastian Allmendinger
2025-07-31 15:25 Paul Hunkar Status new => assigned
2025-07-31 16:54 Sebastian Allmendinger Note Added: 0023181
2025-08-01 06:32 Sebastian Allmendinger Note Added: 0023182
2025-08-02 09:14 Sebastian Allmendinger Project Compliance Test Tool (CTT) Unified Architecture => CTT UA Scripts
2025-08-02 09:14 Sebastian Allmendinger Product Version 1.04.11-01.00.508 =>
2025-08-02 09:14 Sebastian Allmendinger Files Affected => /library/ServiceBased/DetectUAServices.js
2025-08-14 05:18 Sebastian Allmendinger Status assigned => resolved
2025-08-14 05:18 Sebastian Allmendinger Resolution open => fixed
2025-08-14 05:18 Sebastian Allmendinger Note Added: 0023228