View Issue Details

IDProjectCategoryView StatusLast Update
0008727CTT UA Scripts1 - Script Issuepublic2023-11-06 13:41
ReporterV. Monfort Assigned ToMichael Fehler  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
PlatformLinux 
Product Version1.04.502 
Fixed in Version1.03.505 
Summary0008727: Exception raised in AddNodes tests (scripts v1.04.502)
Description

In AddNodes tests 001, 002 and 003, an exception is raised when script is checking response results.
This was not the case in previous scripts version.

The exception raised is: "Result of expression 'uaValue' [undefined] is not an object"
The backtrace is:
assertions.js:237
AddNodes.js:176

Several elements seem to cause this issue:

  • The assertions.js "Assert.GreaterThan" function has been changed by adding the 2 following lines:
    expectedMin = UaVariantToSimpleType( expectedMin );
    actualValue = UaVariantToSimpleType( actualValue );
  • The AddNodes check "Assert.GreaterThan( 0, args.Response.Results[i].AddedNodeId.length" provides an actual value which is undefined

The actual value was already undefined in the previous version but UaVariantToSimpleType was not called and the check was successful with this value.
I guess the AddNodes check was and still is incorrect since AddedNodeId.length does not seem to be a valid field, it shall be fixed.

Steps To Reproduce

Run the AddNodes test scripts 001, 002 or 003 with a server succeeding to add nodes.

TagsNo tags attached.
Files Affected

Activities

V. Monfort

2023-03-14 11:54

reporter   ~0018862

Err-006.js, Err-007.js and Err-008.js are also concerned.
I used the following temporary fix:
"Assert.GreaterThan( 0, args.Response.Results[i].AddedNodeId.length" => "Assert.GreaterThan( 0, args.Response.Results[i].AddedNodeId.IdentifierType"

Paul Hunkar

2023-11-06 13:41

administrator   ~0020269

reviewed changes in call - agreed to changes, closed issue

Issue History

Date Modified Username Field Change
2023-03-14 11:24 V. Monfort New Issue
2023-03-14 11:54 V. Monfort Note Added: 0018862
2023-03-15 21:00 Alexander Allmendinger Project Compliance Test Tool (CTT) Unified Architecture => CTT UA Scripts
2023-03-15 21:00 Alexander Allmendinger Product Version => 1.04.502
2023-04-13 15:37 Paul Hunkar Assigned To => Alexander Allmendinger
2023-04-13 15:37 Paul Hunkar Status new => assigned
2023-10-23 06:15 Michael Fehler Assigned To Alexander Allmendinger => Michael Fehler
2023-11-03 07:36 Michael Fehler Status assigned => resolved
2023-11-03 07:36 Michael Fehler Resolution open => fixed
2023-11-06 13:41 Paul Hunkar Status resolved => closed
2023-11-06 13:41 Paul Hunkar Fixed in Version => 1.03.505
2023-11-06 13:41 Paul Hunkar Note Added: 0020269