View Issue Details

IDProjectCategoryView StatusLast Update
0004058Compliance Test Tool (CTT) Unified Architecture1 - Script Issuepublic2019-08-07 11:51
Reporterlil Assigned ToAlexander Allmendinger  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version1.02.336.273 
Target Version1.03Fixed in Version1.03.341.381 
Summary0004058: Test Err-002 in View Services - View TranslateBrowsePath fails if Max Depth is smaller than 10
Description

Test Err-002 in View Services - View TranslateBrowsePath fails if Max Depth is smaller than 10. The test should check and use the setting Max Depth in Settings-Server Test-NodeIds-Paths-Max Depth when setting up pathsToBrowse.

Steps To Reproduce

Run Err-002 in View Services - View TranslateBrowsePath with a max depth of 9.

TagsNo tags attached.
Files Affected

Relationships

has duplicate 0004339 closedAlexander Allmendinger View TranslateBrowsePath Err-002.js 

Activities

Alexander Allmendinger

2017-11-17 14:15

developer   ~0008719

Hi Lil,
could you please provide more information as I can't reproduce the issue in the lab. The best way might be to provide the server if that is something you can do.
You can send the server or a download link via mail to compliance@opcfoundation.org if you like to.

lil

2017-11-17 14:31

reporter   ~0008721

I am not able to send you the server since it is under development. The problem is caused by the follwing code:

var pathsToBrowse = [
    BrowseToDepth( Test.Session.Session, goodStartingNodeId, BrowseDirection.Forward, 10, [] ),
    BrowseToDepth( Test.Session.Session, goodStartingNodeId, BrowseDirection.Forward, 1, [] ),
    BrowseToDepth( Test.Session.Session, goodStartingNodeId, BrowseDirection.Forward, 4, [] ),
    BrowseToDepth( Test.Session.Session, goodStartingNodeId, BrowseDirection.Forward, 1, [] )
];

Since our Max Depth is 9, the first BrowseToDepth set to 10 will trigger the issue. The test passes if I modify the script and replace 10 with 9.

Alexander Allmendinger

2018-05-09 15:54

developer   ~0009036

Thank you for the additional feedback. I changed the script to use the MaxDepth from the CTT settings now. Please add the following code lines
var maxDepth = parseInt(readSetting("/Server Test/NodeIds/Paths/Max Depth").toString());
if (maxDepth > 10) {
maxDepth = 10;
}
and then change the used parameter from 10 to maxDepth.
Thanks for your help.

Paul Hunkar

2019-08-07 11:51

administrator   ~0010707

reviewed in CMP call 8/1/2019

Issue History

Date Modified Username Field Change
2017-11-17 11:47 lil New Issue
2017-11-17 14:15 Alexander Allmendinger Note Added: 0008719
2017-11-17 14:15 Alexander Allmendinger Assigned To => Alexander Allmendinger
2017-11-17 14:15 Alexander Allmendinger Status new => feedback
2017-11-17 14:31 lil Note Added: 0008721
2017-11-17 14:31 lil Status feedback => assigned
2018-05-09 15:54 Alexander Allmendinger Note Added: 0009036
2018-05-09 15:54 Alexander Allmendinger Status assigned => resolved
2018-05-09 15:54 Alexander Allmendinger Fixed in Version => 1.03.341.381
2018-05-09 15:54 Alexander Allmendinger Resolution open => fixed
2018-10-02 13:32 Alexander Allmendinger Relationship added has duplicate 0004339
2019-01-28 14:10 Paul Hunkar Category Script Issue => 1 - Script Issue
2019-08-07 11:51 Paul Hunkar Target Version => 1.03
2019-08-07 11:51 Paul Hunkar Status resolved => closed
2019-08-07 11:51 Paul Hunkar Note Added: 0010707